Sign in to follow this  
riuthamus

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

Recommended Posts

riuthamus    8365

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

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
riuthamus    8365

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]http://www.youtube.com/watch?v=e3f5SDmlrKE&feature=youtu.be[/media]

Edited by riuthamus

Share this post


Link to post
Share on other sites
riuthamus    8365

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this