Author Topic: Gunsight Files  (Read 478 times)

Offline stickpig

  • Nickel Member
  • ***
  • Posts: 570
Gunsight Files
« on: September 07, 2007, 08:35:00 AM »
I noticed some gunsights have 3 files. A .bmp then some alpha files

What are the alpha files for?
Theyll only give you one chance, Better get it right first time. And the game youre playing
If you lose you gotta pay, If you make just one wrong move Youll get blown away
Expect no mercy  <Nazareth>

"Stay in the manned ack... When your in a plane you are a danger to the ground"  <Norad>

Offline USRanger

  • AvA Staff Member
  • Plutonium Member
  • *******
  • Posts: 10325
      • BoP Home
Gunsight Files
« Reply #1 on: September 07, 2007, 10:47:53 AM »
Transparency
Axis vs Allies Staff Member
☩ JG11 Sonderstaffel ☩
Flying 'Black[Death] 10' ☩JG11☩

Only the Proud, Only the Strong Ne Desit Virtus

Offline stickpig

  • Nickel Member
  • ***
  • Posts: 570
Gunsight Files
« Reply #2 on: September 07, 2007, 01:32:20 PM »
What is thier purpose? Will the sight not work without them?
Theyll only give you one chance, Better get it right first time. And the game youre playing
If you lose you gotta pay, If you make just one wrong move Youll get blown away
Expect no mercy  <Nazareth>

"Stay in the manned ack... When your in a plane you are a danger to the ground"  <Norad>

Offline USRanger

  • AvA Staff Member
  • Plutonium Member
  • *******
  • Posts: 10325
      • BoP Home
Gunsight Files
« Reply #3 on: September 07, 2007, 03:16:59 PM »
It would be solid. No transparency whatsoever. It's not needed. It's a matter of personal taste.
Axis vs Allies Staff Member
☩ JG11 Sonderstaffel ☩
Flying 'Black[Death] 10' ☩JG11☩

Only the Proud, Only the Strong Ne Desit Virtus

Offline The Fugitive

  • Plutonium Member
  • *******
  • Posts: 18012
      • Fugi's Aces Help
Gunsight Files
« Reply #4 on: September 07, 2007, 03:32:55 PM »
they use the transparencies to give the site that "glowing" look

Offline Bullethead

  • Silver Member
  • ****
  • Posts: 1018
      • http://people.delphiforums.com/jtweller
Gunsight Files
« Reply #5 on: September 07, 2007, 07:34:49 PM »
Quote
Originally posted by The Fugitive
they use the transparencies to give the site that "glowing" look


My gunsight glows, and has a translucent reticule, while only using the base texture, no alpha map.  And the single texture is only the 2 colors of pure green and magenta, without any anti-aliasing between them.

Getting these effects out of a single texture appears to require that the gunsight texture be very small, and thus the reticule has to be pretty simple.  You also need to keep all reticule markings only 1 pixel wide.  You get these effects out of the game's inherent texture blurring and the stretching of the small texture over the larger gunsight area.

My gunsight is 32x32 and is all magenta except for 5 pure green pixels.  These are arranged with 1 in the center and the other 4 arranged in a cross around this, but separated from the center pixel by 1 magenta pixel.  Like this (only with more magenta going out to the 32x32 edges):

M.M.G.M.M
M.M.M.M.M
G.M.G.M.G
M.M.M.M.M
M.M.G.M.M

In the game, each green pixel appears as a translucent, glowing diamond.  The whole reticule is stretched out to a decent size--you can see it on the tail turret of the B24 in my avatar pic to the left.