Hi Terry,

The big piece I haven't figure out yet is shaders.  Shader files are
currently loaded in Shader::loadShaderSourceFromFile().  To load them
from archives I think the whole shader loading infrastructure would
need to be converted to work just like loading any other file.

It already is. Have a look at osgDB::readShaderFile().

This is more convenient because it creates the shader with the proper type from scratch, whereas when using Shader::loadShaderSourceFromFile() you need to have created a new Shader(osg::Shader::FRAGMENT or osg::Shader::VERTEX or ...) beforehand.

So your changes will probably work correctly out of the box... :-)

J-S
--
______________________________________________________
Jean-Sébastien Guay    [email protected]
                               http://www.cm-labs.com/
                    http://whitestar02.dyndns-web.com/
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to