View Full Version : texturing with transparency
03-04-2011, 04:54 AM
Whats the best way of texturing an a polygon whilst making certain sections of the textured polygon transparent.
Are the only two ways possible using a texture with an alpha channel or loading your rectangle texture and then making certain colours transparent.
Please can you recommend the fastest and easiest way
03-05-2011, 10:30 AM
The traditional way is to use a texture with an alpha channel.
Is there some concern you have regarding that approach?
03-05-2011, 11:08 AM
Using alpha channel you have no memory impact (the pixel are always stored aligned at 32 bit) the only overload is on the disk.
Is faster and hardware usually make optimization, you can also use advanced technique like alpha to coverage. Alpha can vary from 0 to 255 making the transition smooth.
Choosing one color to be transparent you have ma add instruction to your shader (slower) and can't make smooth transition.
I don't see any advantage using this technique.
03-06-2011, 08:45 AM
Using alpha channel you have no memory impact (the pixel are always stored aligned at 32 bit)
That depends on the texture formats you choose. You're probably just thinking about RGB8 vs. RGBA8.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.