[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!

Cheers,
Cristina

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26149#26149





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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:
http://forum.openscenegraph.org/viewtopic.php?p=17392#17392





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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:
http://forum.openscenegraph.org/viewtopic.php?p=13487#13487





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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,
Cristina

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=13529#13529





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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 no effect, 
but if I set the fog to the root of the scene's StateSet everything is fine.
Is it possible to set the fog in the camera ?

Thank you!

Cheers,
Cristina

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=13293#13293





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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 for that drawable the pointer is 
NULL.
Can anybody tell me why is NULL? Is it normal that is NULL? Is there any way I 
can retrieve that image pointer?
I even tried when loading the model to cach the image, but it did not work.

Thank you!

Cheers,
Cristina

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=13055#13055





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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 here:
http://forum.openscenegraph.org/viewtopic.php?p=12122#12122





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org