Problem in the simpliest project you can imagine...

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
Manawenuz
Posts: 22
Joined: Wed Jun 10, 2009 12:42 am
Location: France

Problem in the simpliest project you can imagine...

Post by Manawenuz »

Hi everybody!

I can't figure out why this programme doesn't work. It just consists in a ICameraSceneNode, a CSphereSceneNode (implemented in my graphics.cpp file). Everything is just fine up to link, and when I execute the final program, the sphere is much bigger than what it should be...
I also noticed that the result is exactly the same if I just comment out the line where I add the camera. As if the creation of the camera is not taken into account...
See the code (and forgive me for the few french words remaining :))

Thank you for your help

PS : I'm coding with a Mac, so you may have to adapt the Makefile
DtD
Posts: 264
Joined: Mon Aug 11, 2008 7:05 am
Location: Kansas
Contact:

Post by DtD »

You do not need to be copying code from Irrlicht into your program's source. Generally speaking the I... classes are interface classes you should be using, and C... classes are the actual implementations.

The proper way of adding a sphere scene node would be with the ISceneManager addSphereSceneNode function.

~David
Manawenuz
Posts: 22
Joined: Wed Jun 10, 2009 12:42 am
Location: France

Post by Manawenuz »

I am aware of that, but I needed a concrete class to make my class GraphicsObject inherit from CSphereNode...
But well anyway I gave another structure to the code, make my call GraphicObject inherit from IMeshSceneNode directly. (I admit it's better :))
But I have exactly the same result

I really don't understand where the problem comes from

PS : I updated the link. Now you can download the modified version
Post Reply