Hi dirk, thanks for the quick answer. I solved the problem: in fact I had 4 viewports (for stereo rendering), and the key was the way the viewports were added to the window. I was doing left+right+ceilleft+ceilright, The right way was left+ceilletf+right+ceilright.
Now I have a second question for you and the other users. Since I am displaying a fair complex scene, I am having some performance issues. What I want to know is: OpenSG internally sorts the geometry in some gerarchic way so I can quickly query the nodes to know if they are visible or not? Something like the good old octrees... Thanks for your help, Enrico -----Messaggio originale----- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Dirk Reiners Inviato: mercoledì 10 maggio 2006 10.57 A: [email protected] Oggetto: Re: [Opensg-users] passiveviewport incorrectly sorted 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 cant render all the geometry in the > > same viewport (I dont 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=k&kid0709&bid&3057&dat1642 _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users ------------------------------------------------------- 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
