Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Problem trying to texture angled loft glass

Zed Kiergarten
Registered User
Join date: 19 Jan 2008
Posts: 138
04-10-2008 13:52
I am trying to create an angled piece of glass for a roof that has a squared textured window looking texture on both sides.

I start with a box. I taper X by 1.0 and shear X by -.50. I texture one side and its nice and straight. I texture the other, and it is aligning itself with the angled edge. flipping and rotating doesn't fix this.

I have another build that I bought that has the same exact thing. I look at how they did it, and there doesn't seem to be any difference.

My guess is they have two different textures perhaps, one for the side that gets skewed? I don't see any special rotation of the texture or modification of the prim from what I have.
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
04-10-2008 14:12
It's not a question of flipping or rotating the texture. It's a matter of what's happening with the polygons the cube is made out of. Take a look at it in wireframe mode and you can pretty easily see what's going on. The triangles on each side of cube are in opposite configurations, and therefore distort differently when the cube is sheared and/or tapered.

What you want to do is use planar mapping instead of default mapping. Create a texture that is already shaped the way you want it, and then apply it to the cube as a planar projection.

See /109/1a/93769/1.html for more details on how planar mapping works.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Zed Kiergarten
Registered User
Join date: 19 Jan 2008
Posts: 138
04-10-2008 16:40
From: Chosen Few


See /109/1a/93769/1.html for more details on how planar mapping works.


Thanks!!