Several different animations simultaneously

Software: Away3D 4.x

rom, Newbie
Posted: 09 September 2012 11:12 AM   Total Posts: 12

I’m sorry, but I can not use in project several models with different animations.
When trying to create SkeletonAnimator or VertexAnimator based on data downloaded from the 2nd model, an error occurs:

ErrorA Material instance cannot be shared across renderables with different animator libraries
at
at away3d
.entities :: Mesh set material () [src  away3d  entities  Mesh.as: 164]
at away3d
.entities :: Mesh set animator () [src  away3d  entities  Mesh.as: 90] 

I used Away3D 4.0.9 Gold.
Try, if you not have such difficulties arise, I will continue to look for the error in my code.

   

Shegl, Sr. Member
Posted: 09 September 2012 01:06 PM   Total Posts: 134   [ # 1 ]

Try Dev Branch from gitHub.

   

Avatar
Fabrice Closier, Administrator
Posted: 09 September 2012 02:16 PM   Total Posts: 1265   [ # 2 ]

Make a new material, share the texture

   

Shegl, Sr. Member
Posted: 09 September 2012 02:58 PM   Total Posts: 134   [ # 3 ]

Fabrice Closier ofc, forget how I manage this with Gold release!

   

rom, Newbie
Posted: 09 September 2012 05:22 PM   Total Posts: 12   [ # 4 ]

Thanks, corrected by inserting the following line:

_proto.material=new TextureMaterial(new BitmapTexture(new BitmapData(2,2))); 
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X