Sharing materials? 

Software: Away3D 4.x

Donny, Jr. Member
Posted: 06 June 2013 05:47 AM   Total Posts: 34

Hi,

I have a scene which uses a lot of Sprite3D instances, each with its own BitmapTexture. If I first merge all the bitmap’s into 2048 x 2048 textures, is there a way I can assign each Sprite3D to a certain part of the already uploaded TextureMaterial?

Would this allow for any optimization? Or does this just replace uploading lots of small TextureMaterials, for a few big TextureMaterials, with no difference to performance?

   

Matej, Jr. Member
Posted: 06 June 2013 07:15 AM   Total Posts: 38   [ # 1 ]

It will be huge performance upgrade since the gpu will uplad the texture only once and than it will be there.

Also, if you use ATF texture, the performance is even greater

Check out SpriteSheet Animator tutorial to see how to do it. The clock example is good.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X