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"

[Closed] Using CustomDepth in material

I've succesfully rendered stuff to CustomDepth. It seems to be impossible to read this into a material. I get an error message saying: "SceneTexture expression cannot be used in opaque materials". Is there a way to read in the custom depth?

Product Version: Not Selected
Tags:
more ▼

asked Feb 29 '16 at 05:52 PM in Rendering

avatar image

Answers.Archive STAFF
1.9k 194 302 675

avatar image Answers.Archive STAFF Feb 29 '16 at 05:52 PM

Hi,

We think this post contains useful information which we would like to share with our public UE4 community. With your approval, we would like to make a copy of this post on the public AnswerHub which includes the discussion but strips out your username and company name. Please let us know if you are okay with this.

Thanks!

avatar image Answers.Archive STAFF Feb 29 '16 at 05:52 PM

sure thing

(comments are locked)
10|2000 characters needed characters left

The question has been closed Feb 29 '16 at 05:53 PM by Stephen Ellis for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

Yes, you can use it in a material. However, SceneTexture is intended only for translucent materials, such as doing post process-like effects through geometry.

more ▼

answered Feb 29 '16 at 05:52 PM

avatar image

Answers.Archive STAFF
1.9k 194 302 675

avatar image Answers.Archive STAFF Feb 29 '16 at 05:52 PM

Thanks,

Maybe I'm approaching the issue in the wrong way. I need to render an object into a depth buffer with front face culling turned on and then render the object with back face culling turned on. This way I can calculate the depth of the object for each pixel. How should I proceed with this?

avatar image Answers.Archive STAFF Feb 29 '16 at 05:52 PM +

As a coder I know the techniques and am able to do those in our own engine but the limiting factor for me is UE at the moment.

(comments are locked)
10|2000 characters needed characters left

Follow this question

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

Answers to this question