Re: [osg-users] Get A line on the terrain surrface at current lod level

2008-06-26 Thread Robert Osfield
On Tue, Jun 24, 2008 at 2:34 AM, ZHMW [EMAIL PROTECTED] wrote:
 Hi Robert,
 I'm pleased to dive in a code, I want to release the method
 get/setEyePoint(osg::Vec3 ) and getDistanceToEyePoint() to select the
 right level of lod, also change the code of apply(lod ) and apply(PagedLOD
 ), and then add some method to set the traverse mode( the heightest level
 of lod mode and the right level mode ) for user.
 Is that would be work?

I guess so, try it and see.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Get A line on the terrain surrface at current lod level

2008-06-23 Thread Robert Osfield
Hi Davd,

ElevationSlice is designed to extract the high res level.  Selecting
the elevations that are on screen would require a visitor that makes
LOD decisions based on a view frustum - this could be written - a
variation/tweaks of the osgUtil::IntersectionVisitor for instance.
You are welcome to dive in a code such a solution.

Robert.

On Mon, Jun 23, 2008 at 3:09 AM, ZHMW [EMAIL PROTECTED] wrote:
 Hi everyone.
 I want a line on the terrain surface, while my terrain data is a paged
 lod database. when I use osgSim::ElevationSlice, The
 visitor(osgUtil::IntersectionVisitor) always go to the max valid level of
 the terrain detail. so when i draw the line of ElevationSlice's result, the
 line is not exactly on the surface of terrain.
 Is there any visitor like cullvisitor can go to current valid lod level?
 and then I can draw the ElevationSlice's result line on the surface always.

 best wishes.

 zhmw
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Get A line on the terrain surrface at current lod level

2008-06-23 Thread erf
Hi David and Robert,

I have not followed this discussion, but have recently been working on 
something similar myself other software. Would it not be advantagous to have a 
callback function as part of the terrain LOD block, so that each time there is 
a change of LOD, the terrain block is updated, and calls a callback object to 
update its elevations / vertices? Also the callback object will have to be 
moved to the correct LOD block.

Erlend.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: 23. juni 2008 10:05
To: OpenSceneGraph Users
Subject: Re: [osg-users] Get A line on the terrain surrface at current lod level

Hi Davd,

ElevationSlice is designed to extract the high res level.  Selecting
the elevations that are on screen would require a visitor that makes
LOD decisions based on a view frustum - this could be written - a
variation/tweaks of the osgUtil::IntersectionVisitor for instance.
You are welcome to dive in a code such a solution.

Robert.

On Mon, Jun 23, 2008 at 3:09 AM, ZHMW [EMAIL PROTECTED] wrote:
 Hi everyone.
 I want a line on the terrain surface, while my terrain data is a paged
 lod database. when I use osgSim::ElevationSlice, The
 visitor(osgUtil::IntersectionVisitor) always go to the max valid level of
 the terrain detail. so when i draw the line of ElevationSlice's result, the
 line is not exactly on the surface of terrain.
 Is there any visitor like cullvisitor can go to current valid lod level?
 and then I can draw the ElevationSlice's result line on the surface always.

 best wishes.

 zhmw
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Get A line on the terrain surrface at current lod level

2008-06-23 Thread ZHMW
Hi Robert,
I'm pleased to dive in a code, I want to release the method
get/setEyePoint(osg::Vec3 ) and getDistanceToEyePoint() to select the
right level of lod, also change the code of apply(lod ) and apply(PagedLOD
), and then add some method to set the traverse mode( the heightest level
of lod mode and the right level mode ) for user.
Is that would be work?

Best Wishes.

zhmw
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Get A line on the terrain surrface at current lod level

2008-06-22 Thread ZHMW
Hi everyone.
I want a line on the terrain surface, while my terrain data is a paged
lod database. when I use osgSim::ElevationSlice, The
visitor(osgUtil::IntersectionVisitor) always go to the max valid level of
the terrain detail. so when i draw the line of ElevationSlice's result, the
line is not exactly on the surface of terrain.
Is there any visitor like cullvisitor can go to current valid lod level?
and then I can draw the ElevationSlice's result line on the surface always.

best wishes.

zhmw
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org