Re: [osg-users] Are shaders not saved during osgDB::writeNodeFile?

2012-11-17 Thread Paul Martz
I did this: osgconv glsl_confetti.osgt out.osg then looked at out.osg in an editor and it definitely contains shaders. -Paul On 11/16/2012 9:36 PM, michael kapelko wrote: Hi. I've attached custom shader for a node in a ShadowedScene. I then called osgDB::writeNodeFile upon it and found

Re: [osg-users] Are shaders not saved during osgDB::writeNodeFile?

2012-11-17 Thread michael kapelko
Any idea what's wrong with my code, then? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] Are shaders not saved during osgDB::writeNodeFile?

2012-11-17 Thread Stephan Huber
Hi, Am 17.11.12 17:55, schrieb michael kapelko: Any idea what's wrong with my code, then? you are adding the shader to the transform called box, but you are writing the first child of the transform to a file. cheers, Stephan ___ osg-users mailing

[osg-users] Are shaders not saved during osgDB::writeNodeFile?

2012-11-16 Thread michael kapelko
Hi. I've attached custom shader for a node in a ShadowedScene. I then called osgDB::writeNodeFile upon it and found out that it doesn't save those shaders into osg file. Is it so by design or am I doing it wrong? PS: Source code: http://pastie.org/5390724 Source code archive: