Jump to content

Sunbleached

Resident
  • Posts

    264
  • Joined

  • Last visited

Everything posted by Sunbleached

  1. Thank you again! Here's what I got. but such a question. Are black painted surfaces necessary? And can I use this script for a screen with one face (or two)? // PRE-LOAD and VIEW SLIDES // Script by Sendao Goodman, 2007 // Modified by Rolig Loon 2009, 2010, 2011, 2012 //-------------------------- // Installation note: This is to be used in a linked 3-prim object. // By default, slides show on face 2 of the root prim (the screen). // One child prim, which must be named "forward", is the forward button. // The other one, which must be named "reverse", is the reverse button. //-------------------------- // Drop this script and any images into the root prim and it will cycle every 10 seconds // Owner: Touch the root prim (viewer screen) to change slide speed or turn it off. // All Users: Touch the "forward" or "reverse" prim to change slides manually float gPace = 10.0; integer gReload; list gPics; integer gLen; integer gSlide; integer gChan; integer gLsn; loadPictures() { gPics=[]; integer i = llGetInventoryNumber(INVENTORY_TEXTURE); if( i > 0 ) { while( i > 0 ) { i--; gPics += [llGetInventoryName(INVENTORY_TEXTURE,i)]; } gLen = (gPics !=[]); llOwnerSay((string)gLen+" pictures loaded"); gPics = llListSort( gPics, 1, TRUE ); // put them in order llOwnerSay("Slides are now set to advance every "+ (string)gPace + " seconds."); llSetTimerEvent(gPace); } else if( gReload == 0 ) { llSetTimerEvent(0.0); } } string getSlide(integer slide) { return llList2String( gPics, (slide+gLen)%gLen ); } default { on_rez(integer sp) { loadPictures(); gSlide=0; gReload=0; } state_entry() { gChan = (integer)("0xF" + llGetSubString(llGetKey(),0,6)); loadPictures(); gSlide=0; gReload=0; llSetLinkColor(LINK_THIS, <0,0,0>, ALL_SIDES ); llSetLinkColor(LINK_THIS, <1,1,1>, 1 ); // Slides displayed on this face are visible. All other faces are colored black } listen(integer channel, string name, key id, string msg) { llListenRemove(gLsn); if(msg == "OFF") { gPace = 0.0; } else { gPace += (float)msg; if (gPace <= 0.0) { gPace = 0.0; } } llSetTimerEvent(gPace); llOwnerSay("Slides are now set to advance every "+ (string)gPace + " seconds."); } changed( integer ch ) { if( ch & CHANGED_INVENTORY ) { gReload = 1; llSetTimerEvent(2.0); } } touch_start(integer num) { if (llDetectedLinkNumber(0) == 0) // The root prim (viewer screen) { if (llDetectedKey(0) == llGetOwner()) { gLsn = llListen(gChan,"","",""); llDialog(llGetOwner()," \n\nSlides now advance every "+(string)gPace+ " seconds. Select a new speed.",["+2","+5","OFF","-2","-5"],gChan); } } } timer() { if( gReload == 1 ) { gReload = 0; loadPictures(); llSetTimerEvent(gPace); } else { integer i=6; while( i > 0 ) { i--; llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_TEXTURE,i,getSlide(gSlide+(i-2)),<1.0,1.0,0.0>,ZERO_VECTOR,0.0]); } gSlide = (gSlide+1)%gLen; } } }
  2. Hello! thanks for the answer! I mean I want the script to work not for the linkset of the three objects, but only for one object. I tried it, but unfortunately it works a bit strange. Different textures are displayed on several sides at once, which is not happen in the case if you use a linkset. and there is no menu to change the speed...
  3. Thank you! But maybe its just a few lines to remove. Who knows?
  4. Thanks for this script! but what if i would like to remove two objects forward/reverse option and keep only one object slideshow/texture preload and speed menu? What should I remove and keep?
  5. Hello! iI found this script and i want to remove two objects -forward/reverse option and leave only one object slideshow with texture preload option, maybe even with speed menu. how to do that and remove this option? Preloading Slide Viewer Script // PRE-LOAD and VIEW SLIDES // Script by Sendao Goodman, 2007 // Modified by Rolig Loon 2009, 2010, 2011, 2012 //-------------------------- // Installation note: This is to be used in a linked 3-prim object. // By default, slides show on face 2 of the root prim (the screen). // One child prim, which must be named "forward", is the forward button. // The other one, which must be named "reverse", is the reverse button. //-------------------------- // Drop this script and any images into the root prim and it will cycle every 10 seconds // Owner: Touch the root prim (viewer screen) to change slide speed or turn it off. // All Users: Touch the "forward" or "reverse" prim to change slides manually float gPace = 10.0; integer gReload; list gPics; integer gLen; integer gSlide; integer gChan; integer gLsn; loadPictures() { gPics=[]; integer i = llGetInventoryNumber(INVENTORY_TEXTURE); if( i > 0 ) { while( i > 0 ) { i--; gPics += [llGetInventoryName(INVENTORY_TEXTURE,i)]; } gLen = (gPics !=[]); llOwnerSay((string)gLen+" pictures loaded"); gPics = llListSort( gPics, 1, TRUE ); // put them in order llOwnerSay("Slides are now set to advance every "+ (string)gPace + " seconds."); llSetTimerEvent(gPace); } else if( gReload == 0 ) { llSetTimerEvent(0.0); } } string getSlide(integer slide) { return llList2String( gPics, (slide+gLen)%gLen ); } default { on_rez(integer sp) { loadPictures(); gSlide=0; gReload=0; } state_entry() { gChan = (integer)("0xF" + llGetSubString(llGetKey(),0,6)); loadPictures(); gSlide=0; gReload=0; llSetLinkColor(LINK_THIS, <0,0,0>, ALL_SIDES ); llSetLinkColor(LINK_THIS, <1,1,1>, 2 ); // Slides displayed on this face are visible. All other faces are colored black } listen(integer channel, string name, key id, string msg) { llListenRemove(gLsn); if(msg == "OFF") { gPace = 0.0; } else { gPace += (float)msg; if (gPace <= 0.0) { gPace = 0.0; } } llSetTimerEvent(gPace); llOwnerSay("Slides are now set to advance every "+ (string)gPace + " seconds."); } changed( integer ch ) { if( ch & CHANGED_INVENTORY ) { gReload = 1; llSetTimerEvent(2.0); } } touch_start(integer num) { if (llDetectedLinkNumber(0) == 1) // The root prim (viewer screen) { if (llDetectedKey(0) == llGetOwner()) { gLsn = llListen(gChan,"","",""); llDialog(llGetOwner()," \n\nSlides now advance every "+(string)gPace+ " seconds. Select a new speed.",["+2","+5","OFF","-2","-5"],gChan); } } else if (llGetLinkName(llDetectedLinkNumber(0)) == "forward") //The forward button { if( gLen > 0 ) { integer i=6; while( i > 0 ) { i--; llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_TEXTURE,i,getSlide(gSlide+(i-2)),<1.0,1.0,0.0>,ZERO_VECTOR,0.0]); } gSlide = (gSlide+1)%gLen; } } else if (llGetLinkName(llDetectedLinkNumber(0)) == "reverse") // The reverse button { if( gLen > 0 ) { integer i=6; while( i > 0 ) { i--; llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_TEXTURE,i,getSlide(gSlide+(i-3)),<1.0,1.0,0.0>,ZERO_VECTOR,0.0]); } gSlide = (gSlide-1)%gLen; } } } timer() { if( gReload == 1 ) { gReload = 0; loadPictures(); llSetTimerEvent(gPace); } else { integer i=6; while( i > 0 ) { i--; llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_TEXTURE,i,getSlide(gSlide+(i-2)),<1.0,1.0,0.0>,ZERO_VECTOR,0.0]); } gSlide = (gSlide+1)%gLen; } } }
  6. hi! i am making a script which will zoom texture in and out. but it zooms in too close and out too far. how to fix it? i need approx. 2x zoom only and 1x1 zoom out. default { state_entry() { llSetTextureAnim(ANIM_ON | SMOOTH | SCALE | PING_PONG | LOOP, ALL_SIDES , 1, 1, 0.05, 1.0, 0.1 ); } }
  7. float sun_height;vector sun_position; default{ state_entry() { llSetTimerEvent(150); } timer() { sun_position = llGetSunDirection(); sun_height = sun_position.z; if(sun_height < 0.0) { llSetPrimitiveParams([PRIM_POINT_LIGHT,TRUE,<1.0, 1.0, 1.0>,1.0,15,0.750, PRIM_GLOW, ALL_SIDES, 0.4]); } else { llSetPrimitiveParams([PRIM_POINT_LIGHT,FALSE,<1.0, 1.0, 1.0>,1.0,15,0.750, PRIM_GLOW, ALL_SIDES, 0.0]); } }} float glow;float time; //------------------------------------- // Main program default { state_entry() { llSetColor(<1.0, 1.0, 1.0>, ALL_SIDES); state begin; }} //------------------------------------- // Begin state state begin { state_entry() { glow = (integer) llRound(llFrand(1)); // Random on or off time = (float) llFrand(2); // Random wait time llSetPrimitiveParams([PRIM_POINT_LIGHT, TRUE, <1.0, 1.0, 1.0>, glow, 5.0, 0.5, PRIM_GLOW, ALL_SIDES, glow]); // Set prim light on/of state wait; // Go to the Wait State } } //------------------------------------- // Wait state state wait { state_entry() { llSetTimerEvent(time); //Wait } timer() { llSetTimerEvent(0.0); //remove the timer state begin; // Go back to the Begin State } }
  8. Hello! How to make the second script react on sun too?
  9. @Zeta Vandyke @Marianne Little @Claireschen Hesten @BilliJo Aldrin @moirakathleen Thank you all so much for your answers! I tried all the options you proposed and eventually settled on one of them. You helped me a lot! I hope this theme will also help others in choosing skins. Thank you!
  10. Dedicated to all lovers of classics and old school. Hello! Please advise the female skin for a standard avatar for quality comparable to such men's brands as "SamuraiHQ" and "Aeros". Yes the question is a outdated and I already asked it, but I got only the answers: everyone has their own tastes. On this I decided to ask more specifically. Please, if you do not know such brands then you do not have to answer. I have a mesh avatar and I'm quite happy with it, but I'm interested in the standard skin. In general, such an impression of a woman's classic skin is so unfairly paid as little attention in comparison with the male. I apologize to all manufacturers of skins, but it seems they were all made for a copy using the templates (most of those that I tried, even at a cost of several thousand lindens). Just do not advise me to try to create a skin myself before criticizing others - I am too lazy do not have time for this. Hahaha! This why I quote these two examples above. Thank you for your time. ( Google translator used )
  11. Hello! Thanks for answer! Can you recommend any full perm. free jukebox?
  12. Hello! Anyone know where to get Openstage Script for DJ with full permission? Please, help!
  13. @Rolig Loon Ok, I got it working! I just put '4' (my face number) instead of ALL_SIDES. One more question. What if you need to animate on two sides only? Specify them in the same way either through a comma or in parentheses? Is there a difference?
  14. Yes, thanks! But how? More specifically please? I'm a noob at scripting. In the beginning it is necessary to specify a line: "integer face;". And then what to do? Just replace ALL_SIDES with face number?
  15. Hello! How to make the texture be animated by script from here: llSetTextureAnim only on one face of the mesh with several materials - faces? Please, help! This wonderful script used; integer textureIsBeingAnimated; default { touch_start(integer num_detected) { if (textureIsBeingAnimated) llSetTextureAnim(ANIM_ON | SMOOTH | SCALE | PING_PONG | LOOP, ALL_SIDES, 0, -10, 1.0, .3, 5); else llSetTextureAnim(FALSE, ALL_SIDES, 0, 0, 0.0, 0.0, 1.0); // toggle back and forth between TRUE (1) and FALSE (0) textureIsBeingAnimated = !textureIsBeingAnimated; } }
  16. I found answer already but any suggestions are welcome! Thanks! integer gON; default { touch_start(integer num) { gON = !gON; // Here's the switch ... if (gON) // So, let's test it .... { llSetTextureAnim(ANIM_ON | SMOOTH | SCALE | PING_PONG | LOOP, ALL_SIDES, 1, 1, 1.0, 3.0, 2.0); // It's on. } else { llSetTextureAnim(FALSE, ALL_SIDES, 0, 0, 0.0, 0.0, 1.0); // It's not. } } }
  17. Hello! Please help! I used your tip and it works perfectly for my loudspeakers : https://community.secondlife.com/forums/topic/412976-script-for-loudspeaker/?tab=comments#comment-1677888 but I dont really like how my OFF line looks like. Is there any way to simplify it? integer gON; default { touch_start(integer num) { gON = !gON; // Here's the switch ... if (gON) // So, let's test it .... { llSetTextureAnim(ANIM_ON | SMOOTH | SCALE | PING_PONG | LOOP, ALL_SIDES, 1, 1, 1.0, 3.0, 2.0); // It's on. } else { llSetTextureAnim(ANIM_ON | SMOOTH | SCALE | PING_PONG | LOOP, ALL_SIDES, 0, 0, 0.0, 0.0, 0.0); // It's not. } } } Got it already! I found this line: llSetTextureAnim(FALSE, ALL_SIDES, 0, 0, 0.0, 0.0, 1.0); So script looks this way now: integer gON; default { touch_start(integer num) { gON = !gON; // Here's the switch ... if (gON) // So, let's test it .... { llSetTextureAnim(ANIM_ON | SMOOTH | SCALE | PING_PONG | LOOP, ALL_SIDES, 1, 1, 1.0, 3.0, 2.0); // It's on. } else { llSetTextureAnim(FALSE, ALL_SIDES, 0, 0, 0.0, 0.0, 1.0); // It's not. } } } Thanks! @Rolig Loon
  18. Hello! I'm looking for a script to simulate the work of the loudspeakers. I managed to find two scripts that move the object forward backward. But they do not work on linked objects. I decided to try a method with texture animation. Question is how this script should look like slightly stretching - reducing the picture (speaker)? Please help! llSetTextureAnim(ANIM_ON | SMOOTH | SCALE | PING_PONG | LOOP, ALL_SIDES, 1, 1, 1.0, 3.0, 2.0); As I understand there must be this line. And I can not make it the on / off. integer textureIsBeingAnimated; default { touch_start(integer num_detected) { if (textureIsBeingAnimated) llSetTextureAnim(ANIM_ON | LOOP, ALL_SIDES, 1, 5, 0.0, 0.0, 1.0); else llSetTextureAnim(ANIM_ON | SMOOTH, ALL_SIDES, 1, 5, 5.0, 1.0, 1.0); // toggle back and forth between TRUE (1) and FALSE (0) textureIsBeingAnimated = !textureIsBeingAnimated; } }
  19. @Rolig Loon no . I'm 99.9% sure that it's not me. I even know exactly who and why did it to me. but pride does not allow me to ask how. Well, if you do not know, then who knows? the topic is closed.
  20. Hey. not so long time ago something happened to me - interesting and strange. Someone turned my avatar into a noob. completely replaced the shape and skin and clothing! I was very surprised. does anyone know what can make such a change without my permission? I did not press anything. The rlv is not enabled. Thank you.
  21. Sunbleached

    AO mapping

    @Chic Aeon @Aquila Kytori Thank you all for your help! I got this kind of bunker house and I'm very happy with the result (the house was built mainly for myself). Used the recommended settings in the Blender Render engine. You gave me a lot of priceless information. Without your help, I would not have managed.
  22. Sunbleached

    AO mapping

    @Chic Aeon @Lindal Kidd Hi guys! thanks for answers! Chic Aeon - thanks for the great tutorial videos! I watched them all - very useful! I added pictures of my house bunker. as you can see inside is really quite dark. And I tried both engines and both results give such a picture. I'm already thinking about doing ao map without a roof in parts. Can you still something to advise? Thanks again!
×
×
  • Create New...