Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, AndrewAMD), 14,749 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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