Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, rki), 395 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Modelle, die sich überscheiden.... #220895
08/10/08 17:00
08/10/08 17:00
Joined: Jan 2004
Posts: 60
D
Deha Offline OP
Junior Member
Deha  Offline OP
Junior Member
D

Joined: Jan 2004
Posts: 60
Hi!
Also ich habe folgendes Problem...
Ich habe ein Modell, das ein wenig in ein anderes Modell hineinragt...dummerweise sieht man bei dieser Überschneidung auch das hintere Modell(also das,welches das andere Modell schneidet)
Gibt es eine Möglichkeit im WED oder so einem Modell eine Priorität zuzuweisen,sodass nur das vordere Modell zu sehen ist?

Danke im voraus!;-)

http://img392.imageshack.us/img392/6606/portaya5.jpg

Last edited by Deha; 08/10/08 17:20.
Re: Modelle, die sich überscheiden.... [Re: Deha] #221038
08/11/08 19:05
08/11/08 19:05
Joined: Oct 2005
Posts: 612
Inari Offline
User
Inari  Offline
User

Joined: Oct 2005
Posts: 612
ich nehme mal an die Texturen für deinen Skin habe die Endung *.tga
dann liegt es daran dass das ältere Modell durch das jüngere durchscheint,
oder andersrum

verleih mal deinen Modellen dieses Script,
dann sollte es funzen grin
Code:

function mtl_vegetation_init
{
	vec_set(mtl.emissive_blue,mat_model.emissive_blue);
	vec_set(mtl.ambient_blue,mat_model.ambient_blue);
	vec_set(mtl.diffuse_blue,mat_model.diffuse_blue);
	vec_set(mtl.specular_blue,mat_model.specular_blue);
	mtl.power=mat_model.power;
	mtl.albedo=mat_model.albedo;
	mtl.skill1=pixel_for_vec(vector(128,0,0),0,8888); // the first value in the vector is the threshold
}

material mtl_vegetation
{
	event=mtl_vegetation_init;
	effect=
	"
	texture entSkin1;
	dword mtlSkill1;

	technique vegetation
	{
		pass p0
		{
			Texture[0]=<entSkin1>;
			ZWriteEnable=True;
			AlphaBlendEnable=False;
			AlphaTestEnable=True;
			AlphaRef=<mtlSkill1>;
			AlphaFunc=Greater;
			CullMode=CCW; // CCW or None

			ColorArg1[0]=Texture;
			ColorOp[0]=Modulate2X;
			ColorArg2[0]=Diffuse;
		}
	}
	technique fallback{pass p0{}}
	";
}

action vegetation
{
	my.transparent=off;
	my.flare=off;
	my.material=mtl_vegetation;
}



Re: Modelle, die sich überscheiden.... [Re: Inari] #221062
08/11/08 21:06
08/11/08 21:06
Joined: Jan 2004
Posts: 60
D
Deha Offline OP
Junior Member
Deha  Offline OP
Junior Member
D

Joined: Jan 2004
Posts: 60
Ja vielen Dank, hat funktioniert!^^


Moderated by  HeelX, rvL_eXile 

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