D3D11,Ogre1.10.12,use diffuse vertexcolour, RenderingAPIException Topic is solved

Problems building or running the engine, queries about how to use features etc.
Post Reply
GaoYanFei
Gnoblar
Posts: 4
Joined: Sat Apr 14, 2018 7:57 am

D3D11,Ogre1.10.12,use diffuse vertexcolour, RenderingAPIException

Post by GaoYanFei »

Ogre Version: :?: 1.10.12
Operating System: :?: win10 X64
Render System: :?: D3D11
In the material script, I set the diffuse attribute to vertexcolour, A RenderingAPIException appears, log as follows:

Code: Select all

Ogre.log (optional)
09:24:07: RenderingAPIException: Cannot compile D3D11 high-level shader e9735e433309a085401a927404527b53_VS Errors:
(57,2-67): error X3017: 'FFP_Modulate': cannot implicitly convert from 'float3' to 'float4'
 in D3D11HLSLProgram::compileMicrocode at src\G3DD3D11HLSLProgram.cpp (line 551)
09:24:07: High-level program 'e9735e433309a085401a927404527b53_VS' is not supported: Cannot compile D3D11 high-level shader e9735e433309a085401a927404527b53_VS Errors:
(57,2-67): error X3017: 'FFP_Modulate': cannot implicitly convert from 'float3' to 'float4'
09:24:07: InvalidParametersException: Could not create gpu programs from render state  in ProgramManager::acquireGpuPrograms at RTShaderSystem\G3DShaderProgramManager.cpp (line 109)
The material script is as follows:

Code: Select all

material QuadTile_845472784_0_0_0_a
{
	technique
	{
		pass
		{
			ambient vertexcolour
			diffuse vertexcolour
		}

	}

}
this script works in opengl3+.
Who can help me?
thank you very much
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: D3D11,Ogre1.10.12,use diffuse vertexcolour, RenderingAPIException

Post by paroj »

this is fixed in 1.11
GaoYanFei
Gnoblar
Posts: 4
Joined: Sat Apr 14, 2018 7:57 am

Re: D3D11,Ogre1.10.12,use diffuse vertexcolour, RenderingAPIException

Post by GaoYanFei »

paroj wrote: Fri Jan 25, 2019 3:20 pm this is fixed in 1.11
Thanks,I will learn how to fix this problem in 1.11 and fix it in our software.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: D3D11,Ogre1.10.12,use diffuse vertexcolour, RenderingAPIException

Post by paroj »

you will probably have to upgrade to 1.11, as there was a extensive refactoring of the RTSS
GaoYanFei
Gnoblar
Posts: 4
Joined: Sat Apr 14, 2018 7:57 am

Re: D3D11,Ogre1.10.12,use diffuse vertexcolour, RenderingAPIException

Post by GaoYanFei »

paroj wrote: Sat Jan 26, 2019 5:20 pm you will probably have to upgrade to 1.11, as there was a extensive refactoring of the RTSS
I solved the problem, by modifying the OgreShaderProgramManager. CPP file.The ProgramManager: : createGpuProgram function pGpuProgram - > setParameter (" enable_backwards_compatibility ", "false") instead of pGpuProgram - > setParameter (" enable_backwards_compatibility ", "true").
Post Reply