transparent texture

Pollux568Pollux568 Join Date: 2004-01-07 Member: 25122Members
Hello,

I have not understood how to put some transparency on texture, like a glass or windows. Can you explain to me how to do this basic function ?

Thanks a lot !

Comments

  • ZurikiZuriki Join Date: 2010-11-20 Member: 75105Members
    Geometry doesn't support transparent materials, you need a model and an "emissive" type material.
  • SN.WolfSN.Wolf Join Date: 2010-03-29 Member: 71115Members
    <!--quoteo(post=1857823:date=Jul 3 2011, 07:17 PM:name=Zuriki)--><div class='quotetop'>QUOTE (Zuriki @ Jul 3 2011, 07:17 PM) <a href="index.php?act=findpost&pid=1857823"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Geometry doesn't support transparent materials, you need a model and an "emissive" type material.<!--QuoteEnd--></div><!--QuoteEEnd-->

    There are several Textures with transparencies already in the texture browser. A good many of them are labeled under "Docking" and "Glass".
  • ZurikiZuriki Join Date: 2010-11-20 Member: 75105Members
    You can get 1-bit alpha, but 8-bit alpha doesn't work on geometry in my experience.
  • Pollux568Pollux568 Join Date: 2004-01-07 Member: 25122Members
    Thank you for these answers !
  • TigTig Join Date: 2010-05-08 Member: 71674Members, Reinforced - Shadow, WC 2013 - Silver
    alpha is only obtainable as all or nothing via textures: put this in your .material file:

    <map type="opacity" value="materials/your folder/yourtexture_opac.dds" />

    that .dds file should simply be black and white where black is the transparent part of your texture.

    you can get percentage based transparency through the illumination or glow:

    <map type="emissive" value="materials/your folder/yourtexture_illum.dds" />

    just throw a single color over a black background and make that single color layer's transparency whatever you want. then take out all the other parts of your material file so that only the emissive is present and you will have a translucent texture.

    hope that helps.
Sign In or Register to comment.