Gamestudio Links
Zorro Links
Newest Posts
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
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 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
Transparency on FFP texture projection[Solved] #317383
03/31/10 07:41
03/31/10 07:41
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline OP
Senior Member
bart_the_13th  Offline OP
Senior Member
B

Joined: Aug 2008
Posts: 482
This on is from Xd1v0. But I think that it doesnt support alpha transparency. What should I change to make it support transparencies?
Adding alphablendenable=true only make the whole model transparent, and alphatestenable doesnt seem to work.
Code:
MATERIAL* mtl_pTex1 = {effect = "
float4x4 matEffect1;

texture mtlSkin1;
texture entSkin1;
technique proj_tex
{
	pass p0
	{
		
		Texture[0] = <entSkin1>;
		Texture[1] = <mtlSkin1>; // projected
		
		ColorArg1[0] = Texture;
		ResultArg[0] = Temp;
		
		ColorArg2[1] = Texture;
		ColorArg1[1] = Diffuse;
		ColorOp[1] = AddSigned2x;
		
		ColorArg1[2] = Current;
		ColorArg2[2] = Temp;
		ColorOp[2] = Modulate;
		
		
		TexCoordIndex[0] = 1;
		AddressU[1] = BORDER;
		AddressV[1] = BORDER;
		BorderColor[1] = 0x000000;  
		
		texcoordindex[1] = cameraspaceposition ; 
		TextureTransformFlags[1] = count3 | projected;
		TextureTransform[1] = <matEffect1>;
		
	}
}";



Last edited by bart_the_13th; 04/04/10 03:46.
Re: Transparency on FFP texture projection [Re: bart_the_13th] #317985
04/04/10 03:44
04/04/10 03:44
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline OP
Senior Member
bart_the_13th  Offline OP
Senior Member
B

Joined: Aug 2008
Posts: 482
Aw, forget it...
Ive solved this already grin


Moderated by  Blink, Hummel, Superku 

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