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

Brian

[EMAIL PROTECTED] wrote: -----


To: "'OpenSceneGraph Users'" <osg-users@lists.openscenegraph.org>
From: "Paul Martz" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
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
>
> [EMAIL PROTECTED] wrote: -----
>
>
> To: osg-users@lists.openscenegraph.org
> From: "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> Sent by:
> [EMAIL PROTECTED]
> 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@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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
negraph.org

_______________________________________________
osg-users mailing list
osg-users@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)

Attachment: ConvertPagedLOD.cpp
Description: Binary data

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

Reply via email to