Jump to content

Home

Light Beam


PuDDu

Recommended Posts

Well, over the last two days I've completed reading the shaders manual... It is my understanding to have a texture with transparencies, as you are trying to do with the beam effect, you need to use an alpha channel to define which parts are faded out and which parts you see. JPG's are not able to have alpha channel. I believe this may be where you problem lies. You need to save it as a 32bit TGA with an alpha channel. Hope this helps.

Link to comment
Share on other sites

No, jpegs can be used for beams. The only time you need an alpha channel is when you are overlaying two textures, one needs to know which parts need masking.

 

With the .jpg over .tga thing - when pointing to a file, the engine will always search for a .tga first, and if it can't find one, it will look for a .jpg. If you place a file attribute on the end of the file name it will look for:

 

/textures/yourtextures/texture.jpg.tga

/textures/yourtextures/texture.jpg.jpg

 

So unless your file name is infact 'texture.jpg' it will not find it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...