Hi Toni,

Antonio Bleile wrote:
>
> Imagine this: You have an interactive fish tank modeller, that works
> like this: Let's say you have an editor for fish where you can define the
> geometry of you fish, textures and so on. The editor is running in it's
> own OpenGL context (and thus in it's own OSG-Window). Secondly, you have
> an editor for fish swarms where you can create fish swarms using fish from
> your database. This editor again runs in a different ogl-osg context.
> In the fish swarm composing editor you use cloned nodes from the NodePtr's
> coming from the fish editor context. Is the concept clear?
> 
> If everything was one osg context I'd expect that OpenSG recycles the
> display lists from the original nodes when I call "clone". But given
> that you create the clone in a different context my guess is that the 
> display list is created once again in the new context. But what happens
> if I create 1000 clones of the same fish instance? Does it reallocate
> all the gl stuff for every new cloned instance? 

with shallow copies: no, with deep copies: yes.

        Dirk

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to