x

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"

Render Object to Render Texture Only

Is there a way to render an object to just the render texture? I don't want it to appear to the player, just in the render texture.

Thanks

Product Version: UE 4.20
Tags:
more ▼

asked Jan 14 '19 at 04:36 AM in Rendering

avatar image

Freak223
0

avatar image the_batch Jan 14 '19 at 04:46 PM

The only way I know how to achieve this is to mess around in the engine code to make one simple change. If I remember correctly, the change allows for Scene Capture Components to respect actor ownership the way normal Camera Components do.

With the engine code modified, you could make your target actor be owned by your Scene Capture Component, and set your target actor to be visible only to owner. In this way, your target actor would not be rendered by your player's camera (it would be invisible to the player because the player doesn't own the object) but it would be rendered by your Scene Capture Component (its new owner) and rendered to the desired render texture.

It worked great for me when I tested it out a couple months ago. But, again, it requires a full source code download, a minor parameter edit, and a full engine recompile, which can be really burdensome.

Hopefully there's an easier way out there that someone else is willing to share. But if you do want to know what exactly I changed in the engine source code, I'd be happy to give you the specifics.

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

1 answer: sort voted first

There is a way to render with chroma key. To do this, the object is placed on the background of the material with a specific emission color, then this color is separated into the rendertexture. Watch a video:

https://youtu.be/8sYB5Tt2Ta4

more ▼

answered Jan 14 '19 at 07:49 PM

avatar image

Jollar22
3 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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