Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Adjust texture when resizing prim

Allan Beltran
Registered User
Join date: 2 Dec 2006
Posts: 52
01-02-2007 07:23
I'm having a bit of difficulty adjusting the texture of my prim when I re-size it with llSetScale(). Is there a setting somewhere that I am missing to prevent me from having to take this step?

Example. I have a textured box with one of its sides textured with the Asphalt road from the Library. When I stretch the road to lengthen it, the texture stretches right along with it. Vise versa when I shorten it.

Can I avoid this with just a simple prim setting, or do I have to adjust the texture everytime I adjust the prim? If I have to adjust it, can someone give me an example of what I need to do to make the adjustment?
Peekay Semyorka
Registered User
Join date: 18 Nov 2006
Posts: 337
01-02-2007 07:30
Reset the texture with llScaleTexture(). You can call llGetTextureScale() beforehand and save the values.

-peekay
Allan Beltran
Registered User
Join date: 2 Dec 2006
Posts: 52
01-02-2007 07:46
From: Peekay Semyorka
Reset the texture with llScaleTexture(). You can call llGetTextureScale() beforehand and save the values.

-peekay
Awesome! Thanks for the quick response too. Not sure how I missed those, since I was looking for that very type of function originaly.
Thanks again.
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
01-02-2007 10:04
also, I think there's a planar setting in the texture edit window that might solve your problems without needing a script.
_____________________
My SLExchange shop

Typos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not.


The function is working perfectly fine. It's just not working the way you wanted it to work.