Hi Ralf, Christophe

We use ReadFileCallback to modify requested nodes from database pager. It
works fine, but make sure Your code is thread safe.

Regards,
Maciej

2008/12/18 christophe loustaunau <christophe.loustau...@gmail.com>

> Hi Ralf,
>
> look at ReadFileCallback in the example osgCallBack, it may be what you
> wan't.
>
> Regards.
>
> On Thu, Dec 18, 2008 at 2:20 PM, Ralf Stokholm <alfma...@arenalogic.com>wrote:
>
>> Hi List
>>
>> Is it possible to attach a callback to handle/modify loaded nodes in the
>> database thread?
>>
>> Background:
>>
>> We are using VPB generatet terrain database in a delta3d application, to
>> get the terrain mesh into our simulation we are using a cull visitor which
>> takes care of loading loading and removing collision meshes from the physics
>> engine when the accociatet node is generatet and removed.
>>
>> Even though this approach works well, it is rather slow and it annoys me
>> that I have to dublikate bookkeeping which must already be implementet in
>> the databasepager. I would also like to put the work in the database thread
>> when possible.
>>
>> Is there any callbacks or similar for plugging in this code at the moment?
>>
>> Brgs.
>>
>> Ralf Stokholm.
>> www.arenalogic.com
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
>
> --
> Christophe Loustaunau.
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


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

Reply via email to