obj mesh location

Software: Away3D 4.x

Avatar
oladitan, Member
Posted: 04 March 2013 04:48 AM   Total Posts: 71

Hello I have loaded an obj into my scene. In my 3D model editor I created the original model away from the origin point (0,0,0) however after loading it into my scene the program says its position is at (0,0,0). I tried to use the mesh helper to recenter the object

MeshHelper.recenter(mesh); 

But I got an error :

[Fault] exceptioninformation=TypeErrorError #1034: Type Coercion failed: cannot convert away3d.core.base::CompactSubGeometry 

i can recenter the object in prefab to get the correct origin coordinates for the mesh but when I try to export the obj from prefab it will not load in my scene. And these number are inaccurate because I have scaled my mesh.

how do I get the correct coordinates for my imported mesh? Thank you.

   

Avatar
Fabrice Closier, Administrator
Posted: 04 March 2013 12:43 PM   Total Posts: 1265   [ # 1 ]

You say obj doesn’t load. What error do you get via your LoaderEvent.LOAD_ERROR listener?

And these number are inaccurate because I have scaled my mesh.
Not sure I get the problem…

Can you please focus on one issue and provide infos/code so we can help you.

   
   
‹‹ Cube material

X

Away3D Forum

Member Login

Username

Password

Remember_me



X