I’m a new to PhysX and have a newbie question regarding importing objects into PhysX SDK. I’m using 3ds max 2013, create a simple scene and use Export menu, where I select the 'PhysX and APEX (PXPROJ)’ file format to export the scene to.
In PhysX SDK I use the following code which fails to load the exported data into SDK:
PxPhysics& physics = getPhysics();
PxScene& scene = getActiveScene();
PxCollection buffers = physics.createCollection();
PxCollection* objects = physics.createCollection();
PxDefaultFileInputData data( “c:\Projects\RoboPhysx\3dsMaxModels\box.xml” );
assert( data.isValid() );
assert( repx::deserializeFromRepX( data, physics, getCooking(), NULL, NULL, *buffers, *objects, NULL ) == repx::RepXErrorCode::eSuccess );
physics.addCollection( *buffers, scene );
physics.addCollection( *objects, scene );
I tried to use the export from 3dsmax to Xml or Binary or loading Fbx file format without success. I’m using Physx SDK 3.2.3 and PhysX plugin for 3dsmax 2.86. Obviously it seems I’m trying to do something wrong because RepX seems do not support the xml or binary exported format. I have neither found an info or tutorial showing how to perform exporting of objects from 3dsmax and sample code for importing into PhysX SDK. I will be glad if you point me to some info regarding the subject.
Thanks for you help.