Hi Wojtek, Many thanks for putting the example together. I've now merged the code into svn/trunk and made a few tweaks so that the simple and advanced examples all run from the same osgvirtualprogram example. Now you can do:
osgvirtualprogram osgvirtualprogram lz.osg osgvirtualprorgram -a fountain.osg This is now checked into svn/trunk. One problem that I get but haven't yet resolved is the following errors that are output when I select the advanced example: <osgvirtualprogram -a output> FRAGMENT glCompileShader "Trivial Fragment Shader" FAILED FRAGMENT Shader "Trivial Fragment Shader" infolog: Fragment shader failed to compile with the following errors: ERROR: 0:4: 'texture2D' : no matching overloaded function found ERROR: compilation errors. No code generated. glLinkProgram "Trivial Fragment + Fixed Vertex Program" FAILED Program "Trivial Fragment + Fixed Vertex Program" infolog: Fragment shader(s) were not successfully compiled before glLinkProgram() was called. Link failed. Warning: detected OpenGL error 'invalid operation' after RenderBin::draw(,) <end of warnings> I did my tests on a Kubuntu 9.04 with a Radeon 4670 card and AMD's latest proprietary drivers. Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
