Rotate 2d Image

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Aspiring
Posts: 6
Joined: Fri May 09, 2008 1:43 am

Rotate 2d Image

Post by Aspiring »

Is there any way to draw a 2d image rotated with the irrlicht engine?
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Post by pera »

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
Jallenbah
Posts: 12
Joined: Thu Aug 14, 2008 12:10 pm
Location: Vector3df(20.6, 4, 19.2);

Post by Jallenbah »

If it's a simple heads up display for a game, then i think sprite animation is your best bet, however, if you are making a 2D game, then you will want to do it using 3d planes. However, i don't see much point in that, it would be easier to make a 3D game than do that.
Post Reply