Re: [osg-users] [osgPlugins] [Inventor plugin] Fix bugs that Inventor plugin lost Sub-Node name in a *.iv file

2010-06-11 Thread Tan Dunming
Hi John, I have post the submission. See the forum link below. http://forum.openscenegraph.org/viewtopic.php?t=5968 But I am sorry that I did not use the Subversion repository source code for I do not have time to rebuild the latest version. In stead, I use osgdb_iv from osg_2.9.7. I guess thes

Re: [osg-users] How to apply shaders to parts of models

2010-06-11 Thread Peter Bear
Thanks, that explains a lot. Also, sorry about taking so long to reply, life has been a bit chaotic lately. Cheers, Peter -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28843#28843 ___ osg-users mail

Re: [osg-users] Scaling an Object -> Normals

2010-06-11 Thread Ben Cain
Mail got formated oddly ... trying again. // Normalize normals to correct lighting from the scaling operation. object->getOrCreateStateSet()->setMode(GL_NORMALIZE,osg::StateAttribute::ON); On 6/11/10, Ben Cain wrote: > // Normalize normals to correct lighting from the scaling operation. > objec

Re: [osg-users] Scaling an Object -> Normals

2010-06-11 Thread Ben Cain
// Normalize normals to correct lighting from the scaling operation. object->getOrCreateStateSet()->setMode(GL_NORMALIZE, osg::StateAttribute::ON); On Fri, Jun 11, 2010 at 4:27 PM, Thomas Canipel wrote: > Hi, > > I would like to know how I can re-scale the normal of an object loaded after > scal

[osg-users] Scaling an Object -> Normals

2010-06-11 Thread Thomas Canipel
Hi, I would like to know how I can re-scale the normal of an object loaded after scale the object ? Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28840#28840 ___ osg-use

Re: [osg-users] DataPager issue

2010-06-11 Thread Thomas Canipel
Hi rober, is there a solution to clear the memory of the datapager ? since the function clear() doesnt seem to release the information Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28839#28839 ___

Re: [osg-users] scene data and manipulator

2010-06-11 Thread Thomas Canipel
there is no ''right' way to set the object to the scene, but i usually set a group to the sceneData and after that I addChild to the group . Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28838#28838 __

[osg-users] [build] Successful build using VS2010?

2010-06-11 Thread Nick Schultz
Has anybody been able to successfully build the latest dev-head in VS2010? I kept getting several fatal LINK errors saying it cannot open input files ex: LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\osgGA.lib' I'm assuming it's a path error made somewhere in the buil

Re: [osg-users] mesh with per-polygon color data?

2010-06-11 Thread Jason Daly
Alborz Gharraee wrote: Hi I have a triangle mesh that contains vertex, triangle vertex index, and color data. I used an osg::Geometry and it is rendered perfectly. Just two questions: 1. When I add the color data to the geometry, the application slows down. I understand that per-primitive bin

Re: [osg-users] Picking node with scaled positionattitudetransform as parent

2010-06-11 Thread Greg Myers
Hi J-S, Thanks for the explanation. I really appreciate it. I'm using the computeIntersections function for osgViewer::View so it calculates the line segment start and end points for me but now that I'm armed with the knowledge you gave me about the failing condition I can try and do the in

Re: [osg-users] Picking node with scaled positionattitudetransform as parent

2010-06-11 Thread Jean-Sébastien Guay
Hi Greg, Kudos on taking the initiative to debug into the OSG source yourself. I don't think many would have been able to answer your question of why the intersection test was failing, so that was the good thing to do. The last test ( line 16 ) is failing. From reading the web I understand

Re: [osg-users] Picking node with scaled positionattitudetransform as parent

2010-06-11 Thread Greg Myers
Looks like my guess was wrong. It looks like the bounding sphere does take into account the scale. I looked into the intersection test in LineSegmentIntersector and found that the line segment is in fact intersecting the sphere at two points but one of the final tests is failing. Here is the

[osg-users] mesh with per-polygon color data?

2010-06-11 Thread Alborz Gharraee
Hi I have a triangle mesh that contains vertex, triangle vertex index, and color data. I used an osg::Geometry and it is rendered perfectly. Just two questions: 1. When I add the color data to the geometry, the application slows down. I understand that per-primitive binding slows things down, b

[osg-users] Distortion

2010-06-11 Thread Naresh Palaiya
Hi, Hello Guys, Actually i have to create radial distortion in an image using osg. So i created root node then camera node then geode and atlast i was trying to create the geometry which i can attach to the geode node. I am assuming distortion to be like this D = (1 +k1*r*r + k2*r*r*r*r); wher

Re: [osg-users] I don't want OSG to rescal textures, how can I avoid it?

2010-06-11 Thread Manuel Garea
Ulrich Hertlein wrote: > On 11/06/10 15:13 , Manuel Garea wrote: > > > Hi, I have a problem with textures: my textures have sizes that are not > > power of two, > > and I don't want OSG to rescale them. > > > > OSG show me a message like: > > > > > > > Scalling image '...' from (200x200) to (

Re: [osg-users] Draw dynamic line with LODs and EBO

2010-06-11 Thread Glenn Waldron
Roman, I see that you are allocating EBOs by hand. If you skip that and just call setUseVertexBufferObjects(true), OSG will automatically create a single shared EBO for the osg::Geometry, and put all your PrimitiveSets inside that shared EBO at various offsets/spans. (I could be mistaken but I thi

Re: [osg-users] Weekend adventure

2010-06-11 Thread Montgomery, John T.
Looks great - Have a nice weekend! I'm on a yacht (read: dingy) to Rothesay and environs on the 29th. :-) John Montgomery | UOA | +44 (0) 1224 27 3218 | EWG37. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Be

[osg-users] Draw dynamic line with LODs and EBO

2010-06-11 Thread Roman Grigoriev
Hi, I have to make in my app dynamic lines. As far as I know display lists are deprecated for now on GLES2 platform I try to make it using VBO+EBO, like in osgparametric,so now it works fine. But I have to draw up to 1000 lines with 100 points so it can be so hard to GPU. So I decided to recal

Re: [osg-users] Weekend adventure

2010-06-11 Thread Wang Rui
Hi Robert, Ah, life becomes colorful with hobbies, isn't it? :) I'm a novel writer in my spare time, and love to read lots of books everytime and everywhere. But it seems that I still really lack physical exercise. Maybe I should get out of the city and get in a good walk like you, after my OSG b

Re: [osg-users] Weekend adventure

2010-06-11 Thread Jean-Sébastien Guay
Hi Robert, I've just wrapped up my work for the week, and taking this afternoon and whole weekend off! The car is packed with food, camping and running equipment and I'm now setting off. Tomorrow morning I set off on my first mountain marathon, the Lochalsh Dirty 30. http://www.lochalsh-t

[osg-users] Weekend adventure

2010-06-11 Thread Robert Osfield
Hi All, I've just wrapped up my work for the week, and taking this afternoon and whole weekend off! The car is packed with food, camping and running equipment and I'm now setting off. Tomorrow morning I set off on my first mountain marathon, the Lochalsh Dirty 30. http://www.lochalsh-trails.

Re: [osg-users] Strange error only in debug mode

2010-06-11 Thread Raymond de Vries
Hi, Fyi, you can also remove a callback by using NULL, the ref counting would clean it up then. Would that help? Cheers Raymond On 6/11/2010 1:34 PM, Alberto Luaces wrote: "daniele argiolas" writes: Thank you. I don't understand where is the error because in my program I simply call

Re: [osg-users] Strange error only in debug mode

2010-06-11 Thread Alberto Luaces
"daniele argiolas" writes: > Thank you. I don't understand where is the error because in my program I > simply call sometimes a removeUpdateCallback(nc) then an > addUpdateCallback(nc) over my object, where nc is an osgAnimationCallback* > object. I never delete my object then it's very strange

Re: [osg-users] Strange error only in debug mode

2010-06-11 Thread daniele argiolas
Thank you. I don't understand where is the error because in my program I simply call sometimes a removeUpdateCallback(nc) then an addUpdateCallback(nc) over my object, where nc is an osgAnimationCallback* object. I never delete my object then it's very strange this output. Can anybody help me?

Re: [osg-users] [vpb] resuming vpb build, revisited :)

2010-06-11 Thread Felix Morsdorf
Hi all, a single osgdem build works flawlessly. Will keep an eye on the vpb issue with the next larger build we will have, but this will most likely be with the next version :) Thank you! Cheers, Felix -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.p

Re: [osg-users] ffmpeg synchronisation

2010-06-11 Thread J.P. Delport
Hi, On 11/06/10 11:06, Michael Platings wrote: Hi Tanguy, thanks for the pointers, the timing code makes much more sense now. Sound does indeed make it a lot more problematic, seems I'll have to do some lateral thinking on this one :\ not a fix for your problem, but experiment with mplayer's "

Re: [osg-users] ffmpeg synchronisation

2010-06-11 Thread Michael Platings
Hi Tanguy, thanks for the pointers, the timing code makes much more sense now. Sound does indeed make it a lot more problematic, seems I'll have to do some lateral thinking on this one :\ On 10 June 2010 13:52, Tanguy Fautre wrote: > Hi Michael, > > > > It’s been a long time since I’ve touched

Re: [osg-users] [osgPlugins] FBX texture export problem.

2010-06-11 Thread Michael Platings
Hi Dario, if the file appears correctly in FBX QuickTime Viewer but not in the latest version of OpenSceneGraph then please send the file over to me in a .zip with associated textures, and I'll take a look. On 10 June 2010 21:09, Dario Minieri wrote: > Hi, > > anyone has any other information ab

Re: [osg-users] scene data and manipulator

2010-06-11 Thread Gianni Ambrosio
Il 6/11/2010 10:37 AM, Gianni Ambrosio ha scritto: With this code I can see two problems. First of all the loaded object is not fitted in the viewer. Then using the mouse to rotate (leftmouse+move), translate (middle mouse+move) or zoom (right mouse+move), I just can see the effect of rotation,

Re: [osg-users] scene data and manipulator

2010-06-11 Thread Gianni Ambrosio
Hi Thomas, Il 6/11/2010 3:45 AM, Thomas Canipel ha scritto: its normal that when you set an osg::Group as the SceneData that when you add a child the viewer is notify and update the graphic, imaging that you have to create 1000 of objects, if you have to recreate a a root and set it to the v

Re: [osg-users] Unsupported wrapper class error?

2010-06-11 Thread Robert Osfield
Hi Glenn, I can't shed any light on the issue, but I can possible help dig down to find out what is wrong. Would it be possible for you to come up with a simple example that reproduces the problem? Robert. On Thu, Jun 10, 2010 at 8:03 PM, Glenn Waldron wrote: > Hi folks, > I'm reading and writ