-
Posts
33 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Everything posted by Deep Semaphore
-
May the metaverse continue to thrive, all platforms coexist peacefully :) For more information, go here: http://rezmelacomp.wordpress.com/ EDIT: For a quick video explaining RezMela, check these clips: https://www.youtube.com/watch?v=0xVEQajPTBo https://www.youtube.com/watch?v=y7NxJs_HteA Best wishes
-
Hello, I tried but could not get it to work. Anyone wants to try? The code is available here: http://www.foxsan.com/scripts/tag/lego/ above site says: A fun toy and made by Philip Linden! Hours of very fun, and pleasure. Click and drag the block to position. Block will snap into position when near other blocks. Click and quickly release to make a new block above the old. vector pos; vector found_pos; vector start_touch_pos; vector diff; vector scale; string name_detected; vector PULSE_COLOR = <1,1,1>; float GRAB_ALPHA = 0.5; float INC = 2.0; // Grid spacing for snap, scale float MAX_INC = 2.5; // Biggest dimension list colors = [<1,0,0>, <0,1,0>, <0,0,1>, <0,1,1>, <1,0,1>, <1,1,0>]; //list tones = ["piano_1", "piano_3", "piano_5"]; vector color; integer color_index = 0; integer CHANNEL = 3442; integer pulse = FALSE; integer inhibit = FALSE; float INHIBIT_DELAY = 2.0; float DECAY_FACTOR = 0.5; send_pulse() { // Change color briefly and transmit a neural 'pulse' inhibit = TRUE; llSetTimerEvent(INHIBIT_DELAY); //integer tone = llRound(llFrand((float)(llGetListLength(tones) - 1))); //llTriggerSound(llList2String(tones, tone), 1.0); llSetColor(PULSE_COLOR, ALL_SIDES); llSetObjectName("Magic Block P"); llWhisper(CHANNEL, "pulse"); } vector vec_round(vector vec, float inc) { // Rounds vector components to the nearest units of inc vec *= 1.0/inc; vec.x = ((float)llRound(vec.x)); vec.y = ((float)llRound(vec.y)); vec.z = ((float)llRound(vec.z)); vec *= inc; return vec; } set_pos() { // // On finding a neighbor, snap relative to neighbor // pos = llGetPos(); llSetColor(color*0.5, ALL_SIDES); diff = pos - found_pos; diff = vec_round(diff, INC/2.0); diff += found_pos; llSetPos(diff); llTriggerSound("on", 1.0); llSetColor(color, ALL_SIDES); } vector new_color() { integer num_colors = llGetListLength(colors); color_index++; if (color_index >= num_colors) color_index = 0; return llList2Vector(colors, color_index); } snap() { // Issues the sensor to look for nearby blocks to snap to float range = 3.0; llSensor("Magic Block", "", PASSIVE | SCRIPTED, range, 2.0*PI); } default { state_entry() { scale = llGetScale(); color = new_color(); llSetColor(color, ALL_SIDES); llSetStatus(STATUS_BLOCK_GRAB, FALSE); llSetBuoyancy(1.0); llListen(CHANNEL, "", "", "pulse"); } on_rez(integer param) { found_pos = llGetPos(); set_pos(); snap(); } timer() { llSetObjectName("Magic Block"); llSetTimerEvent(0.0); inhibit = FALSE; llSetColor(color, ALL_SIDES); } changed(integer change) { if (change == CHANGED_SCALE) { scale = llGetScale(); scale = vec_round(scale, INC); if (scale.x == 0.0) scale.x = INC; if (scale.y == 0.0) scale.y = INC; if (scale.z == 0.0) scale.z = INC; if (scale.x > MAX_INC) scale.x = MAX_INC; if (scale.y > MAX_INC) scale.y = MAX_INC; if (scale.z > MAX_INC) scale.z = MAX_INC; llSay(0, "new scale = " + (string)scale); llSetScale(scale); // Choose a new color for the block snap(); } } touch_start(integer total_number) { start_touch_pos = llGetPos(); llSetAlpha(GRAB_ALPHA, ALL_SIDES); llTriggerSound("on", 1.0); llResetTime(); llSetStatus(STATUS_PHYSICS, FALSE); } touch_end(integer total_number) { llSetStatus(STATUS_PHYSICS, FALSE); llSetAlpha(1.0, ALL_SIDES); vector moved = llGetPos() - start_touch_pos; if (llGetTime() < 0.3) { // Cycle colors on short click llSetPos(start_touch_pos); llTriggerSound("color", 1.0); color = new_color(); llSetColor(color, ALL_SIDES); } else if (llVecMag(moved) < (INC/10.0)) { llSetPos(start_touch_pos); send_pulse(); } else { // Try to find a block to stick to! llSetColor(color, ALL_SIDES); snap(); } llSetRot(<0,0,0,1>); } listen(integer channel, string name, key id, string message) { // Received neural pulse, so sense sender's distance if (!inhibit) { pulse = TRUE; llSensor("Magic Block P", id, PASSIVE | SCRIPTED, 10.0, 2.0*PI); } } no_sensor() { pulse = FALSE; } sensor(integer num_detected) { if (!pulse) { // // Rotate/snap to nearest box // // Issue scale request to this box // found_pos = llDetectedPos(0); set_pos(); } else { // // Gauge distance to nearest box, decide whether to 'fire' // pulse = FALSE; pos = llGetPos(); found_pos = llDetectedPos(0); diff = pos - found_pos; // probability of neural firing is related to distance float distance = llVecMag(diff); if (distance > 0.0) { if (distance < INC) //if (llFrand(1.0) < ((INC/(distance*distance))*DECAY_FACTOR)) { send_pulse(); } } } } }**Only uploaded images may be used in postings**://www.foxsan.com/scripts/wp-content/plugins/addmarx/sharebookmarx.png" border="0" /> Tags: lego, magic, movement, philip, snap, snapping, uuid
-
Does SL Viewer work on Windows Professional 64 Bit?
Deep Semaphore replied to Moriz Gupte's topic in Second Life Viewer
Thanks Charlotte, yes the solution you proposed works. I installed Flash 64 bit manually. This is what I posted on another list just a few mins back Found a solution. It appears that the Flash Player that Adobe installs is a 32 bit player ... that can run well in Chrome, IE etc... even if they are on a 64 bit OS. But if you manually install the 64 bit version I obtained here ... http://download.cnet.com/Adobe-Flash-Player-11-Beta-64-bit/3000-2378_4-75454063.html streaming work -
Does SL Viewer work on Windows Professional 64 Bit?
Deep Semaphore replied to Moriz Gupte's topic in Second Life Viewer
And yes my drivers are the latest. -
Does SL Viewer work on Windows Professional 64 Bit?
Deep Semaphore replied to Moriz Gupte's topic in Second Life Viewer
Thank Thinkerer, Here are my specs Windows 7 Pro, 64 bit Service Pack 1 Gfx card: Nvidia Quadro 1000 M Intel Core i7-2760 QM CPU 2.4 GHz RAM: 8.00 GB Everything renders fine .... 124 FPS without shadows, 24 FPS with every graphics setting maxed out I have friends who also bought a recent laptop from HP ... and they are having similar issues ...., video streaming on a prim does not work, for e.g. the youtube site can be accessed .... but where you are supposed to see a video you have the usual links to install flash which of course when clicked leads to the 'frame cannot be loaded' . Any help deeply appreciated. -
what does "Frame load interrupted by policy change" mean?
Deep Semaphore replied to mona21441488303259's question in Viewers
This just happened to me as well. I cannot fix the issue. Tried everything the previous post suggested. Last year, I remember a few people trying out Second Life and face exactly the same 'video play back' problem. I could not help them thinking that there was something wrong with their machine/install etc... because it was working on mine. Now with a new laptop, I am facing the same problem ... Please HELP -
Hey there, was wondering whether anyone has some ideas to share about the best way to find the region coordinates of the center of the surface of a prim (cube, cuboid, pyramid, other regular shaped prims) Thanks
-
Latest official Second Life viewer 3.2.8.2 Freezing
Deep Semaphore replied to Deep Semaphore's topic in Second Life Viewer
Thanks Thinkerer, Your pointers are really helpful. Am bookmarking them. -
Latest official Second Life viewer 3.2.8.2 Freezing
Deep Semaphore replied to Deep Semaphore's topic in Second Life Viewer
Thanks, Kwakkelde there is indeed a heating issue going on, and my CPU is maxed out too ... sticking to Firestorm for now, am almost glad the last official viewer sucked so bad. When I run Phoenix Firestrom in the v3 mode, I really enjoy things, am discovering for the fist time shadows with reasonable frame rates and I LOVE it. -
Hello, I am having very strange issues with the latest official Second Life viewer 3.2.8.2 It is freezing after 5 mins or so, then comes back and freezes again .... then after getting a few normal windows 'application not responding' messages, I just have to close it manually. Let me know if anyone else is experiencing this, or may be suggest a few things I can try. Background iinfo: I normally used the official viewer running about 40 FPS on average with draw dist kept min, even had cache on a separate partition with no issues whatsoever. Wondering what is new in this latest build that is so disruptive. Problem is that I have to train clients and I have taught them the UI for the latest SL official viewers. Otherwise, I would have stuck to Firestorm ... which is giving me shadows at 40 FPS with no problems whatsoever, not even hanging etc... but the only issue is a different interface that I have to teach folks who do not want to be exposed to many things. Thanks
-
Hello, Here's what I am trying to achieve. I have a linked object. I want to be able to click anywhere on the linked object and have the root prim move to the clicked point. Caveat: I cannot use llBreakLinks functions etc... or llCreateLink because this will require permission requests and so on which will destroy usability. If you have a solution and you want payment for it, don't hesitate to let me know personally. I am happy to hear ideas or views on the thread about this problem. Regards
-
Games in Second Life? Let's hear about them!
Deep Semaphore replied to Ann Otoole's topic in Games in Second Life
Hey this is really a good thread. Yes there is a lot of games in Second Life. I just tried to contribute by making available a game board, Gameboard Revival, that is really just a way to bring some of the better know classic games into Second Life (the usual chess, checkers, chinese checkers etc... two way, three way, four way, circular chess etc... all in one application. it's one application and you get a menu to choose which game you want to play. I am hoping to make another tool kit available that will allow anyone to create their own game board within half an hour ... been on my todolist, need to jack up priority a bit. -
llPreloadSound, llPlaySound issues
Deep Semaphore replied to Deep Semaphore's topic in LSL Scripting
Thanks Rolig, I did not know what exactly preloading does, now I do. -
Hello, I made a 3D board game but while making it I came across one annoying issue when implementing the sounds. I find that even sounds are preloaded, the first time they are played often they do not play. To fix this issue, I first forced a sound play for all sounds involved in the game so that when they are really required they would work fine. Has anyone else come across this? Let me how to fix this ... I remember this behavior since a few years back ... but this is still there. btw this is the game am working on.
-
Just wanted to thank folks who gave me some feedback. We ran out of pre-release copies at this time. Thanks again.
-
I am so sorry, I just checked and I see that limit set was hit. I have added a few more free ones. If you try soon, it might work. Thanks for your interest.
-
Hello, Am looking for new testers for the following functional product. You can get it from here ( 0L) https://marketplace.secondlife.com/p/Gameboard-Revival/2075782 Or contact Deep Semaphore inworld for a copy. In particular want to find out how much stress the board will put on a sim if many boards are deployed with players interacting with all of them, and of course examine User interface isses ... Thank you for your time. Deep Semaphore
-
how can one sync friends in Second Life with friends on this site?
Deep Semaphore replied to Deep Semaphore's question in Everything Else
I think the option to do an automatic invite based on contact list would have been good. It's like for any social network, you get choose if you want to add people from your existing contact list ... -
SL is a very lonely place, how do I find friends?
Deep Semaphore posted a question in Everything Else
When I first started in SL years ago, there was a cool community around ... then things died out. Now am trying to get back in ...but find it extremely difficult to find new active people. Can you share your thoughts about this?