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

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

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

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

[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