Difference between revisions of "Talk:TERRAIN"

From UFOpaedia
Jump to navigation Jump to search
Line 6: Line 6:
 
Two things:
 
Two things:
  
1. If you get all the MCD files from this folder, you will notice that there is no matching TAB and PCK for some of them.
+
* If you get all the MCD files from this folder, you will notice that there is no matching TAB and PCK for some of them. Any got a clue as to why?
  Any got a clue as to why?
 
  
2. Something that I haven't seen mentioned is that, if you count the number of pixels that you put into your image while  
+
* Something that I haven't seen mentioned is that, if you count the number of pixels that you put into your image while converting the bytes of the RLE image data, you will notice that there are a few at the end that must be set to transparent for the image to display correctly when overlayed. I am using 32x40 pixel images. I found that size on the site.
  converting the bytes of the RLE image data, you will notice that there are a few at the end that must be set to transparent
+
 
  for the image to display correctly when overlayed. I am using 32x40 pixel images. I found that size on the site.
+
- [[User:Sidewinder58|Sidewinder58]]
 +
 
 +
:Some of the MCD files just aren't used at all. The first game, ''UFO'', also has entire map files that get ignored.
 +
 
 +
:As for the PCK images, the idea is that the game draws them straight onto the screen - the transparency effect is achieved simply by leaving the pixels that aren't mentioned within the PCK data completely untouched. If you pre-render all your images into sprites, then yes, you'd need to use a transparency flag of some sort, but you can actually just keep parsing the raw RLE stream over and over faster and with less memory usage. Why process transparent bytes when you can simply skip them?
 +
 
 +
:By the way, on these wiki talk pages you can sign your comments by entering four tildes (<nowiki>~~~~</nowiki>).  :) - <span style="font-size:xx-small">&nbsp;[[User:Bomb_Bloke|Bomb Bloke]] ([[User_talk:Bomb_Bloke|Talk]]/[[Special:Contributions/Bomb_Bloke|Contribs]])</span> 19:30, 17 January 2011 (EST)

Revision as of 00:30, 18 January 2011

Talk Page Moved

I've moved the old contents of this page (which discussed MCD files) here. - Bomb Bloke 03:59, 27 June 2010 (EDT)

TERRAIN Content Files

Two things:

  • If you get all the MCD files from this folder, you will notice that there is no matching TAB and PCK for some of them. Any got a clue as to why?
  • Something that I haven't seen mentioned is that, if you count the number of pixels that you put into your image while converting the bytes of the RLE image data, you will notice that there are a few at the end that must be set to transparent for the image to display correctly when overlayed. I am using 32x40 pixel images. I found that size on the site.

- Sidewinder58

Some of the MCD files just aren't used at all. The first game, UFO, also has entire map files that get ignored.
As for the PCK images, the idea is that the game draws them straight onto the screen - the transparency effect is achieved simply by leaving the pixels that aren't mentioned within the PCK data completely untouched. If you pre-render all your images into sprites, then yes, you'd need to use a transparency flag of some sort, but you can actually just keep parsing the raw RLE stream over and over faster and with less memory usage. Why process transparent bytes when you can simply skip them?
By the way, on these wiki talk pages you can sign your comments by entering four tildes (~~~~). :) -  Bomb Bloke (Talk/Contribs) 19:30, 17 January 2011 (EST)