[SceneCapture2D] Can stencil IDs be read directly from render target without post process material?

i think what you’re missing is setting the scenecapturecomponent to capture the “final color ldr” which is the one after postprocess.

i recommend you to test parameters around to find what best suits you, if you notice something doesn’t work for you try stuff around.

i think r8f is enough. but remember that’s a normalized (floating point 0-1) so it wont be easy to test for a == b but it’s doable.
youll probably need to divide by 256 on the post process, and then multiply by 256 when reading the rt. (256 being the count (255 being the max), i don’t remember, but it could need a bigger number)

i don’t remember a RT format that is in integer instead of floating point. but r16f is not normalized (afaik) so you won’t need the divide and multiply trick. still don just do ==, do NearlyEquals.

here’s on my game. i use the custom stencil to draw the outline using a postprocess, and it’s set to 254 on hover.