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"

Custom Depth Stencil Sorting

If i understand correctly this setup should give ability to control sorting of stencil masks by stencil value.

alt text

But doesn't seem like it works. Sorting happening based on last object i changed stencil value on. Am i missing something?

alt text alt text alt text alt text

Product Version: UE 4.21
more ▼

asked Feb 18 '19 at 06:35 PM in Rendering

avatar image

3 1 5

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

1 answer: sort voted first

If you're still working on this, the setting "All bits (255), ignore depth" will cause the object to overwrite the current Custom Stencil buffer with whatever value you have given it, ignoring the object's depth. In your images, setting the chair to 1 causes it to write 1 to the stencil buffer regardless of its depth or what other values are in the buffer. This is why it appears on top if it's the last object you touched.

Changing the setting to something else like "First bit (255), ignore depth" will still allow it to ignore the depth, but it will only write to the first bit instead of all 8. This way, you could allow multiple overlapping object to write to the same stencil pixel by having each object write to a different bit.


more ▼

answered Feb 28 '19 at 01:06 AM

avatar image

31 2 1

avatar image item412 Feb 28 '19 at 08:11 AM

thanks for the reply, now i think i understand the system

(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