1 / 10

CS590VC – Tutorial 5

CS590VC – Tutorial 5. Advanced programming with LSL. Interacting with the web. Retrieves an RSS feed from web Parsing the feed. What we will do ……. Get the first link in the first item of the RSS feed Open the link in the user’s browser when the object is touched.

leora
Download Presentation

CS590VC – Tutorial 5

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS590VC – Tutorial 5 Advanced programming with LSL

  2. Interacting with the web • Retrieves an RSS feed from web • Parsing the feed

  3. What we will do ……. • Get the first link in the first item of the RSS feed • Open the link in the user’s browser when the object is touched. • The URL for the feed is: http://blog.secondlife.com/feed/

  4. Download the file: 0711_Fetching_A_URL_And_Parsing_The_Result

  5. A sensor application • To detect objects or residents near the selected object. • Event handler: sensor • Creating a sensor: llSensor & llSensorRepeat • Removing a sensor: llSensorRemove

  6. The basic function llSensor We have three arguments as follows: (a) A string: the name of the object/residents to search for. (b) A key: the unique ID of an object/residents to search for (c) A type: AGENT/ACTIVE/PASSIVE/SCRIPTED (d) Three Floats: the range to look for objects, the arc in radian to search, the rate in seconds to repeat the search

  7. llSensor type argument • AGENT: finds the avatar • ACTIVE: finds objects that are being acted on by simulator physics • PASSIVE: finds objects that are not ACTIVE • SCRIPTED: finds objects that have a running script

  8. What we will do • To turn the object into a transparent, phantom dimpled sphere that matches the area being searched by the sensor • To find object's owner, position this object in front of owner and point in the direction owner is looking

  9. Download the files:0718_Visualizing_Sensors&0719_Using_Sensors_To_Find_Owner

  10. References • Creating your World – the official guide to advanced content creation for second life

More Related