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

JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Pretty much the same way you'd load an animated mesh but instead of smgr->addAnimatedMeshSceneNode use smgr->addMeshSceneNode.
Image Image Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You should explicitly call ->getMesh(0) on the IAnimatedMesh to get the static IMesh, then add it to the MeshSceneNode.
radomiro
Posts: 7
Joined: Fri Dec 26, 2008 3:34 am

Post by radomiro »

why the lights topic are so elusive in Irrlicht tutorials? (not to mention shadows) :(
OlympusMons
Posts: 1
Joined: Tue Mar 03, 2009 9:05 pm
Location: Canada

Post by OlympusMons »

Thank you dudMan for this very helpful tutorial.
It helped me getting started quickly for my school project.
8)
R@!D3N
Posts: 8
Joined: Thu Apr 29, 2010 4:59 pm

Post by R@!D3N »

sorry for asking this again if it has already been posted but im getting an
error saying. . ...

error C2259: 'MyEventReceiver' : cannot instantiate abstract class

ummmm. . ..any help ???

its on this line in the third chapter:

Code: Select all

MyEventReceiver rv; 
 device->setEventReceiver(&rv);
doing this for a project ... any quick help would be gr8. . thnx.....

btw gr8 tute... :)

oh yeah one more thing ... u said this code isnt oop .... how could i make an oop code using these basics ???
u no... lyk make my own classes nd functions nd stuff....
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Just read the error message to its end. And compare to the text found in the FAQ. Try to stop at places that talk about OnEvent, or take care of tis signature.
blahdragon13
Posts: 2
Joined: Mon May 31, 2010 6:22 am

Post by blahdragon13 »

hello
i started to play around with tut
but...
when i made a cube at the begining
all i got was a black screen
i know for a fact that the cube is where the black
came from
but...
i go to move it away from the camera i got to "vector3df(0,0,7)"
and it disapear?
sorry but im a noob with programing
and can anyone explain?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Do you know that black is the default background color, and that when you don't add a light, also the cube (and anything else) will be black by default?!
w3rd
Posts: 3
Joined: Mon Sep 20, 2010 2:23 pm

Post by w3rd »

thx for the tutorial! just wanted to make a quick suggestion: maybe it would be better not to use the using namespace statements? they are nice when you know what you are doing. But if you start off like me, not using them can help to get an overview over the architecture.

just my thoughts...
cjpaver
Posts: 8
Joined: Mon Feb 07, 2011 8:43 pm

Post by cjpaver »

GameDude wrote:Also, if your using the wxDev-CPP IDE, then you don't need the pragma comment, you can just link to it in the linker options. Just thought I'd put that up as a side note

Code: Select all

#pragma comment(lib, Irrlicht.lib); 
I had no clue what this did, but included it because all the other examples had it. With VS, what this line of code does is add it to your additional library dependencies.

So if you follow Project-> Properties-> Linker-> Input, then add Irrlicht.lib to the line in Additional Dependencies, you can remove the #pragma line from your code.

Thought I'd share.
Post Reply