You can load specific files from an archive, or if you don't supply a fully qualified name it'll use the first file in the archive, so just put your topmost node first in to the archive.
Robert.
On 9/12/06, Weitz, Andrew C. <[EMAIL PROTECTED]> wrote:
Hello,
I made the attached post a few months ago and learned that an .osga archive
would be my solution. I've finally gotten the chance to play with this, but
I'm running into a problem.
I create a geode with geometry and write it to an archive via
writeNode(*geode, geodeName). I also create a PagedLOD node that references
geodeName. Then I use writeNode(*pagedLOD, pagedLODname) to add the
PagedLOD to the archive. When I view the archive, it only shows the geode
(which is not paging). My PagedLOD node seems nonexistent.
Does anyone know what I'm doing wrong? I'm assuming there must be a way to
tell the archive that my PagedLOD node is the root and not to show the geode
by default.
Thank you,
Andrew
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto: [EMAIL PROTECTED]] On Behalf Of Robert Osfield
Sent: Friday, May 26, 2006 3:57 PM
To: osg users
Subject: Re: [osg-users] Storing PagedLOD and Geometry in the same file???
Hi Andrew,
If you want a single file for your various tiles then use and .osga archive.
Robert.
On 5/26/06, Andrew Weitz <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have an OSG-based app that loads mesh geometry in the following
> manner:
>
> 1. I create an IVE file that contains all the geometry (polygons and
> textures) in local coordinates.
>
> 2. I create another IVE file with a pos/att transform and a pagedLOD
> node that references the IVE file created in step 1.
>
> 3. When I build the scene graph, I only populate it with the IVE files
> created in step 2.
>
> The fact that the pagedLOD node references a separate file forces me to
> represent each mesh with two IVE files. Is there any way I can
> accomplish this same scheme using only one IVE file ( i.e. have the
> pagedLOD node reference geometry contained in the same file as itself)?
>
> Thanks!
>
> Andrew
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
