3D World Studio loader now w/Terrain splatting (Irrlicht1.5)

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Post by 3DModelerMan »

How does this load models? Will the names of the class in 3DWorldStudio show up as scene node names in Irrlicht?
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Post by 3DModelerMan »


error LNK2001: unresolved external symbol "public: bool __thiscall C3DWScene::load(class irr::IrrlichtDevice *,char *,bool,bool,char *,char *)" (?load@C3DWScene@@QAE_NPAVIrrlichtDevice@irr@@PAD_N211@Z)
error LNK2001: unresolved external symbol "public: virtual __thiscall C3DWScene::~C3DWScene(void)" (??1C3DWScene@@UAE@XZ)
error LNK2001: unresolved external symbol "public: __thiscall C3DWScene::C3DWScene(void)" (??0C3DWScene@@QAE@XZ)


I'm getting these errors trying to use this, I used it in a library, and then I linked my other project to the library, what could be causing this?
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Post by 3DModelerMan »

I got it to compile correctly. It's crashing in 1.7.1 when I call load though, I'm looking for the location of the crash.

EDIT:
I found where it crashes.

Code: Select all

bool	C3DWScene::load(IrrlichtDevice *pDevice, c8 *szFileName, bool bCreateMeshes, bool bCreateLights, c8 *szTextureRoot, c8 *szModelRoot)
{
	c8	 *pData;
	s32	nFileSize;
	IReadFile *pFile;
	m_pSceneFile = new C3DW_File();
	pFile = pDevice->getFileSystem()->createAndOpenFile(szFileName);
	m_strFileName = pFile->getFileName();//crashes here!!! on this line
	if (szTextureRoot)
	{
		m_strTextureRoot = szTextureRoot;
	}
	else
But I have no idea why.

EDIT 2:
I figured out the problem, it was that I didn't specify the proper path, you should probably check if the files actually loaded.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Post Reply