Hi Dominic, On Fri, Jan 8, 2010 at 9:59 AM, Dominic Stalder <[email protected]> wrote: > But how is this done in OSG, if I don't want to use native OpenGL?
If OpenGL doesn't have support for telling user whether a particular shader is run on the GPU or not then the OSG also doesn't have any well of divining it either. The only two ways you can tackle this issue is either to run a test at runtime or maintain your own database of graphics cards/drivers that are known to successfully run the shader in GPU or not. You might want to consider a black or white list, or both perhaps. The OSG itself provides no such database, as Martin suggested there are some online databases, but these won't fully cover what you are after as you'll have your own shaders that can drop yourself of GPU to CPU due to length or complexity of the shader. The only thing the OSG can directly help you with is in creating a valid graphics context and then the ability to query OpenGL yourself to find the hardware + driver you are working on. A viewer realize operation would be a good place to do such a test. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

