How to Dynamically Display Mesh Wireframe on Mesh/subMesh Surface for Debug Use ?

Software: Away3D 4.x

Concept Z, Sr. Member
Posted: 15 June 2011 04:14 PM   Total Posts: 124

Hi,Away3d team,

I was wondering whether if i can dynamically display the mesh wireframe and composite with the material on the surface using away4 .


Some thing like this:


var meshDebugWireframe:MeshDebugWireframe=Mesh.subMesh<i>.debugWireframe;
meshDebugWireframe.setWireframeStyle (new MeshWireframeStyle());
meshDebugWireframe.render = true;  ?


So I can see:


Mesh.subMesh<i>.debugWireframe.diplayWireframe= true;
Mesh.subMesh<i>.debugWireframe.diplayNormals= true;
Mesh.subMesh<i>.debugWireframe.displayBounds = true;


Or i can achieve this by apply a WireframeMaterial to a Mesh/subMesh, and composite with the original Material?

 

 

 Signature 
signature_image

Anyone can cook but only the fearless can be great

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X