Dirk Reiners wrote:
Hi Marcus,
On Wed, 2005-10-12 at 16:46 +0200, Marcus Lindblom wrote:
I assume that volumes are being calculated correctly when I update
matrices, if I make sure I use CPEdit and stuff, etc.
They should be, and so far that has been pretty reliable, but you never
know. That would be the most probable cause, though. You can get them
drawn by setting calling renact->setVolumeDrawing(true);, to see whether
they are what you expect them to be.
Ah. Neato. Well, they are where they should be. However, when the
geometry within dissappear they turn red, otherwise they are blue or
sometimes green.
I disabled frustum culling, then I got warnings about the frustum volume
having left parallell to top. (OpenSG ought to check/warn for that in
some other place as well.)
So, it turned out that my initialization of my perspective camera (which
sets aspect and fov) didn't use CPEdit. (Must have missed that when I
did a general search for "->set(" yesterday). Amazing that I've gotten
away with that for 6 months. :)
This fixed the problem visually, bit I still get warnings on the frustum
(_if_ I draw the volumes _and_ disable culling). Hmm. I probably haven't
ironed out the bugs completely, but it's ok for now and I know where to
look in the future.
Thanks for the input!
Regards
/Marcus
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users