Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

cycle through sculpt textures?

Coal Porter
Owner CP Motors
Join date: 26 Mar 2008
Posts: 37
04-11-2008 16:13
How do i get a sculpted prim to cycle through different sculpt textures through an on touch?
Wildefire Walcott
Heartbreaking
Join date: 8 Nov 2005
Posts: 2,156
04-11-2008 16:41
When I saw the subject line my heart skipped a beat because we've had problems with scripted items that constantly cycled sculpt textures to simulate animation. One of my tenants had an object that did this that consumed something like 1/3 of the entire sim's resources and caused noticeable lag. (The object's creator has since done a redesign that behaves much better.)

In LSL you change a prim's sculpt texture by calling llSetPrimitiveParams with the PRIM_TYPE_SCULPT parameter. To do what you asked, just wire up the touch event to set the prim to the sculpt texture you want. And I strongly recommend that you only cycle the sculpt upon direct user input. As I mentioned before, repeated cycling of sculpts (or any textures, actually) is a serious sim burden.

You can read more about it here:
_____________________
Desperation Isle Estates: Great prices, great neighbors, great service!
http://desperationisle.blogspot.com/

New Desperation Isle: The prettiest BDSM Playground and Fetish Mall in SL!
http://desperationisle.com/

Desperation Isle Productions: Skyboxes for lots (and budgets) of all sizes!
Coal Porter
Owner CP Motors
Join date: 26 Mar 2008
Posts: 37
04-11-2008 16:51
after reading that, i guess i have to scrap my idea. i had planned on cycling through sculpts to create a walking effect.
Wildefire Walcott
Heartbreaking
Join date: 8 Nov 2005
Posts: 2,156
04-11-2008 17:11
From: Coal Porter
after reading that, i guess i have to scrap my idea. i had planned on cycling through sculpts to create a walking effect.

It IS a really neat idea. I was impressed with this guy's ingenuity when I finally learned what he was doing. Unfortunately, it doesn't seem like SL can quite handle it.

If you own your own island or have access to an island that will give you estate manager powers, you can monitor the impact your scripts are having on the sim and design your stuff to minimize the effect.
_____________________
Desperation Isle Estates: Great prices, great neighbors, great service!
http://desperationisle.blogspot.com/

New Desperation Isle: The prettiest BDSM Playground and Fetish Mall in SL!
http://desperationisle.com/

Desperation Isle Productions: Skyboxes for lots (and budgets) of all sizes!
Cerulean Deadlight
Registered User
Join date: 6 May 2007
Posts: 28
04-11-2008 22:10
I never had a chance to try it, but would it be possible to do this using texture offset?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
04-12-2008 00:30
Sculpty data does not have a texture offset, nor a rotation value, nor texture-like scaling (you can scale the prim, but not choose the number of times the data is applied to it per "face" or whatever). It is not a face.

In some ways I think it is unfortunate that they reused textures for sculpties rather than creating another asset type. Textures used for sculpty shape really aren't textures, but rather an encoding of 3D vector data. There are some corollaries between the two uses (such as offered by our 3D RGB representation of color), and the choice of reusing the construct has offered some interesting "features" (whether planned or not) such as using the media URL to animate them, but it's really just a glorified hack that is likely to quickly limit the evolution of sculpties in the future. Neat idea, sure, but ultimately short-sighted in my opinion.