BasicTutorial2 error with Direct3D9
Posted: Tue Dec 04, 2018 11:43 am
Hi all!
I am very new to Ogre and hoping for some help here. I have built v1.11.3 and it looks okay:
I have attached my ogre.log.
If I change the render system to OpenGL it works fine, but I need to use Direct3D9.
Back with Direct3D9, if I comment-out this line in the tutorial:
Then it works, but I don't understand why. I found some similar posts about this error but didn't see any obvious resolution, so apologies if I have missed something.
Can anyone please explain what might be wrong?
Ogre Version: 1.11.3
Operating System: Windows 10 Enterprise 1803
Render System: Direct3D9
I am very new to Ogre and hoping for some help here. I have built v1.11.3 and it looks okay:
- The Sample Browser works perfectly using Direct3D9
- BasicTutorial1 worked perfectly using Direct3D9
Code: Select all
10:33:27: Ogre::InvalidParametersException::InvalidParametersException: Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at C:\Projects\Ogre\Ogre\ogre-1.11.3\OgreMain\src\OgreGpuProgramParams.cpp (line 1661)
If I change the render system to OpenGL it works fine, but I need to use Direct3D9.
Back with Direct3D9, if I comment-out this line in the tutorial:
Code: Select all
scnMgr->setShadowTechnique(ShadowTechnique::SHADOWTYPE_STENCIL_MODULATIVE);
Can anyone please explain what might be wrong?
Ogre Version: 1.11.3
Operating System: Windows 10 Enterprise 1803
Render System: Direct3D9