offsetU offsetV scaleU scaleV don’t do anything

Software: Away3D 4.x

Avatar
Choons, Sr. Member
Posted: 29 June 2011 10:52 PM   Total Posts: 281

Hi - I changed the parts of my app that use UV offset and scaling since you guys moved it to submesh. My old code was changed like this:

terrain_material.offsetU += 0.03125;

to

terrain_plane.subMeshes[0].offsetU += 0.03125;

I can trace the value and see it changing each frame but nothing changes on the screen

   

Avatar
Choons, Sr. Member
Posted: 30 June 2011 01:08 AM   Total Posts: 281   [ # 1 ]

uvRotation does nothing as well

   

Richard Olsson, Administrator
Posted: 30 June 2011 09:06 AM   Total Posts: 1192   [ # 2 ]

You have to set the animateUVs property on your material, to flag that you want to allow animations. We are working on this system right now so it’s unclear how this will work in the final version of Away4.

   

Avatar
Choons, Sr. Member
Posted: 30 June 2011 05:39 PM   Total Posts: 281   [ # 3 ]

OK thanks, Richard. That’s something I would have never guessed to be the problem

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X