Gamestudio Links
Zorro Links
Newest Posts
MRC.c and WFO
by 11honza11. 11/18/25 15:22
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, 1 invisible), 16,939 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 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