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

3 Responses to “Sprite3D update”

  1. I tried out your sprite3D very cool!

    But first time I tried it I had distorted images because I “nested” my sprites into a DO3D object so I could rotate it.

    Then I saw your wish list…

    You know all you had to do was to use the already provided world transform in the parent when your routine fired. and concatenate that into the existing transform just like the super.project does.

    Do you want my update?
    This does make for the first billboard to work in great white. Maybe you should submit it since this is the very first thing that is supposed to be fixed in 2.0.1

  2. Kevin, this is a great update based on the Sprite3D class! There’s a good description on your page about the useabilty of these backed textures! Great work!

    Within the next update (coming soon) of my class I’ll make sure I’ll support nested objects, as you did with your Billboard class. It might be an idea send it out to the papervision team to see if this will be usefull include.

  3. Is this supposed to work with great white?
    It seams to be very useful, but i cant get it running properly.

Discussion Area - Leave a Comment