[Opensim-users] create/manage objects remotely
Edmund Edgar
ed at avatarclassroom.com
Tue May 1 07:47:00 UTC 2012
> Can I use Sloodle to control/manage inventory? I want to build roads with
> variety shapes remotely.( For example 'S' shape or 'O' shape road... it may
> be any shape which I need to build dynamically) To do that, I keep some
> samples of road objects in inventory and as soon as command comes from
> remote, the object in the inventory should be pasted to the world.
It wasn't really designed for this, but I guess it would get you some
of the way. I mentioned sloodle because I thought you might want to
learn from the scripts or plunder them for code, but you could do it,
as long as you don't mind running a Moodle server running somewhere to
control it all.
What sloodle 2.0 can do for you is rez collections of objects and
store their positions relative to a rezzer object in what we call a
"scene". Here's a video Fire Centaur made of it so you can see what I
mean:
http://www.youtube.com/watch?v=vDOOXNR_5bM
In your case you might have prims for sections of road of different
shapes, and create scenes consisting of sections of road placed in
order. If I'm reading you right it sounds like in your case rather
than rezzing everything, arranging it and saving the positions, you'd
want to make the arrangements automatically, according some kind of
external logic?
We do actually have some code that creates scenes automatically on the
server side - in this case the idea is that somebody has an arbitrary
bunch of activities attached to their Moodle course, and we want to
rez them in-world arranged in a sensible way.
https://github.com/sloodle/moodle-mod_sloodle/blob/master/lib/layout_recipe/layout_recipe_base.php
In our case this gets called via the browser, which hits this script:
https://github.com/sloodle/moodle-mod_sloodle/blob/master/mod/set-1.0/shared_media/generate_layout_entries.php
I guess you'd have to replace that with your own logic that decides
where the various objects should go when they get rezzed in-world.
--
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