Wall Worm Forums

Design Tools => Materials and Textures => Topic started by: splutterfesk on June 24, 2015, 01:12:11 PM

Title: Can't export opacity map
Post by: splutterfesk on June 24, 2015, 01:12:11 PM
Hi,

So far I have been able to export normal Diffuse maps and bump map, but not Opacity map, the option does not show when exporting VTFs. Is it possible to export opacity maps this way or do I need to do it with another method?

Screenshots:

(https://cdn.pbrd.co/images/1sWJUIYg.jpg)

Exporting - no option for opacity map

(https://cdn.pbrd.co/images/1sWOPUbN.jpg)

PS. Thank you very much for the tools, it has made map making and modelling really fun!  :)
Title: Re: Can't export opacity map
Post by: wallworm on June 24, 2015, 01:44:31 PM
Thank you for the great comment. When I started WW I got that a lot and it really motivated me... but anymore it's old news for most people... so those comments really help me.

In terms of opacity:

Source does not use a separate bitmap for alpha. Instead, it uses the alpha channel of a bitmap.

So make sure that your diffuse bitmap has an alpha channel. Then, pipe the same bitmap texture into both the Diffuse AND the Opacity. In the bitmap settings, make sure to set Mono Channel Output as Alpha and the Alpha Source to Image Alpha.

(https://www.wallworm.net/proxy.php?request=http%3A%2F%2Fdev.wallworm.com%2Fmedia%2F1%2Fimage%2Fpng%2Foriginal%2F142_alpha_setup.png&hash=f38737ec3fd551073e2af3db331aaaba0791cde9)
Title: Re: Can't export opacity map
Post by: wallworm on June 24, 2015, 01:52:33 PM
Well as it turns out, the VMT exporter has a bug and is not adding the command for the alpha. Let me find where that got removed and load a fix shortly.
Title: Re: Can't export opacity map
Post by: wallworm on June 24, 2015, 02:33:26 PM
If you are having a problem getting the opacity with the instructions above, please download the latest version of WW that I just loaded. This fixes a bug with exporting VMT translucency (the bug may have only been affecting WW Pro).
Title: Re: Can't export opacity map
Post by: splutterfesk on June 24, 2015, 03:20:52 PM
I tried first your instructions and it did not work. Then I installed your update, and together with your instructions it worked! I do not have ww pro so my guess is that the bug was also affecting normal ww.

Thank you very much for your help!
Title: Re: Can't export opacity map
Post by: wallworm on June 24, 2015, 05:12:43 PM
Glad it worked. This bug must have crept in while I was transitioning the code for WW Pro support and I just didn't notice it. It was probably broken since February. Oh well.