Archive for November, 2010

Project Moonlight III

Posted in Uncategorized on November 24, 2010 by veraska

So this week, after looking at HTTP Requests (I made a quick browser opening script because my project doesn’t need to store any data.)

string text = “transporting…”;

string url = “https://www.bbc.co.uk/”;

default

{

state_entry()

{

llSetText(“Click, and be transported! Yours Truly, the BBC.”, <1.0, 1.0, 1.0>, 1.0);

}

touch_start(integer num_detected)

{

llLoadURL(llDetectedKey(0), text, url); //Loads the URL

}

}

I continued the problem of queuing the sound files.

I appeared to find something which could have helped me, if they only didn’t have to use the sleep function to cause the next item to play. It seems also that they cannot play in a specific order, even when being ordered to do so.

This is the code that could help me, but I need it to clip them together seamlessly to create a melody, as having a 10 second break in between parts of Moonlight Sonata stop it from being such a dramatic and awesome piece of classical music.

list soundlist = ["9a6b7166-0eb5-8e61-d6a2-888cf6bd2c46"    ,    "632dd9c9-0a24-3acf-2df1-233675717fa6"    ,
                  "3c554abb-6c3c-a8b6-01e9-4a2b909b74f4"    ,    "47421b54-7114-f816-a05e-b79552f24184"    ,
                  "1ba27f6f-50eb-64f2-3171-0158b783e5b6"    ,    "81e26ae6-83ed-a88c-6d3f-dd2003058d7e"    ,
                  "b7045a20-ad0e-c083-a077-7a6e3048e638"    ,    "65f038c8-3284-a616-8817-e4f4c60be496"    ,
                  "194f1b76-bb9b-733c-3c81-ce6c83fcbd33"    ,    "2cf4add7-5317-8d66-4dbd-f902c1399597"    ,
                  "45e4ec4c-9215-3b96-72f7-673d4d817cc7"    ,    "98e8673a-b646-b2f5-dd27-0a394483fc88"    ,
                  "c96ea102-4d6e-57b2-61ce-4226fc4888d6"    ,    "2320f451-3ba9-7f03-cf15-20c14c16a232"    ,
                  "89f1244f-467d-e562-3cde-9dcff044b96c"    ,    "0c472a6d-2085-5f91-2262-cf2e585448d0"    ,
                  "9f4b90f1-3f3e-81a4-6fc2-1a39e1d2d2cc"    ,    "b61a7317-1c0c-e9ae-4bc0-077d40e1ea73"    ,
                  "01d82e0b-2dbb-3992-72f7-d4859427541c"    ,    "fb56b288-927d-75f9-26bb-8743f1fce736"    ,
                  "d157afac-9441-c060-aa91-2983ce56778f"    ,    "8d308920-73e2-c6d4-ae59-9762ac23815f"    ,
                  "ad189678-f343-295d-e5db-bea55b2ee7cf"    ,    "8a4be045-ed73-5f58-2c1e-d1ceb3146ead"    ,
                  "a7e62701-5787-3d1e-b156-de99671715ac"    ,    "4000333c-0c50-d528-63fd-a226894bbc58"    ,
                  "b43baabb-9b80-c938-ca5c-601f3bfd2b59"];

default
{
    state_entry()
    {
        integer all;
        integer listlong = llGetListLength(soundlist);
        do
        llPreloadSound(llList2Key(soundlist, all));
        while((++all)< listlong);
    }
    touch_start(integer detected)
    {
        if(llDetectedKey(0) == llGetOwner())
        {
            integer all;
            integer listlong = llGetListLength(soundlist);
            do
            {
                llPlaySound(llList2Key(soundlist, all), 1.0);
                llSleep(9.89);
            }
            while((++all)< listlong);
        }
    }
}

Seems other people are having the same irritation.

https://jira.secondlife.com/browse/SVC-1588

I’m starting to think this sound playing is more trouble than it’s worth.

Advertisements

Project Moonlight II

Posted in Uncategorized on November 17, 2010 by veraska

So this week, after messing around on animations using Avimator (it was quite difficult creating a stable animation that didn’t have an arm mysteriously detach from your shoulder)

What weird and freaky models they use; they are really unnatural mannequins. *shivers*

I continued with my project.

The thing that I wanted to get sorted out this week at least were the ten second segments of Moonlight Sonata. After looking around I found a very good program called Goldwave, allowing me 2000 actions (whatever they are) before the trial ends.

It seems really good at editing and creating clips; the main trouble I had was finding what sounds Second Life would let you upload.

It says wave format, but really they want specifically WAV PCM Stereo Unsigned 16Bit at 44100 HZ.

What a pain. I only found this out after I created 36 WAV PCM Stereo files at varying Hz.

It seems Second Life really doesn’t want you to use their sound upload system.

And 10 seconds? Really? How hard is it to include a minute upload option?

Never mind.

A bit of a pain to manage 36 files.

I also found out that Preloading Sound works, but only for two files in one prim at a time?! Seriously how broken is this environment?

I shall have to figure out some other way.

Project Moonlight I

Posted in Uncategorized on November 11, 2010 by veraska

So, main project. Based off of my proposal, the first thing I did was to create a suitable step.

Wood was far too cliched, so I chose glass.

I wanted to find some cool textures as well, I wanted to find some space age material, but found this pretty cool package of space and sci fi textures, including the one that looks like a demonic portal.

Looks pretty cool, isn;t it.

I might make all the stairs spawn with this, and hopefully I’ll have some spooky demonic stairs made out of glass, like the stairs in those higher class design homes, but with extra red.

Shame I can’t find a decent moonlight/night texture, it would fit the Moonlight Sonata better.

HUD – Heads Up Display

Posted in Uncategorized on November 3, 2010 by veraska

This week we were asked to create an onscreen HUD.

This sounds a lot easier than it seems; the only process used is to create a prim, and then paste a picture on the top. To change elements of the HUD, you rotate the box the HUD is on.

Second Life also has an inbuilt HUD system, where you pick up the box in question, and ‘attach it to the HUD’. It then will show the front side, on a 2D plane.

An example is below.



Also, work began on my final project. I’m going to name it Project Moonlight.