Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualNightCreature83

Posted 15 May 2013 - 09:31 AM

You want to pass this flag to your read function "aiProcess_PreTransformVertices" (http://assimp.sourceforge.net/lib_html/postprocess_8h.html#a64795260b95f5a4b3f3dc1be4f52e410) this will pretransform all of the sub nodes and all of the meshes will just be below the root node. No need to traverse the object any more if you don't care about the scene graph in the file.

Other flags of interest to a DX app is aiProcess_MakeLeftHanded which applies all the transforms needed for DX applications.

Also be careful with just assuming that an assimp mesh has normals by default they only guarantee that an aiMesh will have verts and faces.

#1NightCreature83

Posted 15 May 2013 - 09:28 AM

You want to pass this flag to your read function "aiProcess_PreTransformVertices" (http://assimp.sourceforge.net/lib_html/postprocess_8h.html#a64795260b95f5a4b3f3dc1be4f52e410) this will pretransform all of the sub nodes and all of the meshes will just be below the root node. No need to traverse the object any more if you don't care about the scene graph in the file.

 

Other flags of interest to a DX app is aiProcess_MakeLeftHanded which applies all the transforms needed for DX applications.


PARTNERS