Jump to content

3D First person shooter


wolfx

Recommended Posts

tis pretty cool...load time sucks though, and that is why the program is so small...basicly seems like they reduced the textures and 3D meshes into mathmatical formulas...and when you run the program, it cycles through those formulas generateing the required textures and such...

Just a simple example:

say you have a 2D image of a black and white checkerboard...starting from the upper left corner, each odd numbered pixel is black with the even numbered ones being white...and lets say this image is 1024 x 1024 pixels in size...so even if the developers used a .JPG file format to store the image is would still be around 13k in size...however through some clever programming a the game could run through a little routine that generates this texture (basicly a loop that colors all the odd pixels black and the others white)...now once this routine is compiled into machine language, the section of the code to generate this image may only be about 65 bytes in size (you could fit nearly 205 such routines into 13k)...however this canl seem to take longer to "load" by running through the routine instead of just loading up a JPG because the processor is involved in the coloring of each and every pixel (where loading up a pregenerated image like a JPG can take advantage of low level BUS memory transfers and such)...hopefully that makes some sense :p

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...