Page 3 of 3

Posted: Mon Apr 19, 2010 1:33 pm
by 3DModelerMan
How does this load models? Will the names of the class in 3DWorldStudio show up as scene node names in Irrlicht?

Posted: Sat Apr 24, 2010 1:37 pm
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?

Posted: Mon Apr 26, 2010 1:50 pm
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.