Page 1 of 1

BasicTutorial2 error with Direct3D9

Posted: Tue Dec 04, 2018 11:43 am
by Haddock
Hi all!

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
But now I am trying to run BasicTutorial2 with the same render system and it throws an exception with this message:

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)
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:

Code: Select all

scnMgr->setShadowTechnique(ShadowTechnique::SHADOWTYPE_STENCIL_MODULATIVE);
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

Re: BasicTutorial2 error with Direct3D9

Posted: Tue Dec 04, 2018 12:24 pm
by paroj
try again with v1.11.4

Re: BasicTutorial2 error with Direct3D9

Posted: Tue Dec 04, 2018 12:27 pm
by Haddock
Thanks for the suggestion, but can I ask if this is some known issue that is fixed in 1.11.4? Or just a suggestion to take the latest build anyway?

Re: BasicTutorial2 error with Direct3D9

Posted: Tue Dec 04, 2018 2:31 pm
by paroj
I recall I fixed something related to that, but do not have the specific commit at hand

Re: BasicTutorial2 error with Direct3D9

Posted: Tue Dec 04, 2018 3:06 pm
by Haddock
Looks like you did fix it, because it works on 1.11.4 :D

Thanks a lot for your help!