animat 2D sprites with Irrlicht

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Post by Emil_halim »

see this tutorial it contains a full code example, if it does not work
please tell me.
http://www.irrforge.org/index.php/Play ... h_Irrlicht
Guest

Post by Guest »

link is down but seemes like something useful...
bull
Posts: 36
Joined: Wed Sep 12, 2007 8:49 am
Location: s1Ng4p0R3

Post by bull »

Sorry to bump the old topic.
I tried your code the animation was perfect but the image is way too blurry comparing to the original even when I set the scale to 1.
Anybody knows how to fix this?
My name is bull, for we are many ...
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

bull wrote:Sorry to bump the old topic.
I tried your code the animation was perfect but the image is way too blurry comparing to the original even when I set the scale to 1.
Anybody knows how to fix this?
Quite possibly are you using a NPOT texture?
TheQuestion = 2B || !2B
bull
Posts: 36
Joined: Wed Sep 12, 2007 8:49 am
Location: s1Ng4p0R3

Post by bull »

I resized the texture to 256x256 but it's still very blurry.
Here's my code and texture:
http://www.zshare.net/download/14795373eedfd258/
My name is bull, for we are many ...
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

Hmm I don't know, but may I recommend PhoenixGL which is built specifically for 2D games. And from the looks of that texture it appears that is what your trying to do. It has an API similar to Irrlicht, and is in fact easier, in my opinion, and has built in support for sprites, animation, tilemaps, and polygonal collision detection.
TheQuestion = 2B || !2B
bull
Posts: 36
Joined: Wed Sep 12, 2007 8:49 am
Location: s1Ng4p0R3

Post by bull »

Thanks halifax. That library looks sweet. I just realized that you are 1 of the project owner.
There's still a lot to be done though:
-Visibility
-Better memory management, like reference counting(boost::shared_ptr??)
-More texture format(devIL??)
-VFS

Your library looks promising. I decided to use it for my project(a modern /dark fantasy roguelike).

I'm quite busy but if there's anything I can do I'd like to help.
My name is bull, for we are many ...
Post Reply