Jump to content
  • Advertisement
Sign in to follow this  
riuthamus

Transparent Textures ( what format to use? and how to save it out )

This topic is 2060 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So, we are trying to get the grass working again and in doing so have run into some issues.

 

RuinValor%202013-02-23%2005-52-15-38.png

 

This is done with a PNG file exported and no alpha associated with it at all. I know that is an issue so we have tried to use several different options and none of them seem to work. I have saved this out to be a TGA with an alpha channel and I have saved it as a DXT5, but none of them are working.

 

We are attempting to load the alpha's via premultiplied rednering. Is this the proper technique? Should we be doing something else? Is there a setup we need to use so our alpha's can load with these texture formats?

 

Furthermore, we read that premultiplied works with DXT4 and DXT2 but the photoshop plugin that lets me make DDS files does not have an option to export as DXT4 or DXT2, only 1, 3, or 5. Thanks for your help with this as this is a very annoying problem.

 

Note: I have tried to save this out using superPNG but when I do it removes the background and doesnt keep the alpha layer, even though i told it to do so....

Edited by riuthamus

Share this post


Link to post
Share on other sites
Advertisement

DXT2 and DXT4 are identical formats (except for the header) to their DXT1/5 counterparts, so save them out as DXT1/5. You need to set the alpha blend mode on the GPU to use premultiplied alpha though (on all platforms I have worked on, which doesn't include PC).

Share this post


Link to post
Share on other sites

I dont see that option in photoshop when saving out as a DDS. Is there a preset I need to load into it? or some options I need to modify?

 

[media]

[/media]

Edited by riuthamus

Share this post


Link to post
Share on other sites

Telanor, our shader guy, says that I am explaining it wrong. I have dispatched him to this post to express it further. I have done some searching and everything I find suggests that the issue should be the shader since photoshop already exports in the alpha mode suggested.

 

http://forum.unity3d.com/threads/18604-Alpha-Straight-vs-Premultiplied

 

but.... Telanor insists that I do not understand! So, I will have him explain this better. Thanks Para

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!