CompositeMaterial mod questions

Software: Away3D 3.x

Avatar
Choons, Sr. Member
Posted: 16 July 2011 05:54 PM   Total Posts: 281

Hi guys- been looking at the 3.6 CompositeMaterial and TransformBitmapMaterial code and am wondering if it’s possible to combine features of both. I have a shirt demo similar to Pete Stromberg’s excellent example where you can zoom in to see the fabric detail. That requires my UV map to be scaled up very large so that I can tile on the hi res fabric texture. I want to be able to composite a graphic onto the shirt, but that requires scaling the UV map back down so the graphic is only applied once instead of tiling like the fabric does.

I see in CompositeMaterial some UV data manipulation going on and I’ve looked at how TransformBitmapMaterial handles UV scaling, offset & rotation. My question is whether it’s possible to modify CompositeMaterial so that when new materials are added I can specify a UV scale factor for that material without causing any changes to previous materials?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X