Hello all, Looks like I have to deal with this issue of odd frustums again and it appears that others might be having similar problems. (recent: disappearing object thread) So, as a first step I wanted to switch over to MatrixCameras so that I have direct control over the modelview and projection matrices. Unfortunately, when I replace my PerspectiveCamera with MatrixCamera, I get a runtime error every frame:
FATAL: ShearedStereoCameraDecorator::getProjection: can only decorate PerspectiveCameras! Has something changed in the core? In the documentation for 1.8 under "Windows and Viewports / Decorators" it says that: "In our example you could exchange a perspective camera with a matrix camera and the stereo setup won't be destroyed" Thanks Eric --- Eric Maslowski Research Computer Specialist University of Michigan 3D Lab email: [EMAIL PROTECTED] -----Original Message----- From: Maslowski, Eric [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2008 10:57 To: [email protected] Subject: Re: [Opensg-users] Occlusion Culling & Flickering Objects Thanks for the feedback. It's definitely related to the camera frustum. As I move around the scene that frustum/box is bouncing all over the place and the occlusion queries aren't accurate for most viewer locations (incorrect # of tests). Looking into the camera creation code I'm not seeing anything out of the ordinary. I'm using positive near/far planes, 60 degree fov (converted to radians), a passive viewport and I set the camera beacon using standard matrix operations. System_Root - Cam_Beacon (core: xform) - User Node (core: xform) - Scene_Root - Models I'll have to spend some more time looking at all the matrices being passed around. Fortunately, setting the ground plane to a box prevents it from flickering so I can come back to this dancing frustum once I get past this deadline. However, if anyone has any other ideas, don't be shy. :) Thanks for the help E. --- Eric Maslowski Research Computer Specialist University of Michigan 3D Lab email: [EMAIL PROTECTED] -----Original Message----- From: Carsten Neumann [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2008 19:19 To: [email protected] Subject: Re: [Opensg-users] Occlusion Culling & Flickering Objects Hello Eric, Maslowski, Eric wrote: > Hi Carsten, > Thanks for taking a look. I think you might be on to something > regarding the bounding volumes since the ground plane doesn't seem to > have a bounding volume and there's a strange warped BV in the distance > (see images below). yes, looks like part of the camera frustum ? > I'm a little confused as to why the BV is playing such a role, though. I > thought OpenSG was using the OcclusionQuery interface for these tests. > So, it should be rendering the object to test for visibility...unless > the BV is rendered for the query instead to speed up the query process. > Is this the case? as Marcus already confirmed, yes, the bounding volumes are used in the OC tests. > http://www-personal.umich.edu/~emaslows/temp/osg/osg_occ-bv_01.jpg > http://www-personal.umich.edu/~emaslows/temp/osg/osg_occ-bv_02.jpg hm, do you do anything unusual with your cameras/view frustums, have negative near clipping plane ? As soon as I've remembered how I make cvs print at least remotely useful logs, I'll see if any of the recent changes give a hint. Carsten ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
