Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-10-29 Thread Sukender
The mini-system I developped contains a generic type "T". For now, I support int, double, string, and date (I need a boost::local_time structure). Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ - "Ulrich Hertlein" a écrit : > Hi Sukender, > > On 29/1

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-10-29 Thread Ulrich Hertlein
Hi Sukender, On 29/10/09 4:09 PM, Sukender wrote: And what do you mean by "the problem with typing the contained data"? The key/value map I have in mind only contains strings, but it would be nice to have typed data as well, like float. Cheers, /ulrich __

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-10-29 Thread Sukender
Hi Ulrich, I agree putting serialization in the object breaks the reader/writer phylosophy. This is why the idea of Meta/Component/osg::KeyValue is nice. And I think this could be a few lines. However I disagree with the "name collisions" problem: this should be an user-dependant implementatio

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-10-29 Thread Ulrich Hertlein
Hi Sukender, On 29/10/09 3:38 PM, Sukender wrote: And once again, don't you think supporting metadata ("Name, value") directly in the osg::Object wouldn't be nice? Or could we code something like: "if UserData is an osg::Object (or another given type), read from/write to file using UserData->s

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-10-29 Thread Sukender
é: Vendredi 14 Août 2009 14h05:26 GMT +01:00 Amsterdam / Berlin / > Berne / Rome / Stockholm / Vienne > Objet: Re: [osg-users] Suggestion: Add components in nodes > (aggregation) > > Hi Sukender, > > The way I'd tackle something like this would be to have a > ComponentC

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-08-14 Thread Sukender
;OpenSceneGraph Users" Envoyé: Vendredi 14 Août 2009 14h05:26 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [osg-users] Suggestion: Add components in nodes (aggregation) Hi Sukender, The way I'd tackle something like this would be to have a ComponentCo

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-08-14 Thread Robert Osfield
Hi Sukender, The way I'd tackle something like this would be to have a ComponentContainer subclass from osg::Referenced, and then just directly attach this to the Node/Object/Drawable/StateSet via the existing UserData field. The intention of the UserData is to facilitate this type of user extens

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-08-13 Thread Martin Scheffler
Regarding actor components in Delta3D: The GMComponents are not at the actor level, but even higher, they are to be used for stuff like network adapters, device interfaces and other "global" stuff. If you check out Delta3D from trunk you can take a look at inc/dtGame/actorcomponentbase.h which b

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-08-13 Thread Sukender
voyé: Jeudi 13 Août 2009 15h41:12 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [osg-users] Suggestion: Add components in nodes (aggregation) Hi, Sukender wrote: > Hi JP, > > Thanks for the info. But I just looked into Delta3D dtCore and dtUtil > namesp

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-08-13 Thread J.P. Delport
iginal - De: "J.P. Delport" À: "OpenSceneGraph Users" Envoyé: Jeudi 13 Août 2009 14h52:43 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [osg-users] Suggestion: Add components in nodes (aggregation) Hi, Sukender wrote: Hi Roland and JP, Of

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-08-13 Thread Sukender
tp://pvle.sourceforge.net/ - Mail Original - De: "Roland Smeenk" À: osg-users@lists.openscenegraph.org Envoyé: Jeudi 13 Août 2009 15h17:58 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [osg-users] Suggestion: Add components in nodes (aggregation) Suken

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-08-13 Thread Roland Smeenk
Sukender wrote: > Anyway, I could add my "ComponentContainer" object as a userdata to avoid > being too intrusive in OSG code, of course. > That's what I had in mind. We are using a componentized design ourselves. Simulation objects are composed of viewer and controller components much like

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-08-13 Thread Sukender
OpenSceneGraph Users" Envoyé: Jeudi 13 Août 2009 14h52:43 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [osg-users] Suggestion: Add components in nodes (aggregation) Hi, Sukender wrote: > Hi Roland and JP, > > Of course... I forgot to mention that what I

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-08-13 Thread J.P. Delport
Hi, Sukender wrote: Hi Roland and JP, Of course... I forgot to mention that what I want is much structured than the well-known userdata. It's a bit as if the "userdata" was a simple "void *" (yes, that's a bit exaggerated)... I think Components are a more sophisticated system, yet very flexible

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-08-13 Thread Sukender
Lightweight cross-platform game engine - http://pvle.sourceforge.net/ - Mail Original - De: "Roland Smeenk" À: osg-users@lists.openscenegraph.org Envoyé: Jeudi 13 Août 2009 14h20:12 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [osg-users] Sug

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-08-13 Thread J.P. Delport
Hi, maybe you are looking for userData? Grep the include dir for userData or UserData. jp Sukender wrote: Hi all, I'm working on a project that needs to add various data/metadata to the nodes. I was wondering: 1. Does something already exists for this (more flexible than the description s

Re: [osg-users] Suggestion: Add components in nodes (aggregation)

2009-08-13 Thread Roland Smeenk
This is typically done by adding userdata, which happens to be supported by each osg:Object (including nodes) in OpenSceneGraph. >From source in osg::Object Code: /** * Set user data, data must be subclassed from Referenced to allow * automatic memory handling. If yo

[osg-users] Suggestion: Add components in nodes (aggregation)

2009-08-13 Thread Sukender
Hi all, I'm working on a project that needs to add various data/metadata to the nodes. I was wondering: 1. Does something already exists for this (more flexible than the description string list)? 2. How would you implement this? Personnally, I was looking towards aggregation. See http://cowboy