Layered Textures

Software: Away3D 4.x

gamedesign1, Newbie
Posted: 23 October 2014 11:04 AM   Total Posts: 2

Hi all

Could someone help or point me in the right direction please.
I am trying to work out how to layer up two textures on to one model (*.obj).
I have a base texture which is the colour (wood) and then I have a shading texture (baked lighting) which I was to have on top using Multiply.

Any help will be really appreciated, thanks in advance.

   

Avatar
Fabrice Closier, Administrator
Posted: 23 October 2014 03:00 PM   Total Posts: 1265   [ # 1 ]

add a lightmap method to the material. if your repeat/tile the wood and not the lightmap, set use secondary set on method, and define a secondary uv set.

   

gamedesign1, Newbie
Posted: 23 October 2014 03:41 PM   Total Posts: 2   [ # 2 ]

Thanks for your help smile
I had just managed to work that part out too.
I have started this error now, which I am trying to work out now haha

RangeError: Error #1125: Index 12 is out of range 12

I have checked the UVs and geometry and they are both fine.

Strange..

Any ideas?

   

Avatar
Fabrice Closier, Administrator
Posted: 23 October 2014 04:21 PM   Total Posts: 1265   [ # 3 ]

Well you tell me, since I do not see any code here, I’m gonna go for a “it must be logic” rather than a “Strange” wink

Assuming you get these while setting the secondary uv set, make sure the buffer has exact same length as the primary. Also make sure you set these before assign the method or render.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X