LinkedIn emplea cookies para mejorar la funcionalidad y el rendimiento de nuestro sitio web, así como para ofrecer publicidad relevante. Si continúas navegando por ese sitio web, aceptas el uso de cookies. Consulta nuestras Condiciones de uso y nuestra Política de privacidad para más información.
LinkedIn emplea cookies para mejorar la funcionalidad y el rendimiento de nuestro sitio web, así como para ofrecer publicidad relevante. Si continúas navegando por ese sitio web, aceptas el uso de cookies. Consulta nuestra Política de privacidad y nuestras Condiciones de uso para más información.
Notes about Linden Scripting Language (LSL) and its possible applications <ul>Akemi Mochizuki Draceina Pinion (S.L) </ul>
Index <ul>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 </ul>
Introduction <ul>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. </ul>
1. What is a script? <ul>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. </ul>
2. How to get scripts? <ul>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. </ul>http://slurl.com/secondlife/solvo/221/92/24
2. How to get scripts? <ul><li>Please search 'script' by the 'search' button. You will find many places. There are some groups where you can learn scripts. </li></ul>
3. How to create a script? <ul><li>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. </li></ul>
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? <ul><li>We can determine the property of the script which we made.
Transferable :this script can be transferred </li></ul>
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? <ul>Sample of a state <li>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'. </li></ul>
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 <ul><li>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. </li></ul>
6. Examples of intelligent objects made with scripts <ul>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. </ul>
6. Examples of intelligent objects made with scripts <ul>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 . </ul>
6. Examples of intelillent objects made with scripts <ul>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. </ul>
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