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

Reply via email to