get normals

Software: Away3D 3.x

jagguy, Newbie
Posted: 26 June 2011 12:02 AM   Total Posts: 27

Can I get the normals from my models I load?
I make the models in Blender.

I can work it out myself for simple models , however for shapes with many surfaces what can i do?

   

Stephen Hopkins, Sr. Member
Posted: 27 June 2011 09:50 PM   Total Posts: 110   [ # 1 ]

Include the version of away3d you are using when you post.
In Broomstick, maybe

mesh.geometry.subGeometries[#].autoDeriveVertexNormals = true;
and
mesh.geometry.subGeometries[#].vertexNormalData

Haven’t tried it though.

With or without broomstick, it should be possible to calculate the vertex normals manually just accessing the vertex/face data and taking cross products

 Signature 

http://www-scf.usc.edu/~shopkins

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X