Hi Mike, I have posted a patch to the submission list which do include this changes. The patch doesn't break any current functionality of the osg but just improve it.
So take a look into the description I have posted together with the patch. Or try it out. Maybe this is what also can help you. Cheers, Art --- Mike Weiblen <[EMAIL PROTECTED]> schrieb: > Hi, > > Yes the .osg file Reader does support both > representations of filename > or embedded source text, so it does just become an > issue of conveying > the preference to the Writer. That raises several > issues tho > > Should ReaderWriter should somehow preserve the > representation between > reading and possible future rewriting, or should it > always expect an > explicit option? What filename should be stored in > the written .osg > file (the source filename is not preserved in the > osg::Shader)? Should > the shader source files themselves also be rewritten > (perhaps the shader > was modified)? Etc etc > > I agree it would be nice to expose the option to use > a filename > reference; due to all the issues, I just defaulted > to the safest path. > Currently when I want a filename reference, I > manually edit the .osg > file; not a good answer, but it works. > > cheers > -- mew > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > [mailto:osg-users- > > [EMAIL PROTECTED] On Behalf Of Art > Tevs > > Sent: Wednesday, January 23, 2008 10:31 AM > > To: OpenSceneGraph Users > > Subject: [osg-users] Texture/Shader inlined output > to .osg files > > > > Hello, > > > > If one writes a texture to the .osg file, then the > > texture is not inlined, but it's file path is > written > > to the .osg file. > > > > I am wonder why the same doesn't happen to shader > > programs. The shaders are inlined into the .osg > file. > > As from my point of view shader programs are also > > resources, which might be changed without changing > the > > .osg file and hence be loaded differently on the > next > > app start. > > > > Would it be make sense to provide a patch which do > > either inline the shader code or write a file path > of > > the file from where the shader code was retrieved. > > This should be somehow defined through the Options > > object given to the reader. > > > > What do you think? > > > > Best, > > Art > > > > P.S. I looked into the code and encountered that > > reading of shaders from files is already supported > but > > writing not. > > > > > > > > > > Machen Sie Yahoo! zu Ihrer Startseite. Los > geht's: > > http://de.yahoo.com/set > > _______________________________________________ > > osg-users mailing list > > [email protected] > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users- > > openscenegraph.org > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > __________________________________ Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. www.yahoo.de/clever _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

