[osg-users] Terrain Center and Size/Extent (TXP, LoD)

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Fri Jul 1 06:56:49 PDT 2016


Hi John,

1). TerraPage (and TerraVista) uses this SmartMesh for LOD management, and
these are obviouslly set by TerraVista. So this is one way of controling
it. The other way is to set the LOD scale for your camera (if you are using
osgviewer press 'h' onscreen help with some key bindings will appear for
this, but you can set it through code as well)

2). Probably you are using osgviewer (or alike application) where the
initial position is set a bit far from the archive. If you want to center
it I believe you get the bounds of the node representing the trpage archive
and place it at the center. The extent of the trpage archive is set in the
header, so other way is to use the trpage API (part of the txp loader) and
access the header and set the eye accordingly .

Hope this helps. It's been more then 10years since I was trpage engineer .
I thought it is dead by this new CDB from Presagis :-)

Cheers!
Nick

On Fri, Jul 1, 2016 at 3:54 PM, John Farrier <john.farrier at gmail.com> wrote:

> Hi,
>
> I am using the terrapage (TXP) plugin to render large terrain.  I want to
> push the terrain out to the horizon more, but it seems to page out a bit
> early (at distance).  Is there a way to
>
> 1.) Control the amount (extent) of terrain that is paged in or the
> distance at which it pages out terrain (i.e. the maximum distance for it to
> render).  Could I set the maximum distance to "x" and override some other
> default?  What determines the point at which the terrain is not being
> loaded at distance?
>
> or
>
> 2.) Control the center of the terrain?  It seems to center high-resolution
> terrain UNDER the camera, even when the camera is looking OUT.  Ideally I'd
> like to have high resolution terrain where the camera is looking.
>
> These are two different issues, but related.  Improving either would be a
> big help.
>
> Thank you!
>
> Cheers,
> John
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=67956#67956
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160701/ebc88f89/attachment-0002.htm>


More information about the osg-users mailing list