Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 755 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 5 of 5 1 2 3 4 5
Re: Ati's Fur Shader!! [Re: Drew] #22817
02/07/04 15:28
02/07/04 15:28
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag


Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: Ati's Fur Shader!! [Re: Drew] #22818
12/13/04 00:08
12/13/04 00:08
Joined: Jun 2004
Posts: 27
Coronis_Eposivia Offline
Newbie
Coronis_Eposivia  Offline
Newbie

Joined: Jun 2004
Posts: 27
are shaders workin with a geforce4 mx 4000? because non of the shaders are working??

Last edited by Coronis_Eposivia; 12/13/04 02:47.

::+:: No longer standing in the tragedy of people, no longer standing on this world ::+::
Re: Ati's Fur Shader!! [Re: Coronis_Eposivia] #22819
12/13/04 00:26
12/13/04 00:26
Joined: Jul 2003
Posts: 1,563
B
blaaaaa Offline
Expert
blaaaaa  Offline
Expert
B

Joined: Jul 2003
Posts: 1,563
no they are not

Re: Ati's Fur Shader!! [Re: blaaaaa] #22820
12/13/04 02:47
12/13/04 02:47
Joined: Jun 2004
Posts: 27
Coronis_Eposivia Offline
Newbie
Coronis_Eposivia  Offline
Newbie

Joined: Jun 2004
Posts: 27
srry I ment geforce 4..


::+:: No longer standing in the tragedy of people, no longer standing on this world ::+::
Re: Ati's Fur Shader!! [Re: Coronis_Eposivia] #22821
12/13/04 03:54
12/13/04 03:54
Joined: Oct 2003
Posts: 151
Watseka, Illinois
M3PHiSTOPH3L3S Offline OP
Member
M3PHiSTOPH3L3S  Offline OP
Member

Joined: Oct 2003
Posts: 151
Watseka, Illinois
I have a geForceFX, but as far as I know GF4 support shaders also. I'm not sure of what versions it supports however. I think the problem you are experiencing is that you are using the Directx 8 version of these shaders. As of version 6.31 we now have a directx 9c interface in A6, and the shader needs to be setup slightly different. There is info on this in the update readme. Hope that helps, if not, I dunno...

EDIT:
occording to the wiki, the GF4MX does not support shaders. Only the GO and TI models support them, and even with those cards you can only use vs1.1 and ps1.3. Funny, I thought all GF4 supported shaders.



M3PHiSTO

Last edited by M3PHiSTOPH3L3S; 12/13/04 04:27.
Re: Ati's Fur Shader!! [Re: M3PHiSTOPH3L3S] #22822
02/09/05 08:47
02/09/05 08:47
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Can we get this shader caught up to dx9 and 63.14?
Im sure allot fo us could use it, and sorry I dont have the know-how to do it myself...

thanks in advance!!!!!
Drew


Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: Ati's Fur Shader!! [Re: M3PHiSTOPH3L3S] #22823
12/02/05 19:38
12/02/05 19:38
Joined: Jun 2005
Posts: 20
H
htwarrior Offline
Newbie
htwarrior  Offline
Newbie
H

Joined: Jun 2005
Posts: 20
Hi, I tried to use your shader but a message appears:

Malfunction W1550

Error in effect

mat_fur(16): error x3000: syntax error: unexpected token 'f'


My vertex shader is 2.0 and my pixel Shader is 2.0

I would like to try it.

HtWarrior

Re: Ati's Fur Shader!! [Re: fuxerz] #22824
01/23/06 07:22
01/23/06 07:22
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline
Senior Member
oldschoolj  Offline
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
I mus tbe doing something wrong, cuz everytime i try to run it I get an error message: Flag unknown tangent

< effect "

matrix matWorldViewProj;
matrix matWorld;
matrix matWorldV>

Keyword unkown Mat_Fur effect

Anyone have suggestions?


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: Ati's Fur Shader!! [Re: oldschoolj] #22825
01/23/06 17:49
01/23/06 17:49
Joined: Mar 2002
Posts: 221
USA
zefor Offline
Member
zefor  Offline
Member

Joined: Mar 2002
Posts: 221
USA
Give this a try all.
NOTE: If you want better looking fur, change this line
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
to
VertexShaderConstant[4]={0.76f,0.76f,0.76f,0.76f};
There are 14 of these lines to change. In my opinion, it looks alot more like the fur shown in rendermonkey. I will post the "changed" code in the shader index. Remember to put a check in the "nofog" box of your model or it will be black.

Code:

material mat_fur
{
flags = tangent;

effect
"
matrix matWorldViewProj;
matrix matWorld;
matrix matWorldView;

texture entSkin1;

technique fur
{
pass p0
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={1.0f,1.0f,1.0f,1.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};
pixelshader=
asm
{
ps.1.4

texld r0, t0 // base map

mul r0, r0, c0
};
}
pass p1
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={2.0f,2.0f,2.0f,2.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};

}
pass p2
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={3.0f,3.0f,3.0f,3.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};
}
pass p3
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={4.0f,4.0f,4.0f,4.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};
}

pass p4
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={5.0f,5.0f,5.0f,5.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};
}
pass p5
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={6.0f,6.0f,6.0f,6.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};
}
pass p6
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={7.0f,7.0f,7.0f,7.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};
}
pass p7
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={8.0f,8.0f,8.0f,8.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};
}
pass p8
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={9.0f,9.0f,9.0f,9.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};
}
pass p9
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={10.0f,10.0f,10.0f,10.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};
}
pass p10
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={11.0f,11.0f,11.0f,11.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};
}
pass p11
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={12.0f,12.0f,12.0f,12.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};
}
pass p12
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={13.0f,13.0f,13.0f,13.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};
}
pass p13
{
Texture[0] = <entSkin1>;

VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]={0.24f,0.24f,0.24f,0.24f};
VertexShaderConstant[5]={14.0f,14.0f,14.0f,14.0f};

PixelShaderConstant[0]={0.628f,0.373f,0.121f,0.424f};

VertexShader =
asm{

vs.1.1

dcl_position v0
dcl_normal v1
dcl_texcoord v2
// get model space vertex
mov r0, v0

// get shell distance
mov r1, c4

// offset shell in direction of normal
mul r1.x, r1.x, c5.x
mul r1.xyz, r1.xxx, v1.xyz
add r0.xyz, r0.xyz, r1.xyz

// output transformed vertex
m4x4 oPos, r0, c0

// output texture coordinates
mov oT0, v2
};
}
}
";
}

ACTION atifur
{
my.material=mat_fur;
}



Last edited by zefor; 01/23/06 21:23.
Re: Ati's Fur Shader!! [Re: M3PHiSTOPH3L3S] #22826
01/31/06 00:25
01/31/06 00:25
Joined: Jul 2005
Posts: 109
Cyrpus
Aram Offline
Member
Aram  Offline
Member

Joined: Jul 2005
Posts: 109
Cyrpus
My latop is GeForce 4 GO MX 440 and I already sent the post to graphic card info post which shows it does not have pixel or vertex shader at all!


GeForce 7800 GT (256 MB DDR3) 3DGS A6 Commercial. DJ Aram
Page 5 of 5 1 2 3 4 5

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