Problems with textures in LinearExtrude

Software: Away3D 4.x

Parez, Newbie
Posted: 13 January 2012 01:47 PM   Total Posts: 11

Hi,
I noticed a strange thing while texturing walls of my maze. When I create a straight wall (between two points) everything is alright. But when I create a wall with an angle, texture stretches in a way to fit this angle. For example if I create a 90 degrees wall angle, on top of each of two walls that form that angle you can see texture stretching to fit angle of 45 degrees. I know, it’s difficult to understand what I mean so I attach two images to this post. One showing normal laying texture (on straight wall) and one - the wall with an angle (where the bug can be seen).

 

   

Avatar
Fabrice Closier, Administrator
Posted: 13 January 2012 02:11 PM   Total Posts: 1265   [ # 1 ]

Its not a bug, it’s the way the uv’s are considered by default. The class maps per segment or entire extrude as 0-1, it will not cut or crop based on angles.
If you want to have custom projection, use the Projector class. To do this, isolate the faces, and project accordingly.

   

Parez, Newbie
Posted: 13 January 2012 03:47 PM   Total Posts: 11   [ # 2 ]

Thanks, I’ll try to use Projector class.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X