eprime

Hi,
I need to render skeleton rotating it in ZY axes too, how I can do that with XNA runtime?
bets
Cristian
-
Cristian Zerbinati - Eprime
Avatar
eprime
  • Postovi: 104

Harald

The answers of these posts still apply:
Thinking of using Spine for my 3D XNA project
XNA - rotation pivot
You will need to setup the effect.World transformation matrix at your skeleton renderer accordingly.
Avatar
Harald

Harri
  • Postovi: 3907

eprime

Hi Harald,
ok that's what i needed to know.
So I just have to multiply the word identity with the rotation matrix in the SkeletonRenderer class
thank you
Cristian
-
Cristian Zerbinati - Eprime
Avatar
eprime
  • Postovi: 104

Harald

eprime je napisao/la:So I just have to multiply the word identity with the rotation matrix
Multiplying identity with X can be reduced to simply assign X.
eprime je napisao/la: .. in the SkeletonRenderer class
I assume you did not mean "in" in the sense of modifying the SkeletonRenderer code. Instead you should just set the matrix from the outside.
Avatar
Harald

Harri
  • Postovi: 3907

eprime

Harald je napisao/la:I assume you did not mean "in" in the sense of modifying the SkeletonRenderer code. Instead you should just set the matrix from the outside.
Yes sorry, I'm wrong! effect.World outside SkeletonRender, when I do the draw :)
-
Cristian Zerbinati - Eprime
Avatar
eprime
  • Postovi: 104

Harald

Perfect, just wanted to be sure to save you the potential trouble! :)
Avatar
Harald

Harri
  • Postovi: 3907

eprime

Harald je napisao/la:Perfect, just wanted to be sure to save you the potential trouble! :)
you did very well, I probably would have been wrong, thank you very much
-
Cristian Zerbinati - Eprime
Avatar
eprime
  • Postovi: 104

Harald

No problem. :)
Avatar
Harald

Harri
  • Postovi: 3907


Natrag na Runtimes