Archive for November 22nd, 2009

Probably the most advanced dirt sweeping script?

After 6 hours, i consider the “meat” of the script to be done:

Spawning device has an unique ID

It runs a timer to add more dirt on the floor , runs a limited sensor for counting the dirt and stop adding when maximum is reached.

Each dirt spawned get the unique id and use it to rename itself.

Each dirt patch use sensor to find the dirt generator, read the configuration values from the generator name

Set the generator position as it’s origin and move itself at a random place in the generator’s declared radius.

When swept, the dirt patch is actually moved on the floor, and will refuse a move that will put it out of range of the generator control sensor.

Dirt rotate itself according to the angle it was swept.

Dirt assume random variation in “thickness” to reduce Z fighting in complanar faces.

Dirt suicide if it lose track of it’s generator.

That’s a lot for a patch of dirt 😀

Snapshot_016

Coding when drunk.

Yesterday i’ve been looking back over my chore scripts, i worked on the script to control the dirt swept by the broom, it kinda stroke me that even tho this piece of code is actually quite good, it was missing some very obvious low lag features. Either i was planning to add it later (wich i have no memory of) or i was drunk -_- .

Kind of interesting that coding drunk and coding in your good day (when you can zone in) tend to be simmilar, as in you can produce a lot of very complex code, very fast, excepted that the sober days it just looks like it makes no sense…

Kyrah Abattoir
Creator of BDSM and fetish content in Second Life since 2004.

Seasoned 3D artist and programmer, aspiring video game creator.

November 2009
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
Archives