Hi Enrico,
Enrico Borrione wrote:
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!
What kind of Background do you use on your second Viewport? You should
use a PassiveBackground, which just leaves the depth buffer alone. Which
order do add youur viewports to the Window? That defines the order
they're renderd in. I would put the ShadowViewport first, and the
ceiling Viewport later.
Hope it helps
Dirk
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users