Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/27/26 22:06
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (Martin_HH, Grant, Quad, AndrewAMD), 5,506 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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 | 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