Quick addSphereNode() Question

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
Paddon
Posts: 43
Joined: Thu Jul 06, 2006 4:09 pm

Quick addSphereNode() Question

Post by Paddon »

I don't know if this is a Mac thing or not, but I am using the Irrlicht 1.3 library I obtained off this site, but when I try and compile the following code I get this error:

error: 'class irr::scene::ISceneManager' has no member named 'addSphereSceneNode'

Here is my code:

Code: Select all

int main()
{
  ICameraSceneNode* camera = smgr->addCameraSceneNodeMaya();  
  device->setEventReceiver(&reciever);
  device->getCursorControl()->setVisible(true);	

   
	ISceneNode* ball = smgr->addSphereSceneNode(10, 8); 
	ILightSceneNode* light = smgr->addLightSceneNode(0, vector3df(0, 50, 0), video::SColorf(1.f, .5f, .5f, 1.f)); 
    
	
   
   while(device->run() && driver)
  {
     if (device->isWindowActive())
     {
		driver->beginScene(true, true, SColor(100,200,200,200));

	   
	   smgr->drawAll();
	   
	   env -> drawAll();
        
		 
	   driver->endScene();

      }
  }	  
 device->drop();
 return 0;
}
Anyone know why this would be happening?

Thanks,
- Jeff Paddon
Undergraduate Research Assistant
Physics Department
St. Francis Xavier University
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Wrong headers? The method is definitely there.
Paddon
Posts: 43
Joined: Thu Jul 06, 2006 4:09 pm

Post by Paddon »

I am using the following headers:

#include <irrlicht.h>
#include <iostream>
#include <OpenGL/OpenGL.h>
#include <sys/stat.h>

Is there another header I should include when using these primitives?
- Jeff Paddon
Undergraduate Research Assistant
Physics Department
St. Francis Xavier University
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

No, I meant headers from an older Irrlicht version. The method is apparently not in ISceneManager.h
Paddon
Posts: 43
Joined: Thu Jul 06, 2006 4:09 pm

Post by Paddon »

Yea I just figured that was what you meant after I poseted.

That is definatly what is wrong because i am using the irrlicht-1.0 sdk that is on this site. I think I got it now, thanks a lot.
- Jeff Paddon
Undergraduate Research Assistant
Physics Department
St. Francis Xavier University
Post Reply