I want to use CG shaders in my application. For a first test I tried the material from http://wiki.ogre3d.org/Getting+Started+ ... +Materials.
I added "Plugin=Plugin_CgProgramManager" to my cfg file and defined the material like in the above link. But it doesn't work. The ogre log says:
15:50:57: WARNING: material light_boden_OgreMax has no supportable Techniques and will be blank. Explanation:
Pass 0: vertex program CG_Test_Mat_VS cannot be used - not supported.
I have a nvidia 970 graphics card. So teh hardware should be sufficient.
ok, I compiled the ogre solution with the examples and started the Normal Mapping example wit the athene.mesh.
The examples says it uses the "Example/Athene/NormalMap" material. This works fine. I use the DX9 renderer.
But how can I check which version of the vertex program is used (CG, glsl, unified)?
Is there some initialize work to do to use CG shaders? The CG.dll is available and the Plugin_CgProgramManager is loaded at startup of my program.
I found the problem.
I embed Ogre into a wxWidgets application. Therefore I don't use the automatic creation of a render window of ogre. I used some code I found in the forum some time ago: