Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Setting texture opacity
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Setting texture opacity (Read 3922 times)
fintroll
byte
Posts: 6
Setting texture opacity
«
on:
September 14, 2011, 07:53:45 pm »
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]
«
Last Edit: September 14, 2011, 07:57:24 pm by fintroll
»
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: Setting texture opacity
«
Reply #1 on:
September 14, 2011, 09:18:33 pm »
I...don't get the question!?
Logged
fintroll
byte
Posts: 6
Re: Setting texture opacity
«
Reply #2 on:
September 14, 2011, 10:33:30 pm »
question:
What I need if i want replace black fields on texture to transparency.
«
Last Edit: September 14, 2011, 10:35:32 pm by fintroll
»
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: Setting texture opacity
«
Reply #3 on:
September 14, 2011, 10:40:36 pm »
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).
Logged
fintroll
byte
Posts: 6
Re: Setting texture opacity
«
Reply #4 on:
September 15, 2011, 03:21:46 pm »
Just one layer(texture with alpha channel)? Don't need to create Alpha-channel texture(like heigth map) and combine layers with TextureInfo?
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: Setting texture opacity
«
Reply #5 on:
September 15, 2011, 08:49:49 pm »
No. You simply add the alpha channel to the image and save it as png (because jpg doesn't support alpha).
Logged
fintroll
byte
Posts: 6
Re: Setting texture opacity
«
Reply #6 on:
September 15, 2011, 10:43:16 pm »
Thanks.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Setting texture opacity