SkinnedSubGeometry updateVertexData issue

Software: Away3D 4.x

Yann, Newbie
Posted: 10 February 2016 08:55 AM   Total Posts: 16

Hello!
I’m trying to use the SkinnedSubGeometry with the following lines

var sglist:SubGeometryList;
var 
sg:SkinnedSubGeometry;

for (
0_MaterialsSubGeometries.lengthi++)
{
sglist 
_MaterialsSubGeometries[i];
sg = new SkinnedSubGeometry(1);

if (
sg && sglist.vertices.length 0)
{
sg
.updateVertexData(sglist.vertices);
sg.updateIndexData(sglist.indices);
sg.updateUVData(sglist.uvs);
sg.updateJointIndexData(sglist.jointIndices);
sg.updateJointWeightsData(sglist.jointWeigths);
_geom.addSubGeometry(sg);
this.subMeshes[this.subMeshes.length 1].material sglist.material;
}

I have the following error for both updateVertexData and updateUVData functions

Error: Call to a possibly undefined method updateVertexData through a reference with static type away3d.core.base:SkinnedSubGeometry. sg.updateVertexData(sglist.vertices);

Did I miss anything?
thanks

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X