Re: [osg-users] Camera attached to object

2012-03-26 Thread Sergey Bocharov
Hi, Sergey I cannot get the right result. Please help me if you can. 79250103663 ... Thank you! Cheers, Sergey -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46581#46581 ___ osg-users mailing

Re: [osg-users] OSG + Qt + threading.

2012-03-26 Thread Aitor Ardanza
Hi Aurelien, It seems that already works! I attached code... Code: _qtViewer = new osgGenerals::ViewerQT(this); ui.OSGRenderLayout-addWidget(_qtViewer); _qtViewer-updateCamera(center,eye,up); _qtViewer-setSceneData(_mainLogic-getRootGroup()); _qtViewer-startRendering(); Thank you! Cheers,

[osg-users] Questions on AutoTransform

2012-03-26 Thread Carsten Scharfe
Hi, I'm having to views, one normal 3d view and one top view with an camera icon, that represents the camera of the 3d view (orientation and position). The top view (with an orthogonal projection) kann be zoomed in and zoomed out. Of course, zooming out the top view will scale the camera icon,

[osg-users] Passing dae data in shader.

2012-03-26 Thread Peterakos
Hello. Is there any way using the dae plugin in osg, to pass the vertices in shader code as attributes? What i do now for simple geometry shapes (lets assume we have a quad), is to use setAttributeValues( ... ); passing the vertices' positions, colors normals etc. How can i get this information

Re: [osg-users] Passing dae data in shader.

2012-03-26 Thread Christian Buchner
I'd say you would have to modify the DAE reader according to your shader's needs, or alternatively you'd need to do some postprocessing on the returned geometry. I would think that modifying the reader might be easier than processing its generated output. Christian

[osg-users] constant size overlay

2012-03-26 Thread Michael Schanne
Hi, I want to use OSG to create an overlay where I have different symbols marking certain points in my scene. I want these symbols to remain a constant size in screen coordinates until crossing certain thresholds (for example, they are size A when at a distance X from the camera, then change

Re: [osg-users] Passing dae data in shader.

2012-03-26 Thread Peterakos
Hello. Is there any Sample/Example for this ? Thank you again. On 26 March 2012 15:00, Christian Buchner christian.buch...@gmail.comwrote: I'd say you would have to modify the DAE reader according to your shader's needs, or alternatively you'd need to do some postprocessing on the returned

[osg-users] Cleanup of (trailing) whitespace in OSG code (commit 13041)

2012-03-26 Thread Erik den Dekker
Hi Robert, I see that you have recently run a script over the OSG code to (from commit message 13041) 'remove trailing spaces and tabs'. While I am a proponent of this effort and greatly appreciate the move, I do have some questions about it: 1) Does the 'trailing' in this case also

Re: [osg-users] Cleanup of (trailing) whitespace in OSG code (commit 13041)

2012-03-26 Thread Robert Osfield
HI Erik, On 26 March 2012 15:50, Erik den Dekker e...@dendekker.com wrote: I see that you have recently run a script over the OSG code to (from commit message 13041) 'remove trailing spaces and tabs'. While I am a proponent of this effort and greatly appreciate the move, I do have some

Re: [osg-users] Wiki

2012-03-26 Thread Jason Daly
On 03/22/2012 04:29 PM, Robert Osfield wrote: I can also just submit the app if that's the preferred way of doing it. You could just send the entry text and link to me and I could add it for you. Hi, Robert, I sent these to you last week (off-list). No rush it getting it posted, but I just

Re: [osg-users] constant size overlay

2012-03-26 Thread Jason Daly
On 03/26/2012 09:03 AM, Michael Schanne wrote: Hi, I want to use OSG to create an overlay where I have different symbols marking certain points in my scene. I want these symbols to remain a constant size in screen coordinates until crossing certain thresholds (for example, they are size A

Re: [osg-users] Getting animations initial frame bones matrix

2012-03-26 Thread Aitor Ardanza
Hi, For those who need to know how to do ... Code: std::map\std::string,osg::Matrix desiredMatrixs; osg::ref_ptr\osgAnimation::Animation anim = _AnimationManager-getAnimation(name); if(anim.valid()){ osgAnimation::ChannelList

Re: [osg-users] Wiki

2012-03-26 Thread Robert Osfield
Hi Jason, On 26 March 2012 16:43, Jason Daly jd...@ist.ucf.edu wrote: On 03/22/2012 04:29 PM, Robert Osfield wrote: I sent these to you last week (off-list).  No rush it getting it posted, but I just wanted to make sure that you did actually receive them. I got it thanks. Presently trying to

Re: [osg-users] Wiki

2012-03-26 Thread Jason Daly
On 03/26/2012 12:44 PM, Robert Osfield wrote: Hi Jason, On 26 March 2012 16:43, Jason Dalyjd...@ist.ucf.edu wrote: On 03/22/2012 04:29 PM, Robert Osfield wrote: I sent these to you last week (off-list). No rush it getting it posted, but I just wanted to make sure that you did actually

[osg-users] Set object attitude using a normal and a heading

2012-03-26 Thread Aurelien Albert
Hi, I want to set an object attitude (represented by a quaternion) using two parameters : - a normal vector (to set rotation around X and Y axis) - a heading angle (rotation around non-transformed Z axis) I tried to set the attitude quaternion : 1/ using the normal vector : Code: osg::Vec3d

Re: [osg-users] Cleanup of (trailing) whitespace in OSG code (commit 13041)

2012-03-26 Thread Erik den Dekker
Hi Robert, On 26-03-2012, at 17:37, Robert Osfield wrote: I didn't do all the files as I wanted to make sure nothing broke in the process. So far no complaints... When I first started reading your post I did initial think oh uh something must have gone wrong... No complaints from me :-).

[osg-users] Text Class Sizing Issue!

2012-03-26 Thread David Glenn
Greetings! One of the issues that were brought up by my partner out here John Markano was that when the text is set to screen mode, the tendency is that the text stays static in zoom in and then it will reach a point that it will start to shrink. My understanding is that is not supposed to

Re: [osg-users] Passing dae data in shader.

2012-03-26 Thread Jean-Sébastien Guay
Hi Christian, I would think that modifying the reader might be easier than processing its generated output. I would say the opposite - creating a NodeVisitor that you run over the loaded graph, which will massage the data to suit your needs, would be easier than modifying the reader plugin.

[osg-users] simplifier tristripifier

2012-03-26 Thread Cedric Pinson
Hi Robert and all users, I was wondering if it still makes sense to use the stripifier like in the osgUtils::simplifier, in the end it generates a lot of draw calls and make the geometry slow. To fix this I disabled the stripifier in my osgconv bin when using simplifier. I was curious if it

Re: [osg-users] I made the libRocket GUI library usable with OSG

2012-03-26 Thread Martin Scheffler
Hi, I can't read that last comment (not approved), but whatever the question: I am still improving osgLibRocket, subversion address: https://dtentity.googlecode.com/svn/trunk/source/osgLibRocket Recent improvements: * No longer re-adding osg geometry every frame, instead increasing/decreasing