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, Grant, Neb), 908 guests, and 6 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
Compiling Shader for 3dgs #31138
07/25/04 19:50
07/25/04 19:50
Joined: Aug 2002
Posts: 375
Germany
Salva Offline OP
Senior Member
Salva  Offline OP
Senior Member

Joined: Aug 2002
Posts: 375
Germany
Hi To all.


I have found some tutorial for vertex and pixel shader in Italian (1.1 -1.4)
I wanted to ask which program is used for compile the shader for
3dgs. Thank you.


Greet

salva

Re: Compiling Shader for 3dgs [Re: Salva] #31139
07/27/04 09:31
07/27/04 09:31
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
The Shader is compiled by DirectX / GameStudio when the material gets initialized. Look at the examples and see how there is an "effect" line which includes the shader code.

Re: Compiling Shader for 3dgs [Re: Marco_Grubert] #31140
07/27/04 19:14
07/27/04 19:14
Joined: Aug 2002
Posts: 375
Germany
Salva Offline OP
Senior Member
Salva  Offline OP
Senior Member

Joined: Aug 2002
Posts: 375
Germany
Hi.

Thank you for the answer Marco,

I understand, But if I use a standard shader, for example this:

vs.1.0

dp4 oPos.x,v0,c0

dp4 oPos.y,v0,c1

dp4 oPos.z,v0,c2

dp4 oPos.w,v0,c3

mov oD0,c4

WORLD –VIEW-PROJ = a1,a2,a3,a4

a5,a6,a7,a8

a9,a10,a11,a12

a13,a14,a15,a16



c0=a1 – a2 – a3 – a4

c1=a5- a6 – a7 – a8

c2=a9 – a10 – a11

c3=a13 - a14 – a15 – a16



Greet.

Salva



How does 3DGS to know it?


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