Jump to content
  • Advertisement
Sign in to follow this  
m0ng00se

IrrLicht Engine

This topic is 3740 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've just switched from Dark GDK to the Irrlicht engine because GDK wouldn't run as a child window to a Win32 API GUI whereas Irrlicht is fine. Only problem is I can find heaps of info on 3D with Irrlicht but nothing on 2D and the IrrLicht forums seem to be underused. At least nobody ever answers my questions at the Irrlicht site. I can do some fancy 3D stuff with Irrlicht but still can't load a simple sprite file (2D) and cycle through the sprites. I can't find any documentation on telling the engine how many sprites across and down on the file and how to set a cycle frame rate and how to tell it where to start. I can do it fine with GDK. Can anybody help or advise me how to do that in Irrlicht or of any other C++ game engine that will run nicely inside the Win32 API without trying to take over the "main" function and the message loop? m0ng00se

Share this post


Link to post
Share on other sites
Advertisement
Yes I have and done the tutorial.

It is the worst 2D tutorial I've ever seen. It uses two sprites on a much larger bitmap background and you manually tell the engine the exact location of each sprite then it flips between them and that's it.

There is nothing at all about normal old fashioned 2D animation using a sprite sheet where you tell the engine how many across and how many down then it automatically finds the first sprite and loops through the sheet.

When I asked on the forum there I just got flamed and called a "newbie" without anybody actually telling me anything useful. I got the impression they basically didn't know the answer because they were all building FPS 3D games which Irrlicht has great documentation and tutorials on.

m0ng00se

Share this post


Link to post
Share on other sites
I think Irrlicht simply doesn't has such funtionality. Try one of the thousands of 2D libraries, or simply write directly in DirectX/OpenGL. Or is there a special reason why you're using a 3D engine?

Share this post


Link to post
Share on other sites
Thanks guys.

No there is no special reason I want 3D other than a vague idea to mix 2D and 3D or upgrade my code later to fully 3D. At the moment I'm more than happy with just 2D until I read a lot more books on how to build 3D apps properly.

I'm new to game programming so I'm just learning. I've written C++ code for business applications (not that I'm much good at it) off and on for years but never any graphics stuff. I went to download the latest VC++ compiler from MS a few months ago and they were pushing Dark GDK on the MS site. So out of curiousity I downloaded the graphics SDK and got hooked immediately on animation and game building.

I'm interested in any advice at all on the best engines and best approach to use.

m0ng00se

Share this post


Link to post
Share on other sites
Try looking here http://irrlicht.sourceforge.net/docu/classirr_1_1video_1_1_i_video_driver.html#a15

under draw2dimage there is a version that allows you to draw part of a texture that could be used for sprite sheets.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!