Loading...
 

PogamutUT2004


Raycasting for player observer

Hey

Is it possible to generate raytracing for observation class? I looked up the gamebots messages and AutoRayTracing is only valid for bots, does that mean we can't observe raytraces from a player?
Thanks
Hi.

There is no support in GameBots for rays for human players. Moreover I've looked in the code and ray tracing is not exported for observed bots either (however, this could be fixed). What do you need this for?

best,
Michal
Hi

Thanks for the reply, I need this for collecting features about what is around the player. It could be to get data for how far the player is from a wall or an obstacle in the environment so that we can see how the player performs in such situations. If it's not a major work, it would be very helpful to be able to use rayscans for observed players.
I have implemented support for automated ray tracing messages for bot observers. Update Gamebots in your UT2004 folder with files here:

svn://artemis.ms.mff.cuni.cz/pogamut/trunk/project/Main/Gamebots/GameBotsUT2004

Ray tracing for players is not supported (and it would require bigger changes). However I have implemented support for TRACE and FTRACE commands for control server. So when you have control server instanciated you can make trace and fast trace queries and you receive result asynchronously. (TRC and FTR messages, or TraceResponse and FastTraceResponse in Java).

You can use this to get information you need. Be carefull though as trace and fast trace commands can be computationaly intensive ( I would recommend to limit the number of queries to max 10 per 250 ms per player).

Best,
Michal
Hi

Thanks for the update, I am able to use it now with Java classes Trace and TraceResponse. Sending trace object with server.getAct().act(trace); inputs the ray and traceResponseListener event listener grabs the response.
Thanks again
 

News

News RSS RSS feed for News link



Pogamut

Quarterly RSS RSS feed for quarterly reports

Acknowledgement

This work is supported by GA UK 1053/2007/A-INF/MFF (2007-8), GA UK 351/2006/A-INF/MFF (2006-8), the Ministry of Education of the Czech Republic (grant MSM0021620838) (2008-9), by the Program "Information Society" under project 1ET100300517 (2006-9), and the project Integration of IT Tools into Education of Humanities (2006-8) and by the project CZ.2.17/3.1.00/31162, which are financed by the European Social Fund, the state budget of the Czech Republic, and by the budget of Municipal House Prague.