X-Ray vision: Watching through the walls

  5 posts   Feedicon  
Replies: 4 - Last Post: February 05, 2010 13:11
by: Alexander Koller
showing 1 - 5 of 5
 
Posted: January 22, 2010 10:56 by lodr
Hi all.

Check this image. The list below shows the visible objects given in the "handleStatusInformation" call. Note that b2 is in the list, but phisically it is behind the wall (check the mapviewer).

http://picasaweb.google.com/deniscepeda/Guide#5429515365500046898

¿Is this a mistake? This is not the only place we have experimented this. A similar problem happened to us with b14 while being in the blue room (we could see b9, b10 and b14 at the same time). It seems to be happening with buttons allocated in the same X or Y coordinate.

Note: In the image, chair1 appears in the list, but you can see it through the door. There is no problem with that.
 
Posted: January 23, 2010 12:54 by niels_s
Related to this, is there a way to find out what could be theoretically seen from a position if the player turned around once completely with stepping forward or backward (as opposed to what the player currently sees which is what we get we get from handleStatusInformation)?

I had been planning to get this manually by checking which objects are obstructed by walls, but the javadoc seem to heavily suggest I should not mess with that.
 
Posted: January 26, 2010 11:04 by lodr
Mmm. You can determine which objects are inside your field of view by considering the angle between you and the object. To chec if the object is actually visible from your position you can mess with the shape of the rooms or you can use region properties.

Two regions, A and B are adjacent if any point of B can be seen from any point of A (and viceversa) so you can consider first what objects are in regions adjacent to you region and then, filter the list, considering just those objects inside your field of view.

I hope it works.
 
Posted: February 05, 2010 13:11 by Alexander Koller

Unfortunately, there is currently no such functionality in the GIVE library.

Cheers, Alexander.

 
Posted: February 05, 2010 13:10 by Alexander Koller

Fixed in 2.2.2.

Replies: 4 - Last Post: February 05, 2010 13:11
by: Alexander Koller
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close