Seeing another tank
Seeing another tank
What do you think: Would it be possible to infer whether a player is seeing another tank in his field of vision, with a reasonable amount of work? I understand the current player's frustum and the opponent players' tank positions are updated in the drawFrame() function of playing.cxx, and then later on the program calls gl* functions for drawing the current view, but I get lost between these... Thanks for any comments.
"There's no such thing as stupid questions. There's just stupid people." - Mr. Garrison
Re: Seeing another tank
Are you talking about checking on the server-side?
Re: Seeing another tank
Actually I was thinking about the client-side, but this isn't so important. Would it be easier in the server?
"There's no such thing as stupid questions. There's just stupid people." - Mr. Garrison
-
- Private First Class
- Posts: 122
- Joined: Sat May 10, 2008 9:38 pm
Re: Seeing another tank
not into coding myself, but what are your intention/s by doing this?catcha wrote:What do you think: Would it be possible to infer whether a player is seeing another tank in his field of vision
Re: Seeing another tank
I'm planning to use the game for some quirky research purposes (simple two-player game at first), and I'm doing minor changes to the code to collect game event data. I can already get some simple things out, but not yet anything this complicated.ttfkad wrote:not into coding myself, but what are your intention/s by doing this?catcha wrote:What do you think: Would it be possible to infer whether a player is seeing another tank in his field of vision
"There's no such thing as stupid questions. There's just stupid people." - Mr. Garrison