Page 1 of 1

RenderTarget with Stencil

Posted: 19 Jan 2015, 09:15
by Drac Zhang
Hi,
I used render target with stencil like this
test1.png
test1.png (6.04 KiB) Viewed 3736 times
I found that if I select the RenderTarget-Quality-Best or Default,all the things will gone.
But if set the value to None/Low/Medium it works correct.
test2.png
test2.png (5.29 KiB) Viewed 3736 times
I also upload the vza for you to see does it something wrong

Best Regards
Drac Zhang

Re: RenderTarget with Stencil

Posted: 19 Jan 2015, 11:14
by lerou
Hi,

are you purposely trying to share the frame buffer's stencil buffer? Otherwise I would suggest checking the "DepthStencilCreate" flag in the render target node and putting all stencil elements (rects with test and set) behind the render target. That way you use the render target's (then created) stencil buffer.

cheers,
rou

Re: RenderTarget with Stencil

Posted: 20 Jan 2015, 02:32
by Drac Zhang
Hi,

Because of I need to use 1machine to show the content on two displays, but each of the display shows the same thing and can't see the content on the other display.
So I have to use stencil node in front of all the nodes. I also tried "DepthStencilCreate" selected, but all the things behind the Render Target is gone.

Best Regards
Drac Zhang