Sprite3D update

Since my last post about the Sprite3D object, I found out it wasn’t working perfectly. It’s behaviour wasn’t constant when using different Papervision3D versions. Beside there where some small bugs in my code and I had to make it a bit more flexible to use.

  • Sprite3D doesn’t correct rotations anymore by do3d.rotationX/Y/Z values, but based on Matrix3D information (Number one on my personal wish-list). Because of this change you’re able to rotate the object on the x, y and z axis at the same time. Before, this would distort the sprite3D. This also solved some small unnoticed issues.
  • You’re able to set it’s “rotationAxis”, which is the axis on which your materials in the materialsList are rotating. Before, this was only possible on the Y axis.
  • Compatible with all recent Papervision3D revisions. I’ve not tested this with all of them. It’s developed using revision 651.
  • Compatible with new localRotationX/Y/Z, which is introduced since revision 651.

Wish-list:

  • Support animated textures.
  • Support multiple axis rotations with textures.
  • Support Sprite3D as a nested object (should be directly added to the scene right now).

It’s probably gonna take a while, before these wishes can be implemented. So feel free to do it yourself :-)

Download the update here