Need help for the NxGenerateXXXX() in 0.93'39[Solved]

Immoho

02-01-2008 07:44:15

Hi
I have searched the forum.
And I didnt find how to solve these problems.
1st problem:
When I use NxOgre:: NxExport NxTriangleMesh* NxGenerateTriangleMeshFromOgreMesh(const NxString&, NxScene *scene, NxVec3 scale = NxVec3(1,1,1)),
The second param is NxScene,But what I have created is the mSceneMgr of ogre,and the mScene of NxOgre.It failed to compile when I use the mScene.
So where does the NxScene come from? Do I need to create a NxScene?

2nd problem:
When I use the NxOgre::NxCookConvexToDisk(),it ask me to pass a mesh's string name of ogre.

NxOgre::NxCookConvexToDisk("ogrehead.mesh")

But there's a link error.

error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl NxOgre::NxCookTriMeshToDisk(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?NxCookTriMeshToDisk@NxOgre@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)

Thanks.

betajaen

02-01-2008 10:41:13

Your really not meant to use functions like that. In bleeding you can do such things, but not in 0.9'38

Are you using that function because you want that mesh used in a meshShape or do you need to use that function because you aim to save that cooked mesh to disk for later use?