Channels ▼
RSS

Open Source

Second Life: A Programmer's Perspective

Source Code Accompanies This Article. Download It Now.


Essential Second Life Elements

Becoming an SL resident represented by your own avatar and spending time in the SL world is mandatory for anyone seeking to do serious SL development. In a real sense, you can think of time spent in SL as participating in a living, evolving operating environment for which you are creating artifacts often backed by your code. The more time you spend participating in SL, the better you understand the capabilities and limitations of SL's simulation and rendering engines. An interesting concept for developers is that you're living both inside an application and an IDE. Whenever you are in a coding mood, you press the Build button at the bottom of your screen and invoke the IDE.

You first need to download the SL client for your platform. There are clients for Windows, Mac OS X, and a Linux Beta. After installing, you create an identity (an avatar) for yourself. Every new avatar inherits a collection of objects, given to you by Linden Lab. Everything else you own has to be purchased or created by you or another resident.

When you create objects, you can hold them in your inventory, which is infinitely expandable and can stretch to hold your entire virtual clothing collection (plus an antique oak armoire to store it in). Of course, as your virtual storehouse gets bigger, the database fetch needed to populate it takes longer each time you connect with SL. There are techniques for compressing your holdings, but the best thing for you to do is to buy virtual land in-world.

If you buy and hold virtual land in SL, you can place whatever you want there and it remains. This rule applies to items you purchase or create. Thus, for example, even though your library of objects may contain interesting items and although you may create artifacts, you need to acquire land to give them permanent presence. This is how thousands of residents have created commercial revenue-producing sites that vend fashions, automobiles, and other virtual artifacts.

After going in-world, it is recommended that you teleport to one of the sandbox areas to build and test objects of your own creation in a sandbox. Then copy them into your inventory.

Because all sandboxes are wiped twice a day, make sure to copy your creations back into your inventory periodically ("save early, save often").

You can only create objects using in-world building tools (there are persistent rumors that eventually you'll be able to import external models), but you should create animations externally using Avimator (avimator.com), then import them in-world. You can use the syntax coloring editor in the object builder IDE, or use an external text editor (plug-ins exist for several popular ones).


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.
 

Video