Hi Robert,

Robert Osfield wrote:
On Tue, Oct 14, 2008 at 3:47 PM, Jean-Sébastien Guay
<[EMAIL PROTECTED]> wrote:
Hi Robert,

Sorry about this JS, gameoflife_frag.cpp was just an experiement at my
end, didn't mean to check it in, now fixed the the CMakeLists.txt so
it doesn't include the gameoflife_frag.cpp.  Please note you'll need
to update to the OpenSceneGraph-Data/trunk to get J.P's shader.
OK, no problem. BTW, when loading the shaders, if they're not found, does
the error message mention that they can be found in OpenSceneGraph-Data?

Might just be a good idea to try and cut down on the questions on osg-users
:-)

I added a check to report that it couldn't find the shader to code,
but it doesn't suggest where to find it beyond reporting the file
name.

The solution to this shader question is probably to integrate the
shader directly into the source as I suggested earlier, but I'll wait
on feedback from JP before doing anything on this.

I don't mind if the shader is directly in the source, so feel free to modify as you see fit. For small examples this probably makes sense.

On the other hand it is nice for experimentation if one can just edit a shader file and see the effects without recompiling...

JS's general question of what to do when shaders are not found (or any other files for that matter, I recall e.g. a font question on the m-l today) can probably be asked on osg-users. Should one need to fiddle with the notify level to be informed that osgDB searched a few paths?

regards
jp



--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to