|
Boq Beauchamp
Registered User
Join date: 3 Oct 2006
Posts: 59
|
04-15-2008 20:20
I have started building prim hair and am doing fine with the actual construction and texture creation, but I see all these stores that sell a hair design with 50+ textures. How does the user switch between these textures? Are they separate wigs or scripting involved or is it something else? Any help would be greatly appreciated!
|
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
04-15-2008 21:37
Most of those sellers are offering separate items for each texture, and often there will also be combination packages that include all of them, again each as a separate item. It's really common to see color change scripts dropped in that simply cast a tint on top of the existing texture, not very common to see ones that change the whole texture.
There are the LSL functions llSetLinkColor/llSetLinkTexture and llSetLinkPrimitiveParams that will let you change these on the fly. This is nice and simple if you apply the same texture or tint for the whole linkset.
It can get messy if you don't want them all the same, for example if you are using different textures for different parts of the wig. In that case you would need to walk through the links individually and run against the 0.2 second delay for each of those function calls, or stick a texture change script in every prim and be cursed throughout the grid for creating a lagmonster. The looping delay might not be so bad if you are making low prim hair.
|
|
Boq Beauchamp
Registered User
Join date: 3 Oct 2006
Posts: 59
|
04-16-2008 07:08
Thank you! Exactly the information I was looking for! 
|