Re: [osg-users] ShaderGen and OpenGL ES2

2011-04-15 Thread Ankur Gandhi
Hi Robert, I am using OSG 2.9.11 dev release. recently I have started working on OSG over GLES2. Although my OSG based code is working fine on OpenGL based system, i face similar issues that of Yun-Ta on GLES2. My test application is importing a plain 3ds max object onto screen along with

Re: [osg-users] [osgPlugins] How to read/write/access OpenFlight Surface Material Code (SMC) and Feature ID (FID) ?

2011-04-15 Thread Jean-Sébastien Guay
Hi Robert, In case you are interested, I have made a patch for the OpenFlight plugin so that it reades/writes the surface material code (SMC) and feature id (FID) and stores it as a description of the geode that contains these attributes. The format of the description string is like

Re: [osg-users] osgOcean in CompositeViewer with multiple views

2011-04-15 Thread Jean-Sébastien Guay
Hi all, I'll be thankful for any comments / suggestions. One full day and no suggestions, so I'll assume that my idea of using an approach similar to the ViewDependentShadow techniques (with ViewData) is in the right vein, and I think I'll start working on that. I'd still appreciate any

[osg-users] ease motion with viewer camera

2011-04-15 Thread Stephane Dumon
Hi, ok, just a few words to tell you what i am trying to do. have a 3D scene, to this point nothing special. On this 3D scene I draw (like we can do in Paint) a rectangle. I add a camera which has as child node this Geode. My greatest wishes, for now, is to make an ease motion from my viewer

Re: [osg-users] Meta-data in core OSG - project started

2011-04-15 Thread Peter Amstutz
My initial impression is that this seems pretty well thought out, but a little incomplete. Some comments: - The ComponentContainer interface is lacking a way to iterate over all values. - The add/find/delete methods on ComponentContainer should take the owner osg::Object as a parameter. This

Re: [osg-users] Meta-data in core OSG - project started

2011-04-15 Thread Jean-Sébastien Guay
Hi Peter, - For serialization, storing simple value types is pretty straightforward. The harder part is dealing with compound types (structs/classes) and/or containers (map/vector). Perhaps there is a way to leverage osgIntrospection? I think the new serializers make it simple to make new

Re: [osg-users] Meta-data in core OSG - project started

2011-04-15 Thread Sukender
Hi Peter, Well observed. We'll add methods to iterate and a pointer to object. But we just spotted a flaw in our design: we wrote some virtual templated methods (which is impossible of course)... Any idea on how to return a T* in ComponentContainer::findFirstMeta()? Sukender PVLE -

Re: [osg-users] Meta-data in core OSG - project started

2011-04-15 Thread Sukender
Hi J-S, Actually I hoped someone would help us on the serialization subject! And yes, I guess new serializers may help. But what about formats supporting metas? It may be helpful to add somewhere a callback/serializer/anything, which may be called by plugins to convert from/to a string

Re: [osg-users] Meta-data in core OSG - project started

2011-04-15 Thread Peter Amstutz
Put the dynamic_castT inside the method. On 4/15/2011 10:53 AM, Sukender wrote: Hi Peter, Well observed. We'll add methods to iterate and a pointer to object. But we just spotted a flaw in our design: we wrote some virtual templated methods (which is impossible of course)... Any idea on

Re: [osg-users] Meta-data in core OSG - project started

2011-04-15 Thread Sukender
Hi Peter, Thanks... but what for the addMetaT()? I mean it's okay having a addMeta(string, ValueBase *), but this will force you to write o-addMeta( myMeta, new Valueint(5) ); instead of simply o-addMeta( myMeta, 5 ); which could be nice. Any idea? Sukender PVLE - Lightweight

Re: [osg-users] Meta-data in core OSG - project started

2011-04-15 Thread Jean-Sébastien Guay
Hi Sukender, Actually I hoped someone would help us on the serialization subject! And yes, I guess new serializers may help. I think so, I haven't used them that much but from the description they seem simple to use, and as long as the class you want to save is serializable then when the

[osg-users] Build UserInterface

2011-04-15 Thread ahmed salah
Hi, i am currently using osg version 1.2 and i am trying to make user interface so user can submit commands .. etc i can use MFC or whatever technology that will help any advice that can help me doing this ? ... Thank you! Cheers, ahmed -- Read this topic online here:

Re: [osg-users] Build UserInterface

2011-04-15 Thread Chris 'Xenon' Hanson
On 4/15/2011 9:11 AM, ahmed salah wrote: i am currently using osg version 1.2 and i am trying to make user interface Do you really mean 1.2? 1.2 is REALLY old. so user can submit commands .. etc i can use MFC or whatever technology that will help any advice that can help me doing this

Re: [osg-users] Build UserInterface

2011-04-15 Thread ahmed salah
ya i am using OSG 1.2 for some compatibility reasons with other tool is there anything like OSGWidget in older versions ? thanx -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38512#38512 ___

[osg-users] Highlighting Verts with a fixed screen size

2011-04-15 Thread Kevin Bentley
I want to have a mode in my viewer where some verts in the scene are highlighted. I originally implemented this with a fixed size box positioned wherever I had a vert to highlight. What I really want though is for the box to be the same size on the screen (so as you zoom in close to the vert

Re: [osg-users] Build UserInterface

2011-04-15 Thread Jason Daly
On 04/15/2011 01:22 PM, ahmed salah wrote: ya i am using OSG 1.2 for some compatibility reasons with other tool is there anything like OSGWidget in older versions ? No. You'll have to use a 3rd party toolkit. --J ___ osg-users mailing list

[osg-users] Render To Image Crash in RenderStage.cpp - trunk

2011-04-15 Thread Matthias Asselborn
Hi, i want to render a loaded scene into an image. i dont want to see any viewer windows. I have tried to realize it with osg::Viewer, but after the call viewer-frame a viewer window poped up. Now ive tried it with osgUtils::SceneViewer but after the draw call - the program crashes whats