Changes between Initial Version and Version 1 of vd


Ignore:
Timestamp:
Aug 18, 2011 2:59:13 PM (13 years ago)
Author:
jpawlick
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • vd

    v1 v1  
     1This ProtocolZero query uses the graphical abilities of Quake 3 to render the world as seen from the bot's perspective, much like [[vc]]. Unlike [[vc]], however, it returns the contents of the OpenGL depth component buffer instead of the color buffer. Larger values are further away, while smaller values are closer to the camera plane.
     2
     3See [[vc]] for some additional notes on [[vc]] and [[vd]].
     4
     5'''Parameters:'''
     6None.
     7
     8'''Responds:'''
     9 * ''w h DATA'' where w is the width of the image, h is the height of the image, and DATA is w*h*4 bytes of depth information, formatting according to GL_INT. I believe this typically means that they are little-endian, but you're best off determining it for yourself. The first 4 bytes belong to the lower-left corner of the image, and they proceed to the right (and then up when the row is filled).
     10
     11'''Reports:'''
     12 * ''done'' when the task completes.
     13 * ''popped'' if popped by [[po]].
     14 * ''forgotten'' if deleted by [[fa]] or [[fm]].
     15 * ''replaced'' if replaced by a command scheduled with 'r'.
     16
     17'''Example:'''
     18 * User sends: "n vd 512"
     19 * Bot replies "rs vd 512 640 480 5q'5hn?o1qin716[32\-..."
     20 * Bot replies "cp vd 512 done"