about matBone more than 72!

Posted By: 20BN

about matBone more than 72! - 01/24/19 17:44

My player model's bones more than 72.
If I use gpu bone shader, and model can't play anim.
How can i fixed it?
Posted By: Superku

Re: about matBone more than 72! - 01/25/19 07:26

You are using the default Gamestudio bones shader, right? The one which "calls" DoBones(...) and includes <bones> at the top.
If so, go to the code subfolder of your Gamestudio installation. Open default.fx, search for "include_bones". There you will find the matBones definition:
float4x3 matBones[72];

You can increase it but it might give you an error during shader compile. Then you will have to change the shader version to 3_0, as in
Code:
technique bones
{
	pass { VertexShader = compile vs_3_0 bones_VS(); }
}


That's fine though, pretty much every PC/ graphics card does support shader model 3.
Posted By: 20BN

Re: about matBone more than 72! - 01/25/19 15:55

@Superku
Thank you. I will try.
© 2024 lite-C Forums