Difference between revisions of "Bobbyb's texture changer"

From Second Life Wiki
Jump to navigation Jump to search
(created page)
 
(* Touch Texture Switch.lsl - When touched, it will switch the texture between 2 textures. It is very efficient.)
 
(3 intermediate revisions by the same user not shown)
Line 19: Line 19:


==Compilation of Texture Changing Scripts==
==Compilation of Texture Changing Scripts==
===Using llSetTexture===
This method is slower, and less efficient than llSetPrimitiveParams and llSetLinkPrimitiveParams


These scripts display the given textures on all the prims and all the sides within a linked set.
These scripts display the given textures on all the prims and all the sides within a linked set.
Line 39: Line 42:
* [[Simple Texture Changer (for inventory)(more than one side).lsl]]
* [[Simple Texture Changer (for inventory)(more than one side).lsl]]
* [[Simple Texture Changer (input list)(more than one side).lsl]]
* [[Simple Texture Changer (input list)(more than one side).lsl]]
===Using llSetPrimitiveParams & llSetLinkPrimitiveParams===
This method is faster and more efficient than using llSetTexture or llSetLinkTexture
These scripts display the given textures on all the prims and all the sides within a linked set.
* [[Texture Changer (inventory)(all prims & all sides)(params).lsl]]
* [[Texture Changer (list)(all prims & all sides)(params).lsl]]
These scripts will display the given textures on all the sides of certain prims in a linked set.
* [[Texture Changer (inventory)(certain prims & all sides)(params).lsl]]
* [[Texture Changer (input list)(certain prims & all sides)(params).lsl]]
These scripts will display the givn texture on certain sides of certain prims in a linked set.
* [[Texture Changer (inventory)(multiple prims & sides)(params).lsl]]
* [[Texture Changer (list)(multiple prims & sides)(params).lsl]]
These scripts will display the given textures on a single side or all sides of a given prim.
-For these it doesn't matter...so I didn't include.
These scripts will display the given textures on more than one side of a given prim.
* [[Texture Changer (inventory)(more than one side)(params).lsl]]
* [[Texture Changer (list)(more than one side)(params).lsl]]
===Remote Texture Loader===
* [[Remote Texture Loader]]- A set of script for remotely loading textures within a sim. Useful for billboards.
===Texture Switchers===
* [[Touch Texture Switch.lsl]] - When touched, it will switch the texture between 2 textures. It is very efficient.

Latest revision as of 09:59, 16 December 2009

Description

The following is a compilation of several versions of scripts that will change the texture on an object or linked set in various ways. These were written by Bobbyb30 Swashbuckler in LSLEditor. Please Note: While they are slightly optimized, it is possible to make them slightly faster/smaller using different functions/hacks. They should work fine in mono & LSO.

Creator

Contributors

If you modify/improve upon the script, please add your name here.

License

They are hereby released into public domain.

Disclaimer

These programs are distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Collection of texture changing scripts

There are two version of the scripts, one which will require the textures to be in inventory, and another which works off of an input list of texture UUIDS. (By using texture names however, you could use the input list scripts as loading from inventory.)

Compilation of Texture Changing Scripts

Using llSetTexture

This method is slower, and less efficient than llSetPrimitiveParams and llSetLinkPrimitiveParams

These scripts display the given textures on all the prims and all the sides within a linked set.

These scripts will display the given textures on all the sides of certain prims in a linked set.

These scripts will display the givn texture on certain sides of certain prims in a linked set.

These scripts will display the given textures on a single side or all sides of a given prim.

These scripts will display the given textures on more than one side of a given prim.

Using llSetPrimitiveParams & llSetLinkPrimitiveParams

This method is faster and more efficient than using llSetTexture or llSetLinkTexture

These scripts display the given textures on all the prims and all the sides within a linked set.

These scripts will display the given textures on all the sides of certain prims in a linked set.

These scripts will display the givn texture on certain sides of certain prims in a linked set.

These scripts will display the given textures on a single side or all sides of a given prim. -For these it doesn't matter...so I didn't include.

These scripts will display the given textures on more than one side of a given prim.

Remote Texture Loader

  • Remote Texture Loader- A set of script for remotely loading textures within a sim. Useful for billboards.

Texture Switchers