These forums are CLOSED. Please visit the new forums HERE
timing and animating textures |
|
|
Naiman Broome
Registered User
Join date: 4 Aug 2007
Posts: 246
|
10-05-2008 00:53
Hello I am trying to make a script that holds severall animation stuff into one face prim like scrolling texture , changing colour , alpha etc , but the problem is I am not able to sync all at the same time , like I want the prim to look full colour in center , fade when at borders and in meanwhile scroll down the texture , when the central part of texture reaches its most important part i t needs to be max colour but I always miss for a sec the precise timing and after some looping it completely desyng , is there a way to snc all the anims? or Any sample script that does this alreay?
|
|
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
|
10-05-2008 05:45
The texture anim is done on the client side and the alpha and color changes are done server-side. You can't sync them reliably.
|
|
Naiman Broome
Registered User
Join date: 4 Aug 2007
Posts: 246
|
10-05-2008 06:41
Cant I do both client side?
|
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
10-05-2008 06:50
the server sets the color and alpha for everyone to see. the client must wait for the texture to download for it to start the anim. so it's probably 1 in a million chance that it'll be in sync. something i do for my anim slideshow is i have a nearly invisible prim with the different textures applied to each side so that they'll all be loaded so when it comes time to change the anim, the texture will usually already be loaded for the user
_____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
|
Naiman Broome
Registered User
Join date: 4 Aug 2007
Posts: 246
|
10-05-2008 08:09
I have just one texture is there a way I can solve this or I have to renunce to the idea?
|
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
10-05-2008 08:19
the only way it would probably work is to customize the texture itself. if you need help with that i suggest asking in the texturing tips forum. i've never worked with photoshop, i have gimp, but i have no idea how to add a gradient tranparencie to a pre-existing picture, it's probably done with masks, which i've never worked with.
_____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
|
Naiman Broome
Registered User
Join date: 4 Aug 2007
Posts: 246
|
10-05-2008 10:50
I dont think it would help using a peculiar texture since would be animated .....
|
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
10-05-2008 11:07
i guess i'm not understanding what you're looking for exactly then. you're saying you want the edges to be faded/alpha at the borders, you can do that using a gradient alpha mask. as for changing the colors, you could do the above method and create a anim grid making each frame more/less alpha on the edges as described, and change the color for each frame as well, the color change can be gradually changing for each from, or a complete change for each frame, whichever you desire. and you want to scroll? that can be done too by moving the frame down/up and removing or moving the part that needs to be changed (IE move the frame down, cut the bottom part off and move it to the top.)
so as i said, there's not really any way to sync it by script, so you would have to customize the texture as said. it can be tedious, but if you work with it enough, it can come out amazing _____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |