Rotate 2d Image
Rotate 2d Image
Is there any way to draw a 2d image rotated with the irrlicht engine?
not an instant way of doing it.
1. you can make flat 3d square object (two triangles), apply texture (your image) and rotate it.
2. you can use animated sprites: your image drawn in all rotating positions, for example 36 images in 10 degree angle between them, then you draw image in rotation you need (it is not very smooth, but surprisingly good for animation of rotation).
3. there is something about orthogonal camera also:
http://irrlicht.sourceforge.net/phpBB2/ ... te++sprite
1. you can make flat 3d square object (two triangles), apply texture (your image) and rotate it.
2. you can use animated sprites: your image drawn in all rotating positions, for example 36 images in 10 degree angle between them, then you draw image in rotation you need (it is not very smooth, but surprisingly good for animation of rotation).
3. there is something about orthogonal camera also:
http://irrlicht.sourceforge.net/phpBB2/ ... te++sprite