mrdoob/three.js — Issue #1027: Rotating non-square sprites
Author: niklasvh
Created: 2012-01-05 17:49:37+00:00
State: open

When rotating a sprite, which isn't 1:1 in scale, it skews the image. The expected result in my opinion would be for it to actually render the sprite with the scale it had before the rotation, while still rotating the image correctly.

You can see the issue here:
http://hertzen.com/experiments/threejs/sprite.html

Check the checkbox and note how the sprite is skewed when rotated, especially visible at 90 and 270 degrees. The rotation works fine if the sprite would be 1:1 in scale. If this is the incorrect way to be rotating the sprite, how should it be done then?

If it is working as intended, then I would propose a method for sprites called rotate or something which would rotate the image and do the appropriate scaling as well, or alternatively add support for Object3D to rotate its child sprites.