Notes About Linden Scripting 2009 Congress
Upcoming SlideShare
Loading in...5
×
 

Notes About Linden Scripting 2009 Congress

on

  • 1,056 views

 

Statistics

Views

Total Views
1,056
Views on SlideShare
965
Embed Views
91

Actions

Likes
1
Downloads
15
Comments
0

3 Embeds 91

http://www.cibersociedad.net 87
http://mj89sp3sau2k7lj1eg3k40hkeppguj6j-a-sites-opensocial.googleusercontent.com 3
http://translate.googleusercontent.com 1

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Notes About Linden Scripting 2009 Congress Notes About Linden Scripting 2009 Congress Presentation Transcript

  • Notes about Linden Scripting Language (LSL) and its possible applications
      Akemi Mochizuki Draceina Pinion (S.L)
  • Index
      Introduction 1. What is a script? 2. How to get scripts? 3. How to create a script? 4. What are the parts of a script? 5. Types of Scripts 6. Examples of intelligent objects made with scripts
  • Introduction
      This presentation is focused on two objectives 1. Present the main characteristics of the Linden Scripting Language, the language that is used in Second Life to make the Virtual World active like the real world. 2. Give some examples of applications of the use of scripts for educational purposes.
  • 1. What is a script?
      The scrip allows objects to be active in Second Life. It is in the content of the object. The scripts are composed by functions, events and constants. We can get much data and calculate the coordinates or scale or number of something speedily and exactly by scripts.
  • 2. How to get scripts?
      Scripts can be easily created or you can get created scripts. Some are free and some are low price and some are so expensive. For example,you can get scripts in Second Life at Free script Library, solvo.
    http://slurl.com/secondlife/solvo/221/92/24
  • 2. How to get scripts?
    • Please search 'script' by the 'search' button. You will find many places. There are some groups where you can learn scripts.
  • 3. How to create a script?
    • Edit and open the content of an object and touch the 'New Script' button.We can get the most basic script. If you touch the object which contains this, it will say, "Touched." We can modify this script.
  • 3. How to create a script? There is capacity limit when we make scripts. If you make a too huge script, it will be not compiled. And there are errors which occur when it is executed. For example the error which is caused by a mistake that denominator becomes 0 at dividing calculation. ex. 2/0 cannot be calculated.
  • 3. How to create a script?
    • We can determine the property of the script which we made.
    • There are 3 properties.
    • Modifiable :this script can be modified
    • Copyable :this script can be copied
    • Transferable :this script can be transferred
  • 4. What are the parts of a script? Usually a script consists of some parts that are called states. One state is a thing like the paragraph if it says by sentences.
  • 4. What are the parts of a script?
      Sample of a state
    • touch_start : This reacts when the object which contains this script touched.
    • state active : This is the name of the state which I made.
    • 'state active;' : By this the operation goes to the 'state active'.
    • 'state default;' : By this the operation goes to the 'state default'.
  • 5. Types of scripts For example, we must determine where animals are and which direction they see precisely. face_rot=llEuler2Rot(rot*= DEG_TO_RAD); //degree to radian llSetPos(v_pet); //Position of the animal llSetRot(face_rot); //Angle of the animal face_rot, rot, v_pet:the names I made llEuler2Rot:change euler to rotation DEG_TO_RAD:change degree to radian llSetPos:determine the position llSetRot:determine the rotation rotation:Please refer to http://wiki.secondlife.com/wiki/Rotation
  • 5. Types of scripts Sometimes we add the notecards into the content of the object. For example, the notecard of texture UUID or the numbers which define the interval and the range of the sensor. (By a sensor you can know who is near you.) UUID:Peculiar figure which is a string of 32 hex characters with four dashes interspersed allocated in one thing (an object, a gesture, an account and a texture etc.) Sample of UUID:This is allocated to me. adc5208a-c98c-494e-a5f6-86ccf4b773e1
  • 6. Examples of intelligent objects made with scripts
    • I have learned to design animals which moves like real animals. This kind of objects can be used for helping children to learn easily about different issues. They can know about animals seeing and touching them by their mouses and they can be used to teach numbers if, for example we can ask to children to count the number of dolphins.
    • My best invention in SL is DDB (Dracy Drawing Board) . By this one can draw a picture or write a text in SL rather freely. I made this for myself. I wanted to test if it is possible to teach subjects, especially maths, in SL.
  • 6. Examples of intelligent objects made with scripts
      This is a dolphin which I made.He recognizes the avatar that is near with a sensor and approaches.He can jump and he does some things as the real dolphin does.This dolphin occasionally puts avatar on the back. It is controlled by random numbers.The dolphin sometimes barks.
  • 6. Examples of intelligent objects made with scripts
      One of the frustration in SL seems the difficulty in writing characters or drawing pictures to explain something to the others. I designed DDB to be used in writing many characters easily on the panel and drawing a simple picture for explanations. The function of handwriting and drawing arrows were added with the good advices of Manuel Vuelta “Profesor Korobase (S.L)”. With my newest version, one can teach maths or chemistry .
  • 6. Examples of intelillent objects made with scripts
      With the 3D objects and DDB we can teach about cosine, sine and tangent easier in SL. blog Because 3D environments help to students to feel and to understand the dimensions of the objects and their components. Moreover, they can learn about this issues at the same time they enjoy.
  • 6. Examples of intelligent objects made with scripts We can draw a picture of structural formula of organic compounds rather easily by using DDB. The empty squares below were made transparent by the function of DDB. We can easily restore the colour by the button of DDB. I use DDB to teach chemistry to a student in the next video.
  • Conclusions Discover applications of Second Life it is a task that needs time. After two years practising in Second Life, I have discovered that it is possible using this virtual environment for teaching maths because we can show the students the models of real things to make them learn things easier. The models can be made to move as we want them to do. 3D models are much better than pictures on the papers or on the blackboards. One of the best things of the models is that can be scripted to react against the students.
  • Conclusions We can build the models of the same size with the real objects (in this case, the sizes must be compared with the size of avatars). Students can practice the real activities, for example, measuring the length of the long roads or taking a picture of big buildings from the sky easily in SL. We can use 3D graphics for displaying data. If anybody is interested in my tools or in exchanging knowledge about scripting, you can contact with my avatar in S.L (Draceina Pinion) or you can visit my shop Slur... http://slurl.com/secondlife/Balenissa%20Grove/242/107/80