fromVectors function changes Shadow incorrectly

Software: Away3D 4.x

polig, Newbie
Posted: 28 March 2015 03:43 AM   Total Posts: 18

Hello, away3d focum, I would like to update vertexPositionData by using fromVectors function . However then, shadow is changed incorrectly.
(using Away3D 4.1.6)

Please see the image

The code I wrote is following.

//mesh is sphere
var vx:Vector.<Number> = mesh.geometry.subGeometries[0].vertexPositionData;
var 
uvs:Vector.<Number> = mesh.geometry.subGeometries[0].UVData;
var 
nml:Vector.<Number> = mesh.geometry.subGeometries[0].vertexNormalData;
var 
tan:Vector.<Number> = mesh.geometry.subGeometries[0].vertexTangentData;

//change vx position
vx[ vxNo 0 ] X;
vx[ vxNo 1 ] Y;
vx[ vxNo 2 ] Z;

//update vx position
mesh.geometry.subGeometries[0].fromVectorsvxuvsnmltan ); 

If it is difficult to update shadow correctly, It’s OK that the shadow is not updated visual, just only modify the figure.

Could you give me any hint

best regards.

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X