Author Topic: Texture transparency.  (Read 521 times)

Offline TexMurphy

  • Silver Member
  • ****
  • Posts: 1488
Texture transparency.
« on: February 04, 2005, 03:23:07 PM »
How does this work?

Is the color 255, 0, 255 always transparent?

If I understand it correctly the BMP format does not store info on transparency.

An explanation on how I create transparency would be very nice.

Tex.

Offline soda72

  • Platinum Member
  • ******
  • Posts: 5201
Texture transparency.
« Reply #1 on: February 04, 2005, 08:35:29 PM »
Ditto,


I exported the lafld0g shape which seems to do this and it exported a bmp file called AFGRASS5_a.bmp but when you load in the ac file it doesn't make any reference to this bmp file only AFGRASS5.bmp..

Offline soda72

  • Platinum Member
  • ******
  • Posts: 5201
Texture transparency.
« Reply #2 on: February 04, 2005, 10:31:21 PM »
Just a thought,  but if I create a bitmap for my object then create another one named similar but appended with a "_a.bmp" is the converter smart enough to know that a file named as _a.bmp is the transparency bmp?

Ill try it out..



edit:
Darn it didn't create a _a.htx file :(  I guess that's not the correct way to do it..

2edit...
ok that does work, it just dosen't create a htx file for the transparency bmp.... coool
« Last Edit: February 04, 2005, 11:43:40 PM by soda72 »

Offline TexMurphy

  • Silver Member
  • ****
  • Posts: 1488
Texture transparency.
« Reply #3 on: February 05, 2005, 06:36:22 AM »
Quote
Originally posted by soda72
Just a thought,  but if I create a bitmap for my object then create another one named similar but appended with a "_a.bmp" is the converter smart enough to know that a file named as _a.bmp is the transparency bmp?

Ill try it out..



edit:
Darn it didn't create a _a.htx file :(  I guess that's not the correct way to do it..

2edit...
ok that does work, it just dosen't create a htx file for the transparency bmp.... coool


Could you please post the two bmps?

so I see what you mean...

Tex

Offline soda72

  • Platinum Member
  • ******
  • Posts: 5201
Texture transparency.
« Reply #4 on: February 05, 2005, 09:50:44 AM »
Below is a texture that I attached to a Rect object made in AC3d
called testtran.bmp:


I then created another another bmp for the transparency
called testtran_a.bmp


This file is not referenced in anyway to the ac file created in AC3d I just made it the same size and made sure the name is the same but with the _a added to the end of the file name.  Both images are an 8 bit bmp(256 color)..
Black (0,0,0) is tranparent, white(255,255,255) shows the texture map..  shades of gray in between the two seems to affect the level of transparency

This is what it looks like in the object editor


another one...
« Last Edit: February 05, 2005, 10:04:08 AM by soda72 »

Offline hitech

  • Administrator
  • Administrator
  • *****
  • Posts: 12384
      • http://www.hitechcreations.com
Texture transparency.
« Reply #5 on: February 05, 2005, 09:59:30 AM »
You can also have a transparent index file.

HiTech

Offline TexMurphy

  • Silver Member
  • ****
  • Posts: 1488
Texture transparency.
« Reply #6 on: February 05, 2005, 12:17:10 PM »
Cool that worked!!!

Thanks.
Tex