Wojtek,

I don't know. I just looked at the LOD::traverse method and saw that it
called the node visitor getDistanceToViewPoint method, which for the
CullVisitor calls the CullStack::getViewPointLocal method.

Ooops, looks like you'll need to override
CullVisitor::getDistanceToViewPoint, not CullVisitor::getViewPoint. Also,
the view point will need to be relative to the LOD object.

I searched the entire OSG tree and only LOD and PagedLOD call
getDistanceToViewPoint, so it should be pretty safe.

Caveat - I've only looked at the code and haven't tried this.

Brian

[EMAIL PROTECTED] wrote: -----


To: "OpenSceneGraph Users" <[email protected]>
From: "Wojciech Lewandowski" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
Date: 02/26/2008 12:15PM
Subject: Re: [osg-users] Problem to consider: Shadow maps and LOD
computation

Hi Brian,

> It looks like you'll need to create a custom cull visitor that stores the
> desired eye point and overrides the CullVisitor::getViewPoint method to
> return the stored eye point instead of the CullStack view point.

Thats sounds like it something I might be able to do ;-). Do you know if
changed viewPoint would affect other types of nodes apart from  LOD  ?

Thanks,
Wojtek

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to