Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by AndrewAMD. 12/05/23 10:56
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 622 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Problem in shaders #87648
08/27/06 08:55
08/27/06 08:55
Joined: Oct 2005
Posts: 13
M
matt94 Offline OP
Newbie
matt94  Offline OP
Newbie
M

Joined: Oct 2005
Posts: 13
hello ,
I have a problem with effects , for exemple , when i wanna run my game (with a cellshading's script), I can read this message :
_______________________________________________________________________________

Mouse found
C-media Wave Device opened for 3d soud
NVIDIA Geforce 6600 T&L device 7f9 detected
Compiling TOON_SCRIPT.WDL - [Esc] to abort...
<vertexShaderConstant[16]=0.3;>
TOON_SCRIPT.WDL 3:0 Error(29): Keyword unknown vertexShaderConstant
.
<effect="

matrix matWorldViewProj;

matrix matWorld;vector vecSunDir;

tex>
TOON_SCRIPT.WDL 78:0 Error(0): Keyword unknown mtl_toon effect

Error in script

2926032 KB free - engine shutdown

_______________________________________________________________________________

and my cellshading's script is this :

_______________________________________________________________________________


vertexShaderConstant[16]=0.3;

bmap bmp_toonlookup=<toon.bmp>;

material mtl_toon
{
skin1=bmp_toonlookup;
effect =
"
matrix matWorldViewProj;
matrix matWorld;vector vecSunDir;
texture entSkin1;texture mtlSkin1;
technique t0{
pass p0 // shade it
{
zwriteenable= true;
zenable = true;
Texture[0]=<mtlSkin1>;
ColorOp[0]=Modulate;
ColorArg1[0]=Texture;
ColorArg2[0]=Texture;
AddressU[0]=Clamp;
AddressV[0]=Clamp;
AddressW[0]=Clamp;
TexCoordIndex[0]=0;
Texture[1]=<entSkin1>;
ColorOp[1]=Modulate;
ColorArg1[1]=Texture;
ColorArg2[1]=Current;
TexCoordIndex[1]=1;
VertexShaderConstant[0] = <matWorldViewProj>;
VertexShaderConstant[4] = <matWorld>;
VertexShaderConstant[7] = <vecSunDir>;

VertexShader = asm
{
vs_1_0
dcl_position v0
dcl_normal v3
dcl_texcoord0 v7
dcl_texcoord1 v8
mov oT2.xy, v7
dp4 oPos.x, c0, v0
dp4 oPos.y, c1, v0
dp4 oPos.z, c2, v0
dp4 oPos.w, c3, v0
dp3 r0.x, c4.xyz, v3.xyz
dp3 r0.y, c5.xyz, v3.xyz
dp3 r0.z, c6.xyz, v3.xyz
dp3 oT0.x, r0.xyz, -c7.xyz
mov oT1.xyz, v8
};
}
pass p1 // ink it
{
CULLMODE=CW;
vertexShaderConstant[0]=<matWorldViewProj>;
vertexShaderConstant[16]=0.3; // outline thickness
vertexShader = asm
{
vs_1_0
dcl_position v0
dcl_normal v3
dcl_texcoord v7
mov r0,v0
mul r1,c16.x,v3
// Scale the normal
add r0.xyz,r0.xyz,r1.xyz
m4x4 oPos,r0,c0
// Transorm position to clip space
mov oD0, c0
mov r0,c0
};
}
}
";
}
action toon
{
my.material=mtl_toon;
}

function main()
{
level_load("toon.wmb");
}

_______________________________________________________________________________

Where is the problem ???
please help me
THANK

Re: Problem in shaders *DELETED* [Re: matt94] #87649
08/27/06 09:44
08/27/06 09:44
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline
User
sheefo  Offline
User

Joined: Jul 2006
Posts: 783
London, UK
Post deleted by sheefo

Last edited by sheefo; 08/27/06 09:47.
Re: Problem in shaders [Re: sheefo] #87650
08/27/06 09:46
08/27/06 09:46
Joined: Oct 2005
Posts: 13
M
matt94 Offline OP
Newbie
matt94  Offline OP
Newbie
M

Joined: Oct 2005
Posts: 13
it's 3d game studio pro 6.11.4

Re: Problem in shaders [Re: matt94] #87651
08/27/06 09:47
08/27/06 09:47
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline
User
sheefo  Offline
User

Joined: Jul 2006
Posts: 783
London, UK
Oh, heres the problem:
Code:

vertexShaderConstant[16]=0.3;
bmap bmp_toonlookup=<toon.bmp>;
material mtl_toon
{
...



EDIT: 6.11.4 is old, does it even support shaders?

Re: Problem in shaders [Re: sheefo] #87652
08/27/06 09:52
08/27/06 09:52
Joined: Oct 2005
Posts: 13
M
matt94 Offline OP
Newbie
matt94  Offline OP
Newbie
M

Joined: Oct 2005
Posts: 13
May be , but I can't download 6.40 because i don't know what is the password for download

Re: Problem in shaders [Re: matt94] #87653
08/27/06 09:56
08/27/06 09:56
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline
User
sheefo  Offline
User

Joined: Jul 2006
Posts: 783
London, UK
Did you buy 3D GameStudio...?

Re: Problem in shaders [Re: sheefo] #87654
08/27/06 10:02
08/27/06 10:02
Joined: Oct 2005
Posts: 13
M
matt94 Offline OP
Newbie
matt94  Offline OP
Newbie
M

Joined: Oct 2005
Posts: 13
Yes but it was the standard version , and in internet (in msn ) , a person says me he buys a professional version and he send me this version , but 3d game studio is not install in this computer , he is in another computer who haven't got internet (excuse me for the language but i don't speak english)

Re: Problem in shaders [Re: sheefo] #87655
08/27/06 10:09
08/27/06 10:09
Joined: Oct 2005
Posts: 13
M
matt94 Offline OP
Newbie
matt94  Offline OP
Newbie
M

Joined: Oct 2005
Posts: 13
Why ???

Re: Problem in shaders [Re: matt94] #87656
08/27/06 10:14
08/27/06 10:14
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline
User
sheefo  Offline
User

Joined: Jul 2006
Posts: 783
London, UK
I don't think shaders work on your version and also if you paid for 3D GameStudio you get a password.

Re: Problem in shaders [Re: sheefo] #87657
08/27/06 10:22
08/27/06 10:22
Joined: Oct 2005
Posts: 13
M
matt94 Offline OP
Newbie
matt94  Offline OP
Newbie
M

Joined: Oct 2005
Posts: 13
Ok , I found the password in 3d game studio file , thank you

Page 1 of 2 1 2

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