Don't click here unless you want to be banned.

LSL Wiki : llSetTextureAnim

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-54-204-90-135.compute-1.amazonaws.com
llSetTextureAnim(integer mode, integer side, integer x_frames, integer y_frames, float start, float length, float rate);

Animates the texture on side of a prim. Only one animation can be run per prim, although all sides of a prim can be animated at the same time by setting side to ALL_SIDES.

mode is a mask made up of the following parameters:

Mode Description Hex
ANIM_ON enable texture animation 0x01
LOOP loop when animating textures 0x02
REVERSE animate in reverse direction 0x04
PING_PONG animate forward then reverse 0x08
SMOOTH slide texture smoothly instead of frame-stepping 0x10
ROTATE rotate texture instead of using frames 0x20
SCALE scale texture instead of using frames 0x40
Notes:




'Standard' Animation Mode

(ie. neither ROTATE nor SCALE)

The "standard" animation mode divides the texture up into frames, then steps through these frames in sequence.

x_frames and y_frames describe how the texture is to be broken into frames:

start and length specify which frames of the texture are to be animated:

rate controls the animation speed:

Notes:




ROTATE Animation Mode


This mode causes the texture to rotate on the side(s) of the prim, instead of stepping through frames.

x_frames and y_frames are ignored in this mode.

start and length specify how the texture is to rotate:

rate controls the animation speed:

Note: setting rate to a negative value will cause the texture to rotate in the opposite direction.




SCALE Animation Mode


This mode causes the texture to scale up or down on the side(s) of the prim, causing a 'zoom in' or 'zoom out' effect.

x_frames and y_frames are ignored in this mode.

start and length specify the scaling of the texture through its animation:

rate controls the animation speed:

Notes:

SMOOTH Animation Mode


This mode causes the texture to be moved smoothly between one frame and the next in the X direction.

It can be used for scrolling smoothly from one end of a texture to another. To do this set Y frames to 1, and set X frames to a value which sets the proportion of the texture which will be seen at any one time. To avoid over-running the end of the texture and repeating at the end of the loop, set length to one less than the number of X frames and start to zero.

llSetTextureAnim(ANIM_ON | PING_PONG | SMOOTH | LOOP, ALL_SIDES, 8, 1, 0, 7, 2);

Notes:
- for smooth scrolling in the vertical direction on a prim, simply use the Texure tab on the Edit window to rotate the texture +/- 90 degrees, and the animation will follow.





General Note: llSetTextureAnim works by overriding the texture's scale and offset on the client side which makes this function incompatable with llScaleTexture and the PRIM_TEXTURE and PRIM_GLOW components of llSetPrimitiveParams. However, due to this implementation approach it will not affect your bandwidth or a sim's performance.

Example:
default {
    state_entry() {
        llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 1, 1, 0.0, 0.0, 0.5);
    }
}


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Texture | Animation Jasa SEO Murah Jasa SEO Jasa Google Adwords Jasa Adwords Google Adwords Sepatu Safety Sepatu Futsal Cheapes Hostgator Coupon Link Booking Televisori offerte Notebook Offerte Govr Edo Ziedo Portatile Apple RDAnet Lorks Karikatur Bisnis Modal Kecil Bisnis UKM Berita Terbaru Iklan Baris Jasa SEO Murah SEO Indonesia Konsultan SEO SEO Belajar SEO Penumbuh Rambut Kursus SEO Jam Tangan Casio Grosir Baju Bisnis Online Kerupuk Kulit Social Bookmark Kumpulan Puisi WBC Wonogiri Penumbuh Rambut Jam Tangan Murah Jam Tangan Murah Jam Tangan Casio Penumbuh Rambut Kerupuk Kulit Alat Kantor Laku.com Belanja Online Grosir Eceran Murah dan Aman Jasa SEO Model Jilbab Fine Tableware Permanent Hair Removal island investment development professional makeup artist bali private villa sewa mobil jakarta murah Jual rumah Jakarta Contact Lens Technology
There are 20 comments on this page. [Display comments/form]