Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 7th_zorro), 1,285 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Alpha On Character Hair #109242
01/26/07 02:49
01/26/07 02:49
Joined: Jun 2004
Posts: 23
Aphius_Diamoue Offline OP
Newbie
Aphius_Diamoue  Offline OP
Newbie

Joined: Jun 2004
Posts: 23
Hey guys,

I'm doing a character model at the moment that requires the use of alpha channels on the hair and a couple of other things, but the hair is causing me problems.

Here's an image,


The problem is that on the edges around the visible parts it make the face behind it invisible too so I can see through the back of the head or to the ear on the other side.

I just wanted to ask if there's a way to make it so that just the face with the Alpha channel is transparent so that I don't see through the model, just the skin or whatever is on the other side.

This is the code I'm using at the moment,


Code:
material right_alpha_mat
{
effect =
"
technique right_alpha1
{
pass p0 {zWriteEnable=true; alphaTestEnable=true;}
}
";
}

action alpha_fix
{
my.material = right_alpha_mat;
}



I'm using Pro 6.22 and the model is using 32bit TGA for a skin.
curious as to whether it's a skinning/Alpha on the skin problem, or the code I'm using.

Any help is appreciated.

~Aphius


Re: Alpha On Character Hair [Re: Aphius_Diamoue] #109243
01/26/07 09:30
01/26/07 09:30
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline
User
demiGod  Offline
User

Joined: Mar 2006
Posts: 752
Portugal
Or the problem is the outdated version you are using. A6.22 its an older version, if you update your engine you will have much more possibilities to solve the problem you mentioned.

Re: Alpha On Character Hair [Re: demiGod] #109244
01/26/07 10:31
01/26/07 10:31
Joined: May 2004
Posts: 164
Germany
D
DARKLORD Offline
Member
DARKLORD  Offline
Member
D

Joined: May 2004
Posts: 164
Germany
Update to the newest version and use this code from the wiki.

Re: Alpha On Character Hair [Re: DARKLORD] #109245
01/26/07 16:15
01/26/07 16:15
Joined: Jun 2004
Posts: 23
Aphius_Diamoue Offline OP
Newbie
Aphius_Diamoue  Offline OP
Newbie

Joined: Jun 2004
Posts: 23
Thanks for the tips guys, I'll give it a whirl.

Re: Alpha On Character Hair [Re: Aphius_Diamoue] #109246
01/26/07 16:54
01/26/07 16:54
Joined: Sep 2003
Posts: 648
Switzerland
snake67 Offline
User
snake67  Offline
User

Joined: Sep 2003
Posts: 648
Switzerland
With the newest version you can combine transparent groups with non transparent. The transparent group is mapped on a texture with an alpha channel.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1