Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
mein shader geht nicht! #21830
01/07/04 00:02
01/07/04 00:02
Joined: Mar 2003
Posts: 569
FRAJO Offline OP
User
FRAJO  Offline OP
User

Joined: Mar 2003
Posts: 569
mein shader geht nicht! ich weiß nicht warum, denn ich hab nicht viel erfahrung damit. hier mein code:
Code:
 material shadertest {



effect="

texture mtlSkin1;
matrix matworldviewproj;
matrix matview;
matrix matworld;
vector vecsundir;

techinque toon
{
pass P0
{

texture[0]=<mtlskin1>;

vertexshaderconstant[0]=<matworldviewproj>;
vertexshaderconstant[5]=<matview>;
vertexshaderconstant[10]=<matworld>;
vertexshaderconstant[15]=<vecsundir>;

vertexshader=
decl
{
stream 0;

float v0[3];
float v3[3];
float v7[3];


}
asm
{
vs.1.0
dp4 oPos.x,v0,c0.x
dp4 oPos.y,v0,c0.y
dp4 oPos.z,v0,c0.z
dp4 oPos.w,v0,c0.w

dp3 r0.x,v3,c10.x
dp3 r0.y,v3,c10.y
dp3 r0.z,v3,c10.z

dp3 r0.w,r0,r0
rsq r0.w,r0.w
mul r0,r0,r0.w

dp4 r1.x,v0,c10.x
dp4 r1.y,v0,c10.y
dp4 r1.z,v0,c10.z
dp4 r1.w,v0,c10.w

add r2,c15,-r1

dp3 r2.w,r2,r2
rsq r2.w,r2.w
mul r2,r2,r2.w

dp3 oT1.x,r0,r2

dp3 oT0.x,r0,c15

};
}
}


";
}



MfG FraJo


------------------------------------------- ICQ: 242543712 Ich bin nicht hier und bin nicht da. Wo bin ich dann? ".." ("") ^ ^ This is the evil vampire bunny. Copy and paste him into your signiture to help him achieve world domination. Yeah
Re: mein shader geht nicht! [Re: FRAJO] #21831
01/29/04 21:54
01/29/04 21:54
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline
Senior Developer
Thomas_Nitschke  Offline
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Hi,
also zunächst mal: Ich hab auch keine große Ahnung davon ^^
Aber wars nicht so, dass man am Ende einen leeren fallback benutzen soll?
Nur aufgeschnappt, aber könnt ja sein


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: mein shader geht nicht! [Re: Thomas_Nitschke] #21832
02/01/04 04:03
02/01/04 04:03
Joined: Mar 2003
Posts: 569
FRAJO Offline OP
User
FRAJO  Offline OP
User

Joined: Mar 2003
Posts: 569
das mit dem fallback muss nicht sein(sollte aber). mitlerweile kommt keine fehlöermeldung mehr, aber der shader funktioniert nicht richtig.


------------------------------------------- ICQ: 242543712 Ich bin nicht hier und bin nicht da. Wo bin ich dann? ".." ("") ^ ^ This is the evil vampire bunny. Copy and paste him into your signiture to help him achieve world domination. Yeah

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