[Opensim-users] create/manage objects remotely
Edmund Edgar
ed at avatarclassroom.com
Mon Apr 30 09:26:08 UTC 2012
Hi Eldor.
On 29 April 2012 04:30, Eldor Primov <elikpr86 at gmail.com> wrote:
> Can anyone let me know or give hints how to create objects remotely,
> manage the size, rotate or move the object as well?
You might be interested in looking at the scripts in SLOODLE 2.0,
which deal with:
- Rezzing objects based on an HTTP-in request.
- Making them move to a particular position and rotation in relation
to the rezzer, also by an HTTP-in request.
- Keeping their position and rotation when the rezzer moves.
- Sending their positions and rotations back to the server to be saved.
These scripts are licensed under the GPL, so you can copy them if you
like, as long as you're prepared to put your own stuff under the same
license.
A) In the rezzer:
1) https://github.com/sloodle/moodle-mod_sloodle/blob/master/mod/set-1.0/sloodle_shared_media_setup.lsl
This script rezzes objects based on an HTTP-in request sent by a
script on the server.
The bit that interests you probably starts at state ready - the first
part is related to opening a web page that allows the user to control
what should be rezzed.
2) https://github.com/sloodle/moodle-mod_sloodle/blob/master/mod/set-1.0/sloodle_move_teller.lsl
This script shouts out to the other objects to let them know when
it's been moved, so that they can move as well.
B) In the rezzed object:
https://github.com/sloodle/moodle-mod_sloodle/blob/master/mod/set-1.0/sloodle_rezzer_object.lsl
This script goes where it's told in relation to the rezzer, and moves
when the rezzer moves.
The bit that interests you probably starts at state ready - the
first part is related to setting up a communication with the server
and setting up configuration settings unrelated to position and
rotation.
HTH,
Edmund Edgar
Avatar Classroom
Your classroom, on the web, in a virtual world.
ed at avatarclassroom.com
+81 090 3912 3380
Skype: edmundedgar
Second Life: Edmund Earp
Linked In: edmundedgar
Twitter: @edmundedgar
http://www.avatarclassroom.com
More information about the Opensim-users
mailing list