Wednesday, July 23, 2008

Get your lineSegment! Make drawings using S4SL!


You may have noticed at the end of the S4SL video, I show the bug creating a colorful stairway (shown on the right). Or maybe you've tried to use the "pen" blocks and can't get them to work. The secret is having a special object called lineSegment.

Thanks to the efforts of SL'er Dagnir Korolev, we now have an in-world location where people can pick up the lineSegment object (feel free to create and advertise your own pick-up locations for lineSegment, and let me know). Here's a SLURL:

http://slurl.com/secondlife/TechInvestLab/48/172/31

Simply touch the black box with the S4SL logo on it, and you'll get a copy of lineSegment. Now, you can use the "pen" blocks in S4SL!

Basically, the pen blocks allow you to make your object leave a trail behind it as it moves. In this way you can make 3D drawings and sculptures using S4SL. Just drag the lineSegment object into the inventory of your object. Now if you put the "pen down" block in your script, any time after that when you use a "move" block, it will leave a trail.

Here's a simple example you can try out- when you say "square," it draws a square in a random color. Type "clear" to clean up the lines (the "clear" block does not work in alpha v0.1 due to a bug- instead you need to use "broadcast clear").



For the code for the stairs example shown above, you can look in the "pet bug" project that comes with S4SL.

Monday, July 21, 2008

Ideas for the next version

I'm thinking about what the next version of S4SL will look like and I'd love your input as I try to prioritize things to add. I've gotten some feature requests, and I have a few ideas of my own.

Here are some blocks I am thinking about adding:

* set texture [menu of a few fixed textures]
* set texture [name of any texture]
* distance to object [name of object]
* point toward object [name of object]
* rez [name of object] and move it [number] meters

Some other areas that I may think more about:

* particle effects
* loading URLs
* more sensing

Also, I'd like (eventually) to automate the code generation process more so that you only get the helper function code that you need, not the whole bag of tricks. At first I thought this didn't matter, since it's just a few hundred lines of bloat. But now I realize people will actually want to use the generated code to learn from, so if it makes more sense to look at it, they will have an easier time.

What do you think? Any comments on these? Other ideas?

Friday, July 18, 2008

S4SL video tutorials

I would love to have some nice video tutorials to introduce people to S4SL, to complement my existing video (which is more of an overview) and web page tutorial.

I just found an S4SL tutorial in Spanish. Wow! I don't speak spanish, but as far as I can tell it looks great. It's here.

Please comment here if you find more video tutorials, or create your own.

Welcome!

This is the official blog for Scratch for Second Life (S4SL). I'll post here to announce any interesting developments, and software updates. Please leave comments- I'd love to hear about people's experiences. Include your feature requests, bug reports, and links to images or video of cool things you create with S4SL. If you can share your S4SL files that would be great too!