[osg-users] Paged Terrain Question

Brian R Hill bhill22 at csc.com
Wed Dec 19 15:19:07 PST 2007


Here's some code I hacked together. I tested it some, but ..... YMMV.

Brian

-----osg-users-bounces at lists.openscenegraph.org wrote: -----


To: "'OpenSceneGraph Users'" <osg-users at lists.openscenegraph.org>
From: "Paul Martz" <pmartz at skew-matrix.com>
Sent by: osg-users-bounces at lists.openscenegraph.org
Date: 12/19/2007 05:51PM
Subject: Re: [osg-users] Paged Terrain Question

This is a good solution.

Perhaps a possible new feature for the existing OpenFlight importer would
be
an Option to use PagedLOD nodes for external references (and not load the
external model), rather than ProxyNodes (and loading the model).
  -Paul


> The process I use:
>
> - copy master.flt to another directory (hopefully the file
> references aren't absolute paths)
> - use osgDB:readNodeFile to read the copied master.flt. This
> places osg::ProxyNodes in place of the actual .flt reference
> files (because it can't find the referenced files)
> - write a custom NodeVisitor to convert the osg::ProxyNodes
> to osg::PagedLODs
> - at the same time I convert the referenced .flts to .ives
> and use their bounds to set the osg::PagedLODs center and radius.
> - save the master.flt as master.ive (or master.osg)
>
> Brian
>
> -----osg-users-bounces at lists.openscenegraph.org wrote: -----
>
>
> To: osg-users at lists.openscenegraph.org
> From: "paul.tanja at internode.on.net"
> <paul.tanja at internode.on.net> Sent by:
> osg-users-bounces at lists.openscenegraph.org
> Date: 12/19/2007 05:00PM
> Subject: [osg-users] Paged Terrain Question
>
> Hi, Im new to osg and I have an Openflight database, it has a
> master.flt and would like to use osg to page it in rather
> than loading all in memory at once . I'm not sure if
> osgviewer is doing this already? or wether I should use
> osgpagedLOD example to load in my database - if so how?
>
> Also down the track I would like to know which tiles are
> being loaded in and which tiles are being loaded out. Where
> would I be able to find the relevant point in the source code?
>
> Thank you and Merry Xmas
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
negraph.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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
negraph.org

_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
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.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(See attached file: ConvertPagedLOD.cpp)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ConvertPagedLOD.cpp
Type: application/octet-stream
Size: 5092 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071219/eaa1ef2c/attachment.obj>


More information about the osg-users mailing list