Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to FLIP a texture in script?

Martin Hugo
Registered User
Join date: 17 Oct 2006
Posts: 1
02-09-2007 15:44
I'm making a script where I put a texture on one side of a square. To do that I have made this script that put the texture on side 1 and rotate it 270 degree. Now I need to flip the texture horitonalt, but I can't find a function to do that.

llSetTexture (llToLower(message), 1);
llRotateTexture(270 * DEG_TO_RAD,1);

Do you have any suggestions to help me?

//Martin
Stephen Zenith
Registered User
Join date: 15 May 2006
Posts: 1,029
02-09-2007 16:17
From: Martin Hugo
I'm making a script where I put a texture on one side of a square. To do that I have made this script that put the texture on side 1 and rotate it 270 degree. Now I need to flip the texture horitonalt, but I can't find a function to do that.

llSetTexture (llToLower(message), 1);
llRotateTexture(270 * DEG_TO_RAD,1);

Do you have any suggestions to help me?

//Martin


Use llScaleTexture - negative numbers for the horiz and vert scale flip the texture. Use -1 to flip without changing the actual scale.
_____________________
Alexis Starbrook
CEO - Alexis Digital
Join date: 7 Dec 2006
Posts: 135
02-09-2007 16:24
From: Stephen Zenith

Vwls r nt optnl


The 'o' above is a vowel

Just being a bitch :D

Cheers
_____________________