[solved]Scene builder/authoring tool--Irrsed help

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

Ok, that would be the problem.
Next problem, I don't know how. :?
I tried to take the info out of the "hello world" tut to make a main, but that didn't work eather.

Edit to add: Thanks. I think I can figure it out now. :)
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

I always thought of coding as boring, but...I was wrong. It's balding.

I took an example that was sent to me, and then used irrsed to make a new skybox using the same pics. I then added an obj. I took the main script from the example, changed the name of the file, and put it in the same folder and used it as my main.
My problem is, I'm getting an "undefined" error for the skybox that I can't figure out. I made sure all the wording was correct, etc.... but still get the error upon compiling.

Code: Select all

#include "Level.h"

ISEDLevel::ISEDLevel(IrrlichtDevice* _device)
{
	_smgr = _device->getSceneManager();
	_driver = _device->getVideoDriver();

}

void ISEDLevel::LoadSkyBox()
{
/* SkyBoxNode = _smgr->addSkyBoxSceneNode(_driver->getTexture("up.jpg"),

Code: Select all

				_driver->getTexture("down.jpg"), 
				_driver->getTexture("left.jpg"), 
				_driver->getTexture("right.jpg"), 
				_driver->getTexture("front.jpg"), 
				_driver->getTexture("back.jpg")); */
                	
 } 

void ISEDLevel::LoadLevelData() 
{ 
		
The bold is where it shows the error. If I take the skybox code out, (like it is shown here) I get no errors and it compiles fine. (but without the skybox)
I don't know what else to check. It all looks like it's supposed to.
Any ideas?
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

Show me the error.....
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

C:\cage8\enterprise\Level.cpp In member function `void ISEDLevel::LoadSkyBox()':
12 C:\cage8\enterprise\Level.cpp `SkyBoxNode' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
C:\cage8\enterprise\Makefile.win [Build Error] [Level.o] Error 1

Sorry, forgot that part.

Edit to add: I have gone over this code 4 times now, opened up a second C++ and compared the code for both the example and mine, and they are exactly the same. I looked at the compiler properties to make sure all the libraries and such were there, they are. I don't know.
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

Try....


ISceneNode* SkyBoxNode = _smgr->addSkyBoxSceneNode(_driver->....etc....
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

Tried that. :( No luck. I changed everything to match the .h file, (which has the links that way)
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

That's very strange. . . hrm...
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

Im going to take out the obj that I added and see if it works. The code is identicle to the example you sent me. It should work.
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
Post Reply