Hello!

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
vgamecoder
Posts: 8
Joined: Sun Jan 27, 2008 4:00 pm
Location: Here

Hello!

Post by vgamecoder »

Hi I am new to Irrlicht. I did alot of research and I think this engine is perfect for my needs. However I dont know how to set it up for Irrlicht. I use Dev-Cpp 4.9.9.2. I was wondering if anyone here could explain to me how to set it up. I do have experiance with programming. I know plenty of C++ and I tried of Allegro before desiding it wasnt what I needed. So I have some idea of what it takes to make even a small game. I know I cant make an MMO at first or even soon but I have to ask. Does Irrlicht have any support to make an MMO? Or can it with some add ons just like it needs to be able to support sound?
zeno60
Posts: 342
Joined: Sun May 21, 2006 2:48 am
Location: NC, USA
Contact:

Re: Hello!

Post by zeno60 »

vgamecoder wrote:Hi I am new to Irrlicht. I did alot of research and I think this engine is perfect for my needs. However I dont know how to set it up for Irrlicht. I use Dev-Cpp 4.9.9.2. I was wondering if anyone here could explain to me how to set it up. I do have experiance with programming. I know plenty of C++ and I tried of Allegro before desiding it wasnt what I needed. So I have some idea of what it takes to make even a small game. I know I cant make an MMO at first or even soon but I have to ask. Does Irrlicht have any support to make an MMO? Or can it with some add ons just like it needs to be able to support sound?
Did you check the tutorials on the main Irrlicht page? (http://irrlicht.sourceforge.net/tutorials.html) There is one that shows how to set-up Irrlicht with Dev-Cpp.

About your question on the MMO. First, Irrlicht is not a game engine, only a 3D rendering engine. You are correct that it will need add-ons, but not only sound(Audiere, IrrKlang, etc.), you are talking physics (Newton, Bullet, ODE, etc.), Networking (RakNet), and no doubt some scripting module (IrrLua).
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

vgamecoder wrote:...MMO...
(Sorry rogerborg :twisted: )
A "small [Massive]" game?

lol..
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Firstly I wouldn't recommend Dev-C++, get the free version of Visual C++ Express. The debugger is better and you'll need a good one.
If you are using Dev-C++ though, you could.. erm.. open the examples dir, double click the 01.HelloWorld directory and then double click the .dev file.
If you had to post a question to ask how to do this, then you should probably start with something much smaller than any kind of online game, specially not a massive one.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Worldforge is an open source MMO 'engine'. I'd start there and work backwards.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
vgamecoder
Posts: 8
Joined: Sun Jan 27, 2008 4:00 pm
Location: Here

Post by vgamecoder »

Did you check the tutorials on the main Irrlicht page? (http://irrlicht.sourceforge.net/tutorials.html) There is one that shows how to set-up Irrlicht with Dev-Cpp.
Whoops didnt go to the bottom of the page and skipped it. My bad. :lol:

But I had some problems.

libIrrlicht.a -- the Irrlicht library
libjpeg.a -- the Independant JPEG group library
libz.a -- the zlib compression library

I was told to add those but i could only find the first. The others arent there.


About your question on the MMO. First, Irrlicht is not a game engine, only a 3D rendering engine. You are correct that it will need add-ons, but not only sound(Audiere, IrrKlang, etc.), you are talking physics (Newton, Bullet, ODE, etc.), Networking (RakNet), and no doubt some scripting module (IrrLua).
Thanks Ill look into that some more and do some research on IrrKlang,Newton,RakNet,IrrLua when Im ready to take on a big project like that. Thanks for the examples it helped alot.

If you had to post a question to ask how to do this, then you should probably start with something much smaller than any kind of online game, specially not a massive one.
I never said I was starting with an MMO...
I know I cant make an MMO at first or even soon...
I was just asking if Irrlicht had the capability to make something that big.
I know it would be stupid to try to make something like that at first. Dont reply If you didnt even read the post...




One more thing I am having a problem with the second tutorial but the first one runs fine. I thought I would put it here rather then start a new topic.

Code: Select all

 
#include <irrlicht.h>
#include <iostream> 


using namespace irr; 

#pragma comment(lib, "Irrlicht.lib") 

int main(){
    
// ask user for drivervideo::E_DRIVER_TYPE driverType = video::EDT_DIRECT3D9;printf("Please select the driver you want for this example:\n"\      " (a) Direct3D 9.0c\n (b) Direct3D 8.1\n (c) OpenGL 1.5\n"\      " (d) Software Renderer\n (e) Apfelbaum Software Renderer\n"\      " (f) NullDevice\n (otherKey) exit\n\n");

char i;
std::cin >> i;
switch(i){   
             case 'a': driverType = video::EDT_DIRECT3D9;break;   
             case 'b': driverType = video::EDT_DIRECT3D8;break;   
             case 'c': driverType = video::EDT_OPENGL;   break;   
             case 'd': driverType = video::EDT_SOFTWARE; break;   
             case 'e': driverType = video::EDT_SOFTWARE2;break;   
             case 'f': driverType = video::EDT_NULL;     break;   
             default: return 1;}	// create device and exit if creation failedIrrlichtDevice *device =    createDevice(driverType, core::dimension2d<s32>(640, 480));if (device == 0)   return 1; 

video::IVideoDriver* driver = device->getVideoDriver();

scene::ISceneManager* smgr = device->getSceneManager(); 

device->getFileSystem()->addZipFileArchive("../../media/map-20kdm2.pk3");

scene::IAnimatedMesh* mesh = smgr->getMesh("20kdm2.bsp");scene::ISceneNode* node = 0;



if (mesh)    node = smgr->addOctTreeSceneNode(mesh->getMesh(0)); 

if (node)    node->setPosition(core::vector3df(-1300,-144,-1249)); 



smgr->addCameraSceneNodeFPS(); 

device->getCursorControl()->setVisible(false); 
    
    
    int lastFPS = -1;while(device->run())

{

  driver->beginScene(true, true, video::SColor(0,200,200,200));

  smgr->drawAll();

  driver->endScene();  int fps = driver->getFPS();  if (lastFPS != fps)

  {

     core::stringw str = L"Irrlicht Engine - Quake 3 Map example [";     str += driver->getName();     str += "] FPS:";     str += fps;     device->setWindowCaption(str.c_str());     lastFPS = fps;

  }

} 

device->drop();  return 0;}
The code looks bad I know but I was just testing.

16 C:\Users\Patrik\Desktop\Irralicht\Untitled1.cpp `driverType' undeclared (first use this function)
20 C:\Users\Patrik\Desktop\Irralicht\Untitled1.cpp `EDT_SOFTWARE2' is not a member of `irr::video'
24 C:\Users\Patrik\Desktop\Irralicht\Untitled1.cpp `device' undeclared (first use this function)


case 'a': driverType = video::EDT_DIRECT3D9;
case 'e': driverType = video::EDT_SOFTWARE2;
video::IVideoDriver* driver = device->getVideoDriver();

Those are the lines the compiler is having problems with. However I dont know why. I did exactly what the tutorial told me to.

They are being declared I dont understand why It says undeclared.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

vgamecoder wrote: case 'e': driverType = video::EDT_SOFTWARE2;
That's old sample code. EDT_SOFTWARE2 is now called EDT_BURNINGSVIDEO. You'll likely run into similar issues unless you use sample code from the same SDK as your library. I'd recommend getting the most recent version from SVN, as it's constantly being improved.


vgamecoder wrote: case 'a': driverType = video::EDT_DIRECT3D9;
video::IVideoDriver* driver = device->getVideoDriver();

They are being declared I dont understand why It says undeclared.
Not according to the source you posted they aren't. The declarations of driverType and device appear to be in commented out lines.

Since you apparently don't even read your own posts, chastising bitplane (one of the Irrlicht developers, by the way) for not doing so is... well, I'll choose to find it charming.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

rogerborg wrote:Since you apparently don't even read your own posts, chastising bitplane (one of the Irrlicht developers, by the way) for not doing so is... well, I'll choose to find it charming.
LMAO!! I was eating while reading that and I almost choked!

Edit:
@zeno60: I posted this post Before you told me about the "Power-posting" thing..
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
dejai
Posts: 522
Joined: Sat Apr 21, 2007 9:00 am

Post by dejai »

Obviously Irrlicht has no support for any project except the engine itself, by how I am reading this there are two possible answers to your question, the second is the more likely but lets give this a shot. 1. Irrlicht does, not have a call center, with a bunch of highly trained staff. Its an open source project. 2. The more likely scenario, no Irrlicht DOES Not Support MMO's in any way shape or form, because irrlicht is not a game engine. Irrlicht only supports graphic manipulation and basic collision. Thats not to say you can't make a mmorpg but firstly it will never be MMO and secondly it will never be what you want. Oh and as a final note do you have 3-6 years with a team to work on it, lots of cash? :/
Programming Blog: http://www.uberwolf.com
Post Reply