[Opensim-users] Inquiry about OpenSim NPC

TanLu tanlu_0912 at hotmail.com
Wed Dec 7 08:30:13 UTC 2011



Hi, OpenSim users and Justin

 

I’m a PhD student and my research focus on agent-based
simulation of crowd evacuation in fire emergency. Now I’m trying to implement such
a simulation in OpenSim and I found the NPCs are really useful which can be
used to mimic the pedestrian behavior. So far I am able to create NPCs using
the script-based approach and make them moving around according to some
designed rules, but I still have some problems.


(1) I wander if the NPCs can be treated like
an object, which can be scripted? Now, I can only use a NPC List in the main
script to control several NPCs at once, and this leads to a lot of “for-loop”. Is
it possible to make each NPC to have its own script, so that I can use the llRezObject
function in the main script to generate NPCs with script? 


(2) When I click the NPC under the building
mode, the three axes appear as usual. But when I try to move the NPC by dragging
it along the axis, the NPC disappears once I release the mouse button. Moreover,
through the osGetAvatarList() function, I find the NPC is still in the region!
I wander is this a bug on the current NPC function, or did I do something
wrong?


Could you please kindly help to solve my
problems? Any comments or suggestions would be highly appreciated.


Many thanks for your attention and look
forward to your reply.

 

Best regards,

 

Tan Lu*****************************************************
Tan Lu
Institute of Space and Earth Information Science
Fok Ying Tung Remote Sensing Science Building
The Chinese University of Hong Kong
Shatin, Hong Kong
Tel: 852-2609 7257
Fax: 852- 2603 7470
Email: tanlu_0912 at hotmail.com
 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20111207/acd7bb1d/attachment.html>


More information about the Opensim-users mailing list