Hi - trying to figure out how to use UV scaling and offset in new branch. scaleU, scaleV, offsetU, offsetV seem to be gone either on materials or objects. I have set animateUV property to true on my material but am stymied as to how to proceed. How do you do it now?
UV scale & offset in FP 11 branch?Software: Away3D 4.x |
||
|
||
Choons, Sr. Member
Posted: 16 July 2011 10:27 PM Total Posts: 281 [ # 1 ] I found the UVAnimationTest example but I don’t really need a full animation sequence. I was using offsetU & V per frame to make my terrain appear to move. I guess I could add a 1 frame animation sequence but that seems like a lot of wasted overhead. Can I use UVAnimationFrame somehow? It doesn’t have any methods so I’m not sure how to apply it. |
||
Choons, Sr. Member
Posted: 16 July 2011 10:45 PM Total Posts: 281 [ # 2 ] OK I figured it out. Need to access the plane.subMeshes[0] to get to the offsetU etc. Have to set its material animateUVs = true. By the way devs there is a warning that is thrown on every frame “Warning: animateUVs is set to true with an IRenderable without a uvTransform. Identity matrix” That’s a lot of text to get processed every frame for the trace. I’d like to comment that out but don’t know where it is |