[Opensim-dev] Question about the suitable interface

Justin Clark-Casey jjustincc at googlemail.com
Wed Feb 22 03:21:22 UTC 2012


Unfortunately, animation control isn't directly exposed in OpenSimulator.  Three possibilities spring to mind.

1)  Have an in-world script using osAvatarPlayAnimation() to trigger animations.  This would need to establish an LSL 
http listener for incoming commands, which some external code would need to issue.

2)  Write a C# OpenSimulator region module to directly call ScenePresence.Animation.AddAnimation().  Essentially, this 
means copying the code from OSSL_Api.AvatarPlayAnimation().  The region module would still need some way of receiving 
commands, such as an listening for a particular HTTP POST as with osAvatarPlayAnimation() above.

3)  Adapt the client to send the required play animation commands directly (as Bo suggested).  This does have the 
advantage of compatibility with SL and doesn't require a messy out-of-band component.  But the complexity depends on 
exactly what you're trying to do (playing precanned animations might be relatively easy, actually transmitting real-time 
kinect less so).

There's been some work done on this kind of thing already, such as [1].  I look forward to Kinect 2 picking up my facial 
expressions and transmitting them onto my avatar (which sounds great and for some reason really creepy too).

[1] http://www.youtube.com/watch?v=tl2gLw-GJws

On 21/02/12 18:47, Georg Janke wrote:
> Hello Bo,
> thanks for the commentary. That may be a very worthwhile suggestion. Exactly
> that is what I am trying to figure out, which interface is the most
> suitable.
> Would others agree that when controlling just one avatar it is best practice
> to do that with the help of the viewer?
>
> Georg
>
> -----Ursprüngliche Nachricht-----
> Von: opensim-dev-bounces at lists.berlios.de
> [mailto:opensim-dev-bounces at lists.berlios.de] Im Auftrag von Bo
> Gesendet: Dienstag, 21. Februar 2012 19:18
> An: opensim-dev at lists.berlios.de
> Betreff: Re: [Opensim-dev] Question about the suitable interface
>
> Hello,
> forgive me a noob question, please. You are going to control nothing but one
>
> avatar, right? What will be the role of simulator in it?
>
> If the Kinect movements would affect all avatars on the sim (eg. an kinect
> controlled earthquake) i would understand the role of the sim. But while it
> affects just one avatar i would rather do all changes on viewer side using
> standard ways so the thing would be compatible with SL..
>
> Bo
>
> PS: of course it could possible to do it as a sim module. But question is
> why..
>
>
> On Tuesday 21 of February 2012 18:54:08 Georg Janke wrote:
>> Hello developers of OpenSim!
>>
>>
>>
>> My Name is Georg and would be very happy if you could answer my question.
>>
>> Short description of what my aim is:
>>
>> I am working on a application that is able to recognize gestures from a
>> Kinect controller. With the help of this I want to control an avatar in
>> OpenSim. So I have the recognition application and OpenSim running
> parallel
>> on the client pc. The database on the OpenSim server contains the
>> appropriate animations for the gestures.
>>
>> Question:
>>
>> Does OpenSim has a suitable interface that my application can use to tell
>> OpenSim it has recognized a certain gesture and thus controlling the
> avatar
>> to perform the appropriate animation from the database?
>>
>>
>>
>> Thanks for reading,
>>
>>
>>
>> Georg
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
>
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
>


-- 
Justin Clark-Casey (justincc)
http://justincc.org/blog
http://twitter.com/justincc



More information about the Opensim-dev mailing list