Setting texture opacity

Started by fintroll, September 14, 2011, 07:53:45 PM

Previous topic - Next topic

fintroll

Good time of day, everybody.
tell me please how to extract texture, using opacity map(texture with alpha-mask) like on picture(3ds max example)?

[attachment deleted by admin]

EgonOlsen


fintroll

#2
question:
What I need if i want replace black fields on texture to transparency.

EgonOlsen

I see...you can either rely on the auto-conversion that jPCT does by default for black parts of textures or use your favourite image editing program to create an alpha channel for it and load it with new Texture(..., true).

fintroll

Just one layer(texture with alpha channel)? Don't need to create Alpha-channel texture(like heigth map) and combine layers with TextureInfo?

EgonOlsen

No. You simply add the alpha channel to the image and save it as png (because jpg doesn't support alpha).