Adding Physx object to scene
by Rich Adam · in Torque 3D Professional · 12/07/2009 (8:04 pm) · 0 replies
I am new to Torque, so pardon my simplistic questions for a bit.
We have created a simple box in Maya and exported it, I added the attendant .dae and xml files to the physxdocs folder, I added a PxMultiActor entry to the physx.cs file that is loaded from the datablockExec.cs file, upon attempting to add the object to the scene in the World Editor (it dutifully shows up in the Library/scripted/physics tab of the Scene Tree) the editor proceeds to crash. Examining the console.log file indicates a null NxActorDesc. The error is detailed below:
f:\p4physx\experimental\PhysX_2.8.1_GPU\novodex\SDKs\Physics\src\NpScene.cpp(894) : Supplied NxActorDesc is not valid. createActor returns NULL.
In examining the XML file the NxActorDesc has a null name:
<NxActorDesc id="Actor_0" userProperties="" hasBody="false" name="">
Has anyone successfully exported Physx objects using the Maya exporter? I have looked for references in the docs for any clues and have not found much of anything.
We have created a simple box in Maya and exported it, I added the attendant .dae and xml files to the physxdocs folder, I added a PxMultiActor entry to the physx.cs file that is loaded from the datablockExec.cs file, upon attempting to add the object to the scene in the World Editor (it dutifully shows up in the Library/scripted/physics tab of the Scene Tree) the editor proceeds to crash. Examining the console.log file indicates a null NxActorDesc. The error is detailed below:
f:\p4physx\experimental\PhysX_2.8.1_GPU\novodex\SDKs\Physics\src\NpScene.cpp(894) : Supplied NxActorDesc is not valid. createActor returns NULL.
In examining the XML file the NxActorDesc has a null name:
<NxActorDesc id="Actor_0" userProperties="" hasBody="false" name="">
Has anyone successfully exported Physx objects using the Maya exporter? I have looked for references in the docs for any clues and have not found much of anything.
About the author