Irrlicht basics tutorial [Note: HUGE POST]

A forum to store posts deemed exceptionally wise and useful

How would you rate this tutorial?

Great
57
43%
Good
49
37%
Fine
21
16%
Bad
7
5%
 
Total votes : 134

Postby dudMaN » Sun May 18, 2008 7:12 pm

Any more questions/comments anyone?

*cough*bump*cough* :lol:

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

Postby MasterGod » Sun May 18, 2008 8:23 pm

More collision instructions would be cool. Using less primitive methods.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
User avatar
MasterGod
 
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel

Postby shadowslair » Mon May 19, 2008 3:30 pm

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
Image
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
User avatar
shadowslair
 
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Postby MikeP » Wed May 21, 2008 11:44 am

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/Irrlicht_tutorials.chm.html

simpleupload :
http://www.simpleupload.net/download/338860/Irrlicht-tutorials.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
MikeP
 
Posts: 25
Joined: Fri May 16, 2008 1:51 pm

Postby dudMaN » Wed May 28, 2008 7:52 pm

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
User avatar
dudMaN
 
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Postby Pmt3ddy » Thu Jun 05, 2008 7:20 am

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)
Pmt3ddy
 
Posts: 2
Joined: Thu Jun 05, 2008 6:32 am
Location: Netherlands

Postby systat » Sat Jul 05, 2008 10:15 am

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
systat
 
Posts: 41
Joined: Mon Jan 07, 2008 8:01 pm

Postby BlindSide » Sat Jul 05, 2008 3:00 pm

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
BlindSide
Admin
 
Posts: 2801
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Postby lpersona » Sun Aug 10, 2008 8:48 pm

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
lpersona
 
Posts: 58
Joined: Fri Jul 18, 2008 8:03 am
Location: low

Postby dudMaN » Fri Aug 15, 2008 5:46 pm

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
User avatar
dudMaN
 
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Postby dudMaN » Fri Aug 15, 2008 6:07 pm

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
User avatar
dudMaN
 
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Postby hybrid » Fri Aug 15, 2008 8:06 pm

No, there was only one change, from 1.3.1 to 1.4. The event is const& now.
hybrid
Admin
 
Posts: 13977
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany

Postby Tracekill » Thu Aug 28, 2008 12:02 am

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.
Tracekill
 
Posts: 5
Joined: Wed Feb 20, 2008 2:52 pm

Postby kingdutch » Tue Sep 02, 2008 7:03 am

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);
User avatar
kingdutch
 
Posts: 76
Joined: Tue Sep 02, 2008 7:01 am

Postby residentofcity17 » Thu Nov 06, 2008 10:00 am

Can sombody please tell me how to load a static mesh in irrlicht 1.4.2 ??? If possible please show me the code...
residentofcity17
 
Posts: 3
Joined: Thu Nov 06, 2008 9:57 am

PreviousNext

Return to FAQs, Tutorials, Howtos, and external tool lists

Who is online

Users browsing this forum: No registered users and 1 guest