Irrlicht basics tutorial [Note: HUGE POST]
Any more questions/comments anyone?
*cough*bump*cough*
-DudMan
*cough*bump*cough*
-DudMan
Complete Irrlicht Beginners Tutorial
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24898
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24898
-
- Posts: 758
- Joined: Mon Mar 31, 2008 3:32 pm
- Location: Bulgaria
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...
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...
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
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 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
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
Cool, sounds like it could help some people. Also, its about 1000 meters high
-DudMan
-DudMan
Complete Irrlicht Beginners Tutorial
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24898
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24898
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();
}
}
You have to add a camera.
Use "smgr->addCameraSceneNode();".
Use "smgr->addCameraSceneNode();".
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
thanks
True, the code isnt OOP or anything, but it's a good starting point for beginners (i hope).
Good luck
-Dudman
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
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24898
Gah, the event receiver api broke AGAIN?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...
-Dudman
Complete Irrlicht Beginners Tutorial
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24898
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24898
Minor typo which may have already been addressed but your device creation line in every instance during the tutorial reads:
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.
Code: Select all
IrrlichtDevice *device = createDevice(ETD_SOFTWARE...);
Little error in: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();
}
}
Code: Select all
IrrlichtDevice *device = createDevice(ETD_OPENGL);
Code: Select all
IrrlichtDevice *device = createDevice(EDT_OPENGL);
-
- Posts: 3
- Joined: Thu Nov 06, 2008 9:57 am