Hi
I don't know if it's a bug or if there is a special technic to use a shader with an animated model (.dae), but if I use a shader on an animated model :
- the model is rotated in X (90°)
- the animation doesn't work (no animation at all).
Tested with LoadObjectWithChildren() and CloneObject() : same result.
n =1
LoadObjectWithChildren(n, "obj/mob.dae")
SetObjectScreenCulling(n,0)
SetObjectImage(n,iMob+6,0)
SetObjectImage(n,Shader[4],1)
// SetObjectShader(n,5) // uncommented, the animation doesn't work
// SetObjectRotation(n,90,0,0) // neede if I use the shader
SetObjectAnimationSpeed(n,20)
PlayObjectAnimation(n, "", 0, 5, 1, 0)
SetObjectScalePermanent(n,10,10,10)
Is there a way ot use a shader on an animated model ?
I can post a complete example or the sahder if needed, but it doesn't work with all of my shaders tests.
Thanks
AGK2 tier1 - http://www.dracaena-studio.com