Re: [osg-users] osgTerrain::TerrainTile question

2008-09-11 Thread Coco
Hey Brian,

I found the old post you were takling about. I copied it below.
But where is the link to the code?

Best regards,

Nicolas Duval

[osg-users] Paged Terrain Question
*Brian R Hill* bhill22 at csc.com
osg-users%40lists.openscenegraph.org?Subject=%5Bosg-users%5D%20Paged%20Terrain%20QuestionIn-Reply-To=20071219225056.76D7867830%40mail.frii.com
*Wed Dec 19 15:19:07 PST 2007*


   - Previous message: [osg-users] Paged Terrain Question
   
http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2007-December/005631.html
   - Next message: [osg-users] How can I use glHint() in OSG 1.2?
   
http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2007-December/005635.html
   - *Messages sorted by:* [ date
]http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2007-December/date.html#5634
[
   thread 
]http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2007-December/thread.html#5634
[
   subject 
]http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2007-December/subject.html#5634
[
   author 
]http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2007-December/author.html#5634

--

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

Brian
-osg-users-bounces at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
wrote: -


To: 'OpenSceneGraph Users' osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
From: Paul Martz pmartz at skew-matrix.com
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Sent by: osg-users-bounces at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-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 
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 
wrote: -** To: osg-users at lists.openscenegraph.org 
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org** 
From: paul.tanja at internode.on.net 
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org**
 paul.tanja at internode.on.net 
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 
Sent by:** osg-users-bounces at lists.openscenegraph.org 
http://lists.openscenegraph.org/listinfo.cgi/osg-users-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?*



2008/9/10, Coco [EMAIL PROTECTED]:



 2008/9/10, Brian R Hill [EMAIL PROTECTED]:

 Nicholas,

 If the openflight files are already subdivided into a grid of tiles
 referenced into a single master file, then there's some code I posted to
 the list a couple months ago that will convert them to use pagelods and
 also convert them to .ive format for faster loading.

 Search the archives and you should see how to do it.


 Brian,

 Thanks a lot! I'm gonna take a look at this!

 Nicolas

 Brian

 [EMAIL PROTECTED] wrote: -

 To: OpenSceneGraph Users osg-users@lists.openscenegraph.org
 From: Coco [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
 Date: 09/10/2008 05:55AM
 Subject: Re: [osg-users] osgTerrain::TerrainTile question

 2008/9/10, Robert Osfield 
 [EMAIL PROTECTED]
 :

 Hi Nicolas,

 I think you have got the wrong end of the stick.  I was suggesting
 TerraPage as an illustration of how cultural data (3d models) can be

 stored in with the tiles on disk.  In vis-sim industry TerraPage is
 well known so I used it as as a case in point to save

Re: [osg-users] osgTerrain::TerrainTile question

2008-09-11 Thread Brian ...

If you go here:

http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2007-December/005634.html

The link is near the bottom:

http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071219/eaa1ef2c/attachment.obj

Brian

Date: Thu, 11 Sep 2008 11:13:20 +0200
From: [EMAIL PROTECTED]
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] osgTerrain::TerrainTile question

Hey Brian,
 
I found the old post you were takling about. I copied it below.
But where is the link to the code?
 
Best regards,
 
Nicolas Duval
 
[osg-users] Paged Terrain QuestionBrian R Hill bhill22 at csc.com 

Wed Dec 19 15:19:07 PST 2007 


Previous message: [osg-users] Paged Terrain Question 
Next message: [osg-users] How can I use glHint() in OSG 1.2? 
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] 


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?



2008/9/10, Coco [EMAIL PROTECTED]:



2008/9/10, Brian R Hill [EMAIL PROTECTED]: 
Nicholas,

If the openflight files are already subdivided into a grid of tiles
referenced into a single master file, then there's some code I posted to

the list a couple months ago that will convert them to use pagelods and
also convert them to .ive format for faster loading.

Search the archives and you should see how to do it.
 
Brian,
 
Thanks a lot! I'm gonna take a look at this!
 
Nicolas


Brian

[EMAIL PROTECTED] wrote: -


To: OpenSceneGraph Users osg-users@lists.openscenegraph.org
From: Coco [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
Date: 09/10/2008 05:55AM
Subject: Re: [osg-users] osgTerrain::TerrainTile question


2008/9/10, Robert Osfield 
[EMAIL PROTECTED]
:

Hi Nicolas,

I think you have got the wrong end of the stick.  I was suggesting

TerraPage as an illustration of how cultural data (3d models) can be

stored in with the tiles on disk.  In vis-sim industry TerraPage is
well known so I used it as as a case in point to save typing lots...


FYI, The OSG's TerraPage plugin uses the PagedLOD and the
DatabasePager under the hood to provide it's paging functionality.

In your case the problem is about creating databases not actually
rendering them - as the OSG will do all the paging, and threading for

you thanks the DatabasePager and other related classes.  The
DatabasePage doesn't help you create databases, it's tools like

VirtualPlanetBuilder that do this, but... right now VPB doesn't
support insertion of cultural data into the tiles, so you'll need post

process the database to insert this data.

Robert.





I think there is a missunderstanding. My problem is to load a  big
database, not to create it.

I already have my database, fragmented in FLT files like I said. So I was

suggesting to use DatabasePager to load flt nodes when I need it to. In
this case I think I don't have to process any data...

I hope I haven't got the wrong end of the stick (again!).



Nicolas





On Wed, Sep 10, 2008 at 9:49 AM, Coco 
[EMAIL PROTECTED]
 wrote:

 Thank you very much for your ideas!


 I found out the osgDB::DatabasePager

Re: [osg-users] osgTerrain::TerrainTile question

2008-09-10 Thread Robert Osfield
Hi Nicolas,

osgTerrain::TerrainTile was named osgTerrain::Terrain in 2.2.
osgTerrain since 2.2 was evolved to be more rounded and functional,
the naming was changed to better fit what goes on in big paged
database, when the Terrain is composed of a hierarchy of TerrainTile.
There is now a new class class osgTerrain::Terrain which represent the
high level representation of the terrain.

In your case loading 3D models with terrain is something that we be
best done be pre-processing your data so that the 3D models are
inserted into a paged database.  If you are familiar with TerraPage
then this ideal should be familiar to you.

Robert.

On Tue, Sep 9, 2008 at 9:30 PM, Coco [EMAIL PROTECTED] wrote:
 Hi,

 I'm presently working on a car simulator using OSG 2.2 for the visual.
 My problem is that I would like to load big areas (such as entire cities or
 more) which are fragmented in several Open Flight files without loading all
 those files.
 I looked at the OSG documentation and found out the osgTerrain::TerrainTile
 class (which doesn't exist on 2.2 OSG version).
 By using OSG 2.6, would I be able to load (with the TerrainTile class) only
 tiles (associated to a FLT file) that I need to see (which means according
 to the location of the camera)?
 Or do I need to implement this system by myself to avoid loading all files
 at the same time?

 I hope this post is clear enough and wait for answers.

 Kind regards,

 Nicolas Duval
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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


Re: [osg-users] osgTerrain::TerrainTile question

2008-09-10 Thread Coco
Thank you very much for your ideas!

I found out the osgDB::DatabasePager class by reading old posts and it looks
to fit my problem very well.
By using TerraPage I will have to pre-process my databases, whereas with the
database pager I don't need to.

  virtual void
requestNodeFilefile:///C:/SHERPA/SHERPA_5.5_Modifiee_Nico/VIS_OSG_DEV/tools/OpenSceneGraph-2.2.0/doc/doxygen/html/a00119.html#b768d3e105f1fb2df66064719ff3bcba(const
std::string fileName,
osg::Groupfile:///C:/SHERPA/SHERPA_5.5_Modifiee_Nico/VIS_OSG_DEV/tools/OpenSceneGraph-2.2.0/doc/doxygen/html/a00217.html*group,
float priority, const
osg::FrameStampfile:///C:/SHERPA/SHERPA_5.5_Modifiee_Nico/VIS_OSG_DEV/tools/OpenSceneGraph-2.2.0/doc/doxygen/html/a00191.html
 *framestamp)

Theoretically, I just have to use this function before the camera is close
enough to see next area(s).

Regards,

Nicolas Duval

2008/9/10, Robert Osfield [EMAIL PROTECTED]:

 Hi Nicolas,

 osgTerrain::TerrainTile was named osgTerrain::Terrain in 2.2.
 osgTerrain since 2.2 was evolved to be more rounded and functional,
 the naming was changed to better fit what goes on in big paged
 database, when the Terrain is composed of a hierarchy of TerrainTile.
 There is now a new class class osgTerrain::Terrain which represent the
 high level representation of the terrain.

 In your case loading 3D models with terrain is something that we be
 best done be pre-processing your data so that the 3D models are
 inserted into a paged database.  If you are familiar with TerraPage
 then this ideal should be familiar to you.

 Robert.

 On Tue, Sep 9, 2008 at 9:30 PM, Coco [EMAIL PROTECTED] wrote:
  Hi,
 
  I'm presently working on a car simulator using OSG 2.2 for the visual.
  My problem is that I would like to load big areas (such as entire cities
 or
  more) which are fragmented in several Open Flight files without loading
 all
  those files.
  I looked at the OSG documentation and found out the
 osgTerrain::TerrainTile
  class (which doesn't exist on 2.2 OSG version).
  By using OSG 2.6, would I be able to load (with the TerrainTile class)
 only
  tiles (associated to a FLT file) that I need to see (which means
 according
  to the location of the camera)?
  Or do I need to implement this system by myself to avoid loading all
 files
  at the same time?
 
  I hope this post is clear enough and wait for answers.
 
  Kind regards,
 
  Nicolas Duval
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

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


Re: [osg-users] osgTerrain::TerrainTile question

2008-09-10 Thread Robert Osfield
Hi Nicolas,

I think you have got the wrong end of the stick.  I was suggesting
TerraPage as an illustration of how cultural data (3d models) can be
stored in with the tiles on disk.  In vis-sim industry TerraPage is
well known so I used it as as a case in point to save typing lots...

FYI, The OSG's TerraPage plugin uses the PagedLOD and the
DatabasePager under the hood to provide it's paging functionality.

In your case the problem is about creating databases not actually
rendering them - as the OSG will do all the paging, and threading for
you thanks the DatabasePager and other related classes.  The
DatabasePage doesn't help you create databases, it's tools like
VirtualPlanetBuilder that do this, but... right now VPB doesn't
support insertion of cultural data into the tiles, so you'll need post
process the database to insert this data.

Robert.

On Wed, Sep 10, 2008 at 9:49 AM, Coco [EMAIL PROTECTED] wrote:
 Thank you very much for your ideas!

 I found out the osgDB::DatabasePager class by reading old posts and it looks
 to fit my problem very well.
 By using TerraPage I will have to pre-process my databases, whereas with the
 database pager I don't need to.

 virtual void  requestNodeFile (const std::string fileName, osg::Group
 *group, float priority, const osg::FrameStamp *framestamp)
 Theoretically, I just have to use this function before the camera is close
 enough to see next area(s).

 Regards,

 Nicolas Duval

 2008/9/10, Robert Osfield [EMAIL PROTECTED]:

 Hi Nicolas,

 osgTerrain::TerrainTile was named osgTerrain::Terrain in 2.2.
 osgTerrain since 2.2 was evolved to be more rounded and functional,
 the naming was changed to better fit what goes on in big paged
 database, when the Terrain is composed of a hierarchy of TerrainTile.
 There is now a new class class osgTerrain::Terrain which represent the
 high level representation of the terrain.

 In your case loading 3D models with terrain is something that we be
 best done be pre-processing your data so that the 3D models are
 inserted into a paged database.  If you are familiar with TerraPage
 then this ideal should be familiar to you.

 Robert.

 On Tue, Sep 9, 2008 at 9:30 PM, Coco [EMAIL PROTECTED] wrote:
  Hi,
 
  I'm presently working on a car simulator using OSG 2.2 for the visual.
  My problem is that I would like to load big areas (such as entire cities
  or
  more) which are fragmented in several Open Flight files without loading
  all
  those files.
  I looked at the OSG documentation and found out the
  osgTerrain::TerrainTile
  class (which doesn't exist on 2.2 OSG version).
  By using OSG 2.6, would I be able to load (with the TerrainTile class)
  only
  tiles (associated to a FLT file) that I need to see (which means
  according
  to the location of the camera)?
  Or do I need to implement this system by myself to avoid loading all
  files
  at the same time?
 
  I hope this post is clear enough and wait for answers.
 
  Kind regards,
 
  Nicolas Duval
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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


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


Re: [osg-users] osgTerrain::TerrainTile question

2008-09-10 Thread Coco
2008/9/10, Robert Osfield [EMAIL PROTECTED]:

 Hi Nicolas,

 I think you have got the wrong end of the stick.  I was suggesting
 TerraPage as an illustration of how cultural data (3d models) can be
 stored in with the tiles on disk.  In vis-sim industry TerraPage is
 well known so I used it as as a case in point to save typing lots...

 FYI, The OSG's TerraPage plugin uses the PagedLOD and the
 DatabasePager under the hood to provide it's paging functionality.

 In your case the problem is about creating databases not actually
 rendering them - as the OSG will do all the paging, and threading for
 you thanks the DatabasePager and other related classes.  The
 DatabasePage doesn't help you create databases, it's tools like
 VirtualPlanetBuilder that do this, but... right now VPB doesn't
 support insertion of cultural data into the tiles, so you'll need post
 process the database to insert this data.

Robert.



I think there is a missunderstanding. My problem is to load a  big database,
not to create it.
I already have my database, fragmented in FLT files like I said. So I was
suggesting to use DatabasePager to load flt nodes when I need it to. In this
case I think I don't have to process any data...
I hope I haven't got the wrong end of the stick (again!).

Nicolas


On Wed, Sep 10, 2008 at 9:49 AM, Coco [EMAIL PROTECTED] wrote:
  Thank you very much for your ideas!
 
  I found out the osgDB::DatabasePager class by reading old posts and it
 looks
  to fit my problem very well.
  By using TerraPage I will have to pre-process my databases, whereas with
 the
  database pager I don't need to.
 
  virtual void  requestNodeFile (const std::string fileName, osg::Group
  *group, float priority, const osg::FrameStamp *framestamp)
  Theoretically, I just have to use this function before the camera is
 close
  enough to see next area(s).
 
  Regards,
 
  Nicolas Duval
 
  2008/9/10, Robert Osfield [EMAIL PROTECTED]:
 
  Hi Nicolas,
 
  osgTerrain::TerrainTile was named osgTerrain::Terrain in 2.2.
  osgTerrain since 2.2 was evolved to be more rounded and functional,
  the naming was changed to better fit what goes on in big paged
  database, when the Terrain is composed of a hierarchy of TerrainTile.
  There is now a new class class osgTerrain::Terrain which represent the
  high level representation of the terrain.
 
  In your case loading 3D models with terrain is something that we be
  best done be pre-processing your data so that the 3D models are
  inserted into a paged database.  If you are familiar with TerraPage
  then this ideal should be familiar to you.
 
  Robert.
 
  On Tue, Sep 9, 2008 at 9:30 PM, Coco [EMAIL PROTECTED] wrote:
   Hi,
  
   I'm presently working on a car simulator using OSG 2.2 for the visual.
   My problem is that I would like to load big areas (such as entire
 cities
   or
   more) which are fragmented in several Open Flight files without
 loading
   all
   those files.
   I looked at the OSG documentation and found out the
   osgTerrain::TerrainTile
   class (which doesn't exist on 2.2 OSG version).
   By using OSG 2.6, would I be able to load (with the TerrainTile class)
   only
   tiles (associated to a FLT file) that I need to see (which means
   according
   to the location of the camera)?
   Or do I need to implement this system by myself to avoid loading all
   files
   at the same time?
  
   I hope this post is clear enough and wait for answers.
  
   Kind regards,
  
   Nicolas Duval
   ___
   osg-users mailing list
   osg-users@lists.openscenegraph.org
  
  
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
  
  
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

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


Re: [osg-users] osgTerrain::TerrainTile question

2008-09-10 Thread Robert Osfield
Hi Nicolas,

On Wed, Sep 10, 2008 at 10:55 AM, Coco [EMAIL PROTECTED] wrote:
 I think there is a missunderstanding. My problem is to load a  big database,
 not to create it.
 I already have my database, fragmented in FLT files like I said. So I was
 suggesting to use DatabasePager to load flt nodes when I need it to. In this
 case I think I don't have to process any data...
 I hope I haven't got the wrong end of the stick (again!).

OpenFlight files aren't paged, you can't just magically page them
without creating PagedLOD nodes that decorate them.  You have to
create some kind of paged database, even if you are creating it
dynamically on demand.

Also OpenFlight is appalling format for doing format as its 10 times
slower than using native binary formats.  Your best best to process
your source data in such a way  as to build a paged .ive database that
is composed of hierarchy of tiles.

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


Re: [osg-users] osgTerrain::TerrainTile question

2008-09-10 Thread Brian R Hill
Nicholas,

If the openflight files are already subdivided into a grid of tiles
referenced into a single master file, then there's some code I posted to
the list a couple months ago that will convert them to use pagelods and
also convert them to .ive format for faster loading.

Search the archives and you should see how to do it.

Brian

[EMAIL PROTECTED] wrote: -

To: OpenSceneGraph Users osg-users@lists.openscenegraph.org
From: Coco [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
Date: 09/10/2008 05:55AM
Subject: Re: [osg-users] osgTerrain::TerrainTile question

2008/9/10, Robert Osfield 
[EMAIL PROTECTED]
:

Hi Nicolas,

I think you have got the wrong end of the stick.  I was suggesting
TerraPage as an illustration of how cultural data (3d models) can be

stored in with the tiles on disk.  In vis-sim industry TerraPage is
well known so I used it as as a case in point to save typing lots...

FYI, The OSG's TerraPage plugin uses the PagedLOD and the
DatabasePager under the hood to provide it's paging functionality.

In your case the problem is about creating databases not actually
rendering them - as the OSG will do all the paging, and threading for
you thanks the DatabasePager and other related classes.  The
DatabasePage doesn't help you create databases, it's tools like

VirtualPlanetBuilder that do this, but... right now VPB doesn't
support insertion of cultural data into the tiles, so you'll need post
process the database to insert this data.

Robert.





I think there is a missunderstanding. My problem is to load a  big
database, not to create it.

I already have my database, fragmented in FLT files like I said. So I was
suggesting to use DatabasePager to load flt nodes when I need it to. In
this case I think I don't have to process any data...

I hope I haven't got the wrong end of the stick (again!).



Nicolas




On Wed, Sep 10, 2008 at 9:49 AM, Coco 
[EMAIL PROTECTED]
 wrote:

 Thank you very much for your ideas!

 I found out the osgDB::DatabasePager class by reading old posts and it
looks
 to fit my problem very well.
 By using TerraPage I will have to pre-process my databases, whereas with
the

 database pager I don't need to.

 virtual void  requestNodeFile (const std::string fileName, osg::Group
 *group, float priority, const osg::FrameStamp *framestamp)
 Theoretically, I just have to use this function before the camera is
close

 enough to see next area(s).

 Regards,

 Nicolas Duval

 2008/9/10, Robert Osfield 
[EMAIL PROTECTED]
:


 Hi Nicolas,

 osgTerrain::TerrainTile was named osgTerrain::Terrain in 2.2.
 osgTerrain since 2.2 was evolved to be more rounded and functional,
 the naming was changed to better fit what goes on in big paged

 database, when the Terrain is composed of a hierarchy of TerrainTile.
 There is now a new class class osgTerrain::Terrain which represent the
 high level representation of the terrain.


 In your case loading 3D models with terrain is something that we be
 best done be pre-processing your data so that the 3D models are
 inserted into a paged database.  If you are familiar with TerraPage

 then this ideal should be familiar to you.

 Robert.

 On Tue, Sep 9, 2008 at 9:30 PM, Coco 
[EMAIL PROTECTED]
 wrote:

  Hi,
 
  I'm presently working on a car simulator using OSG 2.2 for the visual.
  My problem is that I would like to load big areas (such as entire
cities
  or

  more) which are fragmented in several Open Flight files without
loading
  all
  those files.
  I looked at the OSG documentation and found out the
  osgTerrain::TerrainTile

  class (which doesn't exist on 2.2 OSG version).
  By using OSG 2.6, would I be able to load (with the TerrainTile class)
  only
  tiles (associated to a FLT file) that I need to see (which means

  according
  to the location of the camera)?
  Or do I need to implement this system by myself to avoid loading all
  files
  at the same time?
 

  I hope this post is clear enough and wait for answers.
 
  Kind regards,
 
  Nicolas Duval
  ___

  osg-users mailing list
 
osg-users@lists.openscenegraph.org

 
 
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


 
 
 ___
 osg-users mailing list

osg-users@lists.openscenegraph.org



http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



 ___

 osg-users mailing list

osg-users@lists.openscenegraph.org


http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




___
osg-users mailing list
osg-users@lists.openscenegraph.org

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




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


___
osg-users

Re: [osg-users] osgTerrain::TerrainTile question

2008-09-10 Thread Coco
2008/9/10, Brian R Hill [EMAIL PROTECTED]:

 Nicholas,

 If the openflight files are already subdivided into a grid of tiles
 referenced into a single master file, then there's some code I posted to
 the list a couple months ago that will convert them to use pagelods and
 also convert them to .ive format for faster loading.

 Search the archives and you should see how to do it.


Brian,

Thanks a lot! I'm gonna take a look at this!

Nicolas

Brian

 [EMAIL PROTECTED] wrote: -

 To: OpenSceneGraph Users osg-users@lists.openscenegraph.org
 From: Coco [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
 Date: 09/10/2008 05:55AM
 Subject: Re: [osg-users] osgTerrain::TerrainTile question

 2008/9/10, Robert Osfield 
 [EMAIL PROTECTED]
 :

 Hi Nicolas,

 I think you have got the wrong end of the stick.  I was suggesting
 TerraPage as an illustration of how cultural data (3d models) can be

 stored in with the tiles on disk.  In vis-sim industry TerraPage is
 well known so I used it as as a case in point to save typing lots...

 FYI, The OSG's TerraPage plugin uses the PagedLOD and the
 DatabasePager under the hood to provide it's paging functionality.

 In your case the problem is about creating databases not actually
 rendering them - as the OSG will do all the paging, and threading for
 you thanks the DatabasePager and other related classes.  The
 DatabasePage doesn't help you create databases, it's tools like

 VirtualPlanetBuilder that do this, but... right now VPB doesn't
 support insertion of cultural data into the tiles, so you'll need post
 process the database to insert this data.

 Robert.





 I think there is a missunderstanding. My problem is to load a  big
 database, not to create it.

 I already have my database, fragmented in FLT files like I said. So I was
 suggesting to use DatabasePager to load flt nodes when I need it to. In
 this case I think I don't have to process any data...

 I hope I haven't got the wrong end of the stick (again!).



 Nicolas




 On Wed, Sep 10, 2008 at 9:49 AM, Coco 
 [EMAIL PROTECTED]
  wrote:

  Thank you very much for your ideas!
 
  I found out the osgDB::DatabasePager class by reading old posts and it
 looks
  to fit my problem very well.
  By using TerraPage I will have to pre-process my databases, whereas with
 the

  database pager I don't need to.
 
  virtual void  requestNodeFile (const std::string fileName, osg::Group
  *group, float priority, const osg::FrameStamp *framestamp)
  Theoretically, I just have to use this function before the camera is
 close

  enough to see next area(s).
 
  Regards,
 
  Nicolas Duval
 
  2008/9/10, Robert Osfield 
 [EMAIL PROTECTED]
 :
 

  Hi Nicolas,
 
  osgTerrain::TerrainTile was named osgTerrain::Terrain in 2.2.
  osgTerrain since 2.2 was evolved to be more rounded and functional,
  the naming was changed to better fit what goes on in big paged

  database, when the Terrain is composed of a hierarchy of TerrainTile.
  There is now a new class class osgTerrain::Terrain which represent the
  high level representation of the terrain.
 

  In your case loading 3D models with terrain is something that we be
  best done be pre-processing your data so that the 3D models are
  inserted into a paged database.  If you are familiar with TerraPage

  then this ideal should be familiar to you.
 
  Robert.
 
  On Tue, Sep 9, 2008 at 9:30 PM, Coco 
 [EMAIL PROTECTED]
  wrote:

   Hi,
  
   I'm presently working on a car simulator using OSG 2.2 for the visual.
   My problem is that I would like to load big areas (such as entire
 cities
   or

   more) which are fragmented in several Open Flight files without
 loading
   all
   those files.
   I looked at the OSG documentation and found out the
   osgTerrain::TerrainTile

   class (which doesn't exist on 2.2 OSG version).
   By using OSG 2.6, would I be able to load (with the TerrainTile class)
   only
   tiles (associated to a FLT file) that I need to see (which means

   according
   to the location of the camera)?
   Or do I need to implement this system by myself to avoid loading all
   files
   at the same time?
  

   I hope this post is clear enough and wait for answers.
  
   Kind regards,
  
   Nicolas Duval
   ___

   osg-users mailing list
  
 osg-users@lists.openscenegraph.org

  
  
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


  
  
  ___
  osg-users mailing list
 
 osg-users@lists.openscenegraph.org


 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

 
 
  ___

  osg-users mailing list
 
 osg-users@lists.openscenegraph.org

 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users

Re: [osg-users] osgTerrain::TerrainTile question

2008-09-09 Thread Joseanibal Colon Ramos
Are you perhaps referring to paged LevelOfDetail (LOD) terrain? OSG
database pager automatically processes these types of paged LOD terrains,
and loads higher resolution tiles as you zoom in (or the opposite: lower
reslution when zooming out). request your application to load your
master.ive file of your pagedLOD terrain, and that is all. I hope this
might be relevant to you, however, I don't know much about osgTerrain, so
I'd advise you to wait for someone to come along with a better answer on
osgTerrain. good luck,

-J


On Tue, September 9, 2008 1:30 pm, Coco wrote:
 Hi,

 I'm presently working on a car simulator using OSG 2.2 for the visual.
 My problem is that I would like to load big areas (such as entire cities
 or
 more) which are fragmented in several Open Flight files without loading
 all
 those files.
 I looked at the OSG documentation and found out the
 osgTerrain::TerrainTile
 class (which doesn't exist on 2.2 OSG version).
 By using OSG 2.6, would I be able to load (with the TerrainTile class)
 only
 tiles (associated to a FLT file) that I need to see (which means according
 to the location of the camera)?
 Or do I need to implement this system by myself to avoid loading all files
 at the same time?

 I hope this post is clear enough and wait for answers.

 Kind regards,

 Nicolas Duval
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



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