Skip to main content

A tree spirit for Opensim / Burning Life


I want to make a self replicating distributed bot + attachment system, which is coupled with a physical computing version of itself which my friend Mat Dalgliesh is making as a physical creation.

Here is the spec:


The tree idea is a reflection of a physical computing tree, created using arduinos, sensors and motors.

Leaves are attachments with a built in fall script. When they fall, they slowly degrade, becoming darker until they become a particle effect and delete themselves. New leaves take donations from users. If they get donations, they grow bigger and live longer. They pass this donation to the trunk who divides it around the rest of the plant.

Here is a little bit of a proto-leafgen script:

// Rez an object on touch, with relative position, rotation, and velocity all described in the rezzing prim's coordinate system.
string object = "Leaf"; // Name of object in inventory
vector relativePosOffset = <2.0,>; // "Forward" and a little "above" this prim
vector relativeVel = <1.0,>; // Traveling in this prim's "forward" direction at 1m/s
rotation relativeRot = <0.707107,>; // Rotated 90 degrees on the x-axis compared to this prim
integer startParam = 10;



default {

state_entry() {
vector myPos = llGetPos();
rotation myRot = llGetRot();

vector rezPos = myPos+relativePosOffset*myRot;
vector rezVel = relativeVel*myRot;
rotation rezRot = relativeRot*myRot;
llSetObjectName("Leaf");
llRezObject(object, rezPos, rezVel, rezRot, startParam);
}

touch_start(integer num_detected) {
llRequestPermissions(llDetectedKey(0), PERMISSION_ATTACH);
}

run_time_permissions(integer perm) {
if (perm & PERMISSION_ATTACH) {
llAttachToAvatar(ATTACH_RHAND);
}
}

}



Fruits are controlled by all the other parts: they accumulate currency, and can spawn more of themselves when small. When big, they have a drop script. It becomes a little ball that gives something nice, like textures, or sim currency when picked. Just before it drops, it transfers any remaining goodness inside it to the trunk



The trunks are all bot avatars, run after being prepared by humans. Each time the tree needs to grow by another bit, another avatar is needed to be attached to a linking attachment. By use of animations, they could even be intertwined with each other. It uses currency to upload textures of it's older self - used in all other parts. If restarted, the bot scripts will start from seedling.

The avatar is heavily made up: it will have trunk and root- like attachments. sounds and animations, and then generators for the fruits and leaves, It is a bot, communicating with the attachments it wears via hidden channels. Maybe that's how a tree spirit should.



Roots are born when the tree is on some land. They could be non physical and locked to a place, so they function as an anchor. It can be engineered that only way it could be moved would be by the addition to the tree of a rooting script, temporarily making the tree physical. Not sure if these will be needed really though.

To kill it, because it can respawn trunks which automatically wear leaves and accumulate money, you would have to ddos all the bots that run it, and they can be connecting from different servers, which could make it quite a resilient little plant.

So this is an opensource project at the moment. It is a cross between content, character design ecology and commerce. It should be fun! Let me know if you'd like to be involved!

Comments

Popular posts from this blog

My Interpretation so far of the Sutra of Innumerable Meanings

This Sutra, handed down by Ananda, the Buddha's companion, then found and translated to Chinese by Kumarijiva, is part 1 of a trilogy consisting of the Lotus Sutra, The Innumerable Meanings Sutra and the Meditation Sutra. It is studied and known among others, by Nichiren Schools of Buddhism, and it's his interpretation that I probably share most with: http://nichiren.info/OngiKuden/text/Muryogi.htm First of all, it is meant to be read by Bodhisattvas. Boddhisatvas are people who use what they learn to teach others about how to be Buddhas. When I think of Boddhisatvas, I think of people like Gandhi or Martin Luther King etc, people who fought beyond their own lives for the greater good or peace, perhaps even without knowing what the right way or right practice is. The Innumerable Meanings Sutra says these people will attain the supreme enlightenment that the Buddha attained, eventually, although the short term effect will be that everyone is a lot better off. Laws, people and so...

Big Cafe on Transport Sustainability

About a month ago, I went to the "Big Cafe for Transport" event that was happening just around the corner from my house at the brilliant new "Co-Exist" sustainability business centre . Coexist run as a CIC and are just about to launch with a plan to open up green community and event spaces, funded in turn by work and business spaces. I really hope that means a market in stokes croft! After I attended, I'd promised everyone I'd write up about it, and promptly left it as a nagging thing in the background as life took over. But now the official write up of the event has been published so I thought I should finish the abortive blog post I made that same night. A disclaimer : I'm allowed to make mistakes here, so if I've written anything wrong or stupid, please correct me! A big cafe costs 20 pounds to attend. It started really early on a Saturday morning (thus excluding the entire population of Stokes Croft), but it included a lunch (from Kukuva Cafe ac...

Eduserv Symposium 2008

I came to attend this symposium out of the blue, having seen an email late one Wednesday afternoon, saying our assistant director was too ill to go, and after a quick look at the programme, I realised it was a follow-up to an event I'd seen on video a while back where an entire conference on Second Life had been trashed by a talk which had argued it was all pretty much useless hype. So if this year's presentations were going to be in that vein, it sounded like like a fun time. This being a web 2 conference, lots of it was used, including a live chat backchannel ( http://www.eduserv.org.uk/foundation/symposium/2008/livechat powered by cover it live streaming software: http://www.coveritlive.com/ ), a ning based conference centred social networking site (which as expected didn't achieve critical mass but was a nice feature all the same), and of course lots lots more. Eduserv's Andy Powell started the day talking about these "Disruptive technologies" we know so...