Transforming ITexture

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
eDGe_616
Posts: 2
Joined: Thu Jul 31, 2008 9:05 am

Transforming ITexture

Post by eDGe_616 »

Hello.
I making program based on 2Dexample, it will be simple map editor, but I can't find any function operating on Image/ITexture what will transform (you know, trans mirror, rot, rot 180...) and any function for zoom picture. Yes, I read the documentation for ITexture.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

No there are no functions to do that to textures, but then you probably wouldn't want to do it to the actual texture, you'd want those function to be available whilst drawing the texture.

Presumably you're using draw2DImage? With that i don't think there's any standard way of doing the transformations you require (though i think someone made a version which can rotate an image drawn with draw2DImage so you might want to try searching the forum for that).

An alternative is to draw the texture onto a quad and then transform the quad or use the texture matrix. Using a 3D quad and a scene node (custom or otherwise) might seem wrong to you as you're dealing in 2D but irrlicht draws a 3D quad when you use draw2DImage so it's not very different for performance reasons or anything.
Image Image Image
eDGe_616
Posts: 2
Joined: Thu Jul 31, 2008 9:05 am

Post by eDGe_616 »

Hmm, it's look a bit complicated, but thanks for the advice. Btw, mayby you know how to do it easier? I wont only to draw, rotate and if it is posible zoom image using c++ language. Do you know for example only 2D engine wher I can do it?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

I don't know any 2D engines, if you want to find one google it :P
Image Image Image
lostclimategames
Posts: 331
Joined: Sat Sep 02, 2006 4:11 am
Location: Michigan
Contact:

Post by lostclimategames »

might want to check out GameMaker
___________________________
For all of your 3D/2D resource needs:
Image
Post Reply