Ogre Version: 13.5.3
Operating System: Windows 10, version 21H2
Render System: Direct3D9
Hi,
I've recently been trying to get the PBR shader from the ""DamagedHelmet" sample working in Rigs of Rods.
With OpenGL, the shader works perfectly:
With Direct3D9 however, it looks like this:
The same result you get when disabling "Image-based rendering" in the sample.
Log shows the following errors:
Code: Select all
23:12:58: Error: loading texture 'diffuse.jpg'. Texture layer will be blank: Error creating texture: Invalid call
23:12:58: Error: loading texture 'specular.jpg'. Texture layer will be blank: Error creating texture: Invalid call
After doing some experimenting with the shader files I was convinced the shader just didn't work under DX9.. until I tried displaying the mesh using ogre-meshviewer (https://github.com/OGRECave/ogre-meshviewer/). The newest release (22.11) has the same problem under DX9:
In version 22.02 (using Ogre 13.3) however, it works perfectly under Direct3D9:
The next release (22.06) with Ogre 13.4 introduces this issue.
Oddly enough, in the SampleBrowser the helmet renders the same in all rendering systems. That's why I'm not sure if this is a bug with Ogre or it's just something I'm doing wrong.
Thanks