when Sample-Programs–Cartoon-Shader play with pandadx9, raise lightingGen.sha error
on the other hand , pandagl have no problem.
error message :
display:gsg:dxgsg9(error):get_array_info() failed for shader lightingGen.sha
vertex element name = color
display:gsg:dxgsg9(error): apply_vertex_buffer() : shader_context vertex_element_array == 0
display:gsg:dxgsg9(error): unable to find a mapping for vertex shader input type = 4 from vertex elements
display:gsg:dxgsg9(error): unable to find a mapping for vertex shader input type = 4 from vertex elements
display:gsg:dxgsg9(error): unable to find a mapping for vertex shader input type = 4 from vertex elements
display:gsg:dxgsg9(error): unable to find a mapping for vertex shader input type = 4 from vertex elements
[repeat]
my video card Radeon 1650X
lastely directX version
I’m pretty sure that the docs state that there is as of yet no shader support in panda for direct3d mode, only in OpenGL. I was wondering if it had changed in newer versions, but I guess not.
ZeroByte, there was always support for shaders in openGL or DX8 and DX9 … and i also think DX7.
I dont know what you run into there masterjo. Did you try DX8 and DX7?
Ah, I guess I misunderstood the full meaning of untested/unfinished DirectX Support in Known Shader Bugs and Limitations. Good to know then.
hmm
rest dx mode test , result is…
dx8 have no suppert
dx7 have no problem ( same pandagl )
why dx9 have this error?
Panda doesn’t support shaders at all under DX7 or DX8.
Panda does support shaders under DX9, however, it’s very buggy. I’ve tested many of the sample programs under DX9 and they just don’t work. I don’t have time to debug it right now.