On 6/15/2011 12:33 PM, Torben Dannhauer wrote:
> Can you help me and give a short overview how to preload a plugin?

  I see Robert already answered this.

> Additionally, do I have to "open" my loader to all file extensions? I tried 
> it but that does not work, all subtiles are loaded then with the native .ive 
> loader and not with my modification loader.

  If you preload your plugin, it should get offered the ive files first.

> In the Constructor of the loader I have these calls to allow all file endings:
> Code:
> supportsExtension( "terrainmod", "Terrain modification pseudo loader");
> supportsExtension( "*", "Terrain modification pseudo loader");

  Should be fine.

> but then the plugin is not longer used, even the old behavior with he 
> pseudoloader extension ( calling "osgviewer terrain.ive.terrainmod" ) does 
> not work any longer.

  Have you traced in to see why? This should work.

> 3.
> To sum up what I havbe understood: Applying a visitor while data is displayed 
> is only allowed during the update phase. Do I have to mark data as dynamic? 
> The work of the visistor will stall the rendering process till its finished, 
> right?

  Correct. I don't know if you need to make the data as dynamic or if simply 
dirty()ing it
afterward is sufficient. I suspect it should be flagged as DYNAMIC.

> Because stalling the rendering process should be avoided, wouldn't it be 
> better to reload the affected tiles by the database pager, and then replace 
> the tiles if they are loaded? This also unifies the modification process 
> because only modification-by-loading is done.

  Yes, that's probably a good idea.

> I thought the cleanest solution would be that all affected tiles are marked 
> as dirty, so the database pager wuold reload the tiles.
> My question is: Is there a mechanism in the databasepager to mark tiles as 
> "dirty/to-reload ? 

  I think if you simply manually wipe out the child pointer in the PagedLOD 
(Group) on the
next cull traversal the PagedLOD will notice it is missing and queue it for 
reloading. In
the mean time, the next lower LOD will be displayed.

  I think I had come up with a way to request the PagedLOD schedule a node for 
reload even
while it was already loaded. This may have been code that was not accepted into 
OSG.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. [email protected] 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
    "There is no Truth. There is only Perception. To Perceive is to Exist." - 
Xen
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to