[osg-users] writeNodeFile Failure

2010-03-25 Thread Cristina Paponi
Hi, I override the PositionAttitudeTransform node, but when I try to save the scene graph, my overriden node and everything below it, is not saved to the osg file. What do I have to do to be able to save the whole scene graph? The node class name is MyNode and libraryName is osg. Thank you!

[osg-users] Precipitation without using shaders

2009-09-15 Thread Cristina Paponi
Hi, I need to implement precipitation on a system that doesn't support shaders. Is there anybody that has an example of precipitation in OSG without using shaders? Thank you! Cheers, Cristina -- Read this topic online here:

Re: [osg-users] Set fog in the canera StateSet

2009-06-04 Thread Cristina Paponi
Hi, Shayne My code is more or less like yours, but I'm not using the Composite viewer. I'm not sure why it doesn't work. Hi Wojtek Lewandowski Your solution worked for me too. Thank you both for your time! Cheers, Cristina -- Read this topic online here:

Re: [osg-users] Image pointer in the Intersected node is NULL

2009-06-04 Thread Cristina Paponi
Hi Robert, I just converted my flt file to an osg, and I started to have the same problem as before. My image pointer is NULL. If I load the flt file the image pointer is OK, if I load the osg file the image pointer is NULL. Any idea why? I used osgconv to convert the file. Thank you! Cheers,

Re: [osg-users] Image pointer in the Intersected node is NULL

2009-06-04 Thread Cristina Paponi
Hi, I guess I figure it out. The osgconv runs the optimizer, so I set the OSG_OPTIMIZER environment variable to OFF and now it works. Thank you! Cheers, Cristina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13530#13530

[osg-users] Set fog in the canera StateSet

2009-06-01 Thread Cristina Paponi
Hi, Could you please help me with the following problem. In my scene I have 2 cameras one for day and one for thermo. Because the fog will appear different in day and thermo, I tried to assign the fog to the camera's StateSet. When I try to set the fog attribute to the camera StateSet there is

[osg-users] Image pointer in the Intersected node is NULL

2009-05-27 Thread Cristina Paponi
Hi, I have a scene graph and I'm trying to intersect with it using a LineSegmentIntersector. In the intersection result I get a List of nodes, the last node being the Geode containing the drawable that I intersected with. When I try to retrive the image pointer which should contain the texture

Re: [osg-users] Image pointer in the Intersected node is NULL

2009-05-27 Thread Cristina Paponi
Hi, You were right. The optimize enables UnrefRefImageOnApply feature, so my image pointer is NULL. I disable the texture optimization, so now it works. Thank you! Cheers, Cristina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13059#13059

[osg-users] Intersection question

2009-05-14 Thread Cristina Paponi
Hi, I am using a LineSegmentIntersector to determine all the intersections in my scene. In the osgUtil::LineSegmentIntersector::Intersections multiset, is the first intersection in the set the closest to the startPoint? Thank you! Cheers, Cristina -- Read this topic online