Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to render scene to custom UV space on a texture

I have a world in which each rendered object is assigned a remapped UV space on a large texture. I want to be able to write a custom color to this texture on the remapped UV coordinates at the pixel level so that, at render time, the main material can sample it and determine whether to output one color or another.

I've looked into several resources regarding material inputs, shader development, compute shaders, etc. and found nothing that simply lets me output a color to a custom texture at a custom UV at the pixel level.

Can anyone help?

Product Version: UE 4.12
more ▼

asked Jul 06 '16 at 05:11 PM in Rendering

avatar image

1 2 2

avatar image Krxtopher Jul 06 '16 at 05:33 PM

Your description is a bit unclear. Are you able to provide a screenshot or sketch that shows what end result you're are trying to achieve?

avatar image Dolphiniac Jul 06 '16 at 06:13 PM

I'm not sure how effective I can be with that. The idea is, a world manager assigns a portion of a large texture to each object in the world. Then, each object does a rendering pass where each fragment writes an encoded color to a specific pixel on the texture based on some logic about its position. Then the main render pass samples that pixel on the large texture to output one color or another.

Normally I would accomplish the task in one pass using math, but the nugget of this problem is in permanently changing the way the world is rendered by writing to a texture (succeeding the math check for a pixel turns it "on" forever). But the resolution needs to be high and the information to effect the change is contained at the pixel level, as it determines on interpolated world coordinates.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question