Getting transparency with png diffuse color picture
itsikw
Posts: 42
I have a png picture with transparent regions, and would like to paste it on a surface so that the transparent regions will appear also transparent in DS.
I know that this is normally done by extracting the picture mask and loading it to the surface opacity strength. Is there a shortcut for achieving this without using explicitly the mask?
Comments
No, not really.
The way the surfaces are set up makes it so you need to explicitly map out the transparent areas.
Try using Layered Image Editor. You can find that by right mouse click over the diffuse image in Surfaces tab. (or any image in the Surface tab)
Yes, I thought so. Would be cool to be able to choose png picture for a surface diffuse color and get the transparency directly from the alpha channel. Maybe somebody out there will write a script for that?
Yes, I thought so. Would be cool to be able to choose png picture for a surface diffuse color and get the transparency directly from the alpha channel. Maybe somebody out there will write a script for that?
More like rewrite the default surface sahder...
Yes, I guess so.
i use bitmap2material, my workflow. load your texture you whant to edit in photoshop an make regions transparant. save as png file and load this png in bitmap2material. make sure you select opacity map output in options.
export your map(s) and load the opacity map in cutout opacity map slot and your done
thread closed;)
All of that is completely unnecessary. If you save a png from PS or The Gimp with transparent areas, you simply load THAT into the cutout opacity slot. This works for me every time.
For those who don't know what it means to 'load that into the opacity slot', you simply go to cutout opacity, and click the down arrow. Then just browse to and select the image with transparent areas, precisely as you would select an image texture in the "Diffuse" slot.
Here's an additional trick -- make the garment (assuming it's a garment, but whatever it is) double layered in your mesh editor. Create a separate surface of the inner layer. Now you have two layers of opacity to mix and match whatever you want.