Hi opensg users,

i have a little question about a problem that has

kept bugging me this afternoon: how do I sort

the rendering order of different viewports?

I explain my problem: I want to display a

Shadow mapped scene inside an enclosed room.

Since I can’t render all the geometry in the

same viewport (I don’t want the ceiling to cast a shadow over

the whole underling stuff), I decided to render

the ceiling into a passive viewport and the rest of the room into

a shadowmap viewport.

If I keep shadows off, all seems fine. If I switch the shadows on,

The ceiling is rendered on top of the room, actually erasing all the

pixels it covers.

Is there a way to be sure that the two viewports cooperates

happily without so much z fighting? Thanks!

enrico

Reply via email to