Irrlicht basics tutorial [Note: HUGE POST]

A forum to store posts deemed exceptionally wise and useful

How would you rate this tutorial?

Great
57
42%
Good
51
38%
Fine
21
15%
Bad
7
5%
 
Total votes: 136

dudMaN
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Post by dudMaN »

Any more questions/comments anyone?

*cough*bump*cough* :lol:

-DudMan
Complete Irrlicht Beginners Tutorial
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24898
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

More collision instructions would be cool. Using less primitive methods.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Post by shadowslair »

A short edit for the Event Receiver code to match the version 1.4 would be cool also.

We assume that the next newbies` generation will be using the last version, so this will save the forum some more "I hve problem wit da Event Reciver" topics... :D
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
MikeP
Posts: 25
Joined: Fri May 16, 2008 1:51 pm

Post by MikeP »

Hi. I'm an Irrlicht beginner and I liked this tutorial but it was quite a pain to navigate into this 100 meters high post :D So I made a little helpfile with it for my personal use but I thought I could share it so here it is :

rapidshare :
http://rapidshare.com/files/116497164/I ... s.chm.html

simpleupload :
http://www.simpleupload.net/download/33 ... s.chm.html

I pretty much didn't touch the text (only some orthographic corrections) .. and I modified the codes that were fixed in the thread but not in the 1st post, to fit 1.4 syntax for example. So if there's any mistake in the code (unless they are typos) I ain't responsible :P
dudMaN
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Post by dudMaN »

Cool, sounds like it could help some people. Also, its about 1000 meters high :lol:

-DudMan
Complete Irrlicht Beginners Tutorial
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24898
Pmt3ddy
Posts: 2
Joined: Thu Jun 05, 2008 6:32 am
Location: Netherlands

Post by Pmt3ddy »

These tutorials helped me out quite a bit and prevented me from pulling my hair out. So thank you.. a lot :P

I'd like to see more if it's possible because you can never learn enough 8)
systat
Posts: 41
Joined: Mon Jan 07, 2008 8:01 pm

Post by systat »

Here is the code from your source, it is suppose to draw a cube on the surface, this is what I get:

Code: Select all

#include <irrlicht.h> 
using namespace irr;
 using namespace core;
 using namespace scene;
 using namespace video;
 using namespace gui; 
#pragma comment(lib,"irrlicht.lib")

int main() {

 IrrlichtDevice *device = createDevice(EDT_OPENGL);
 IVideoDriver* video = device->getVideoDriver();
 ISceneManager* smgr = device->getSceneManager();

 ISceneNode* cube = smgr->addCubeSceneNode();
 cube->setPosition(vector3df(0,0,7));

 while(device->run() && device) {
  video->beginScene(true, true, video::SColor(255,0,0,255));
  smgr->drawAll();
  video->endScene();
 }
} 
Image
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

You have to add a camera.

Use "smgr->addCameraSceneNode();".
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
lpersona
Posts: 58
Joined: Fri Jul 18, 2008 8:03 am
Location: low
Contact:

Post by lpersona »

i printed this on paper today, and once i had found the right time and a comfortable place (my bed) to read it.. i read it (:

there are some really good tips. of course you can't make a proper game with these codes, but they are a great food for thought.

thanks dudMaN
dudMaN
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Post by dudMaN »

thanks :D

True, the code isnt OOP or anything, but it's a good starting point for beginners (i hope).

Good luck :)

-Dudman
Complete Irrlicht Beginners Tutorial
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24898
dudMaN
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Post by dudMaN »

shadowslair wrote:A short edit for the Event Receiver code to match the version 1.4 would be cool also.

We assume that the next newbies` generation will be using the last version, so this will save the forum some more "I hve problem wit da Event Reciver" topics... :D
Gah, the event receiver api broke AGAIN? :x

-Dudman
Complete Irrlicht Beginners Tutorial
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24898
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

No, there was only one change, from 1.3.1 to 1.4. The event is const& now.
Tracekill
Posts: 5
Joined: Wed Feb 20, 2008 2:52 pm

Post by Tracekill »

Minor typo which may have already been addressed but your device creation line in every instance during the tutorial reads:

Code: Select all

IrrlichtDevice *device = createDevice(ETD_SOFTWARE...);
I believe the driver types are prefixed by "EDT" and this might confuse some less diligent readers. Thank you for your tutorial, it's been incredibly useful as I delve into the Irrlicht world.
kingdutch
Posts: 76
Joined: Tue Sep 02, 2008 7:01 am

Post by kingdutch »

Our simple game now:
Code:

int main() {

IrrlichtDevice *device = createDevice(ETD_OPENGL);
IVideoDriver* video = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();

ISceneNode* cube = smgr->addCubeSceneNode();
cube->setPosition(vector3df(0,0,5));

while(device->run() && device) {
video->beginScene(true, true, video::SColor(255,0,0,255));
smgr->drawAll();
video->endScene();
}
}
Little error in:

Code: Select all

  IrrlichtDevice *device = createDevice(ETD_OPENGL);  
should be:

Code: Select all

 IrrlichtDevice *device = createDevice(EDT_OPENGL); 
residentofcity17
Posts: 3
Joined: Thu Nov 06, 2008 9:57 am

Post by residentofcity17 »

Can sombody please tell me how to load a static mesh in irrlicht 1.4.2 ??? If possible please show me the code...
Post Reply