Waves in Second Life Using Sculpted Prims

| |

TROI Timtam asked me last week for a script for pond ripples using texture animation in Second Life, and that got me thinking about sculpted prims as an alternative. That led me to a site that is a PHP app that generates a sculpt texture, and last night I was playing around with it and voila - a wading pool that ripples when you touch it (or jump in!).

nand Nerd's Sculpt Texture Generator is a form-based method for specifying a z-position and radius value for a symmetric object, and I stepped through a series of these giving a rippled wave pattern. I ultimately use a sequence of 10 maps, and use the llSetPrimitiveParams() call to cycle through them.

The cycle occasionally hiccups and the prim doesn't resolve to its full size before the next shape is applied. As far as I know, though, the pool doesn't suffer from festering boils. [UPDATE: I got an IM from nand Nerd who suggested embedding/linking two cubes into the pool, with their faces textured with the sculpt textures. This keeps the sculpt textures preloaded and pretty much gets rid of the hiccups. Thanks, nand!]

Kiwini Oe had to fly over to the sculpted prim competition at Luna to see if there was anything like this. No, but lots of cool stuff. I set a couple pools out next to my office on Clear Ink Island; feel free to drop in!


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

rippling water

I am studying the same features of water. I am interested in nands work with sculpties too. its how i came to your web page. The approach using moving textures is ok.. if it can be smoother and flow better. I use psp / animation shop to create 2d flowing water effects. rippling water has often an underlying cycle, the ripple in a stream is often near stationary and the surface is what one see`s flowing over that. Im thinking of combining ( if possible ) two elemental 2d movement anims on a rippleform sculptie. element 1: the standard revolving prim texture.. ie how one gets waves on a shore by revolving a texture on a prim. element 2: the animation of that texture... say 16 frames thats how many frames i use to create flowing water falls.. haze.. water movement, smoke flames etc..in 2d using psp and animation shop. so the water surface moves and its cycle changes on a rippled prim.. ive not tried combining the two anims.. element 1 example is: llSetTextureAnim(ANIM_ON | SMOOTH | LOOP,ALL_SIDES,0,0,0,0, 0,0.20); element 2 example is: llSetTextureAnim( ANIM_ON | LOOP , ALL_SIDES, 4, 4, 0, 16, 15); ive no idea if its possible yet.. do you think so? on a rippled prim the right shape, waves, water and smoke and fire would be much more defined naturally. just thought i would bounce that off you..:) regards Incony The Tree Of Life Trueblood 51, 78, 24

Post new comment

The content of this field is kept private and will not be shown publicly.

Captcha Image: you will need to recognize the text in it.
Please type in the letters/numbers that are shown in the image above.