Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Martin_HH, TipmyPip), 1,279 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Shader examples will not run...... #38715
01/03/05 13:23
01/03/05 13:23
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
I am really very new to shaders, but I have managed to pull off a couple of effects with my card(GForce TI4200). I did not code any of them because I don't know how yet, but I just had a question about these samples from the NVidea site:
NVidea Shader Examples

I am loading the fx files for the GForce 3 examples only, but they have no effect on my sphere. In fact, so far every one I have tryed from the link for the gforce3 series, just make it invisible. Once I comment out the effect, I can see my sphere again, so I am sure it is the effect from the fx file.

I can apply the flicker_red effect from the manual and it works fine, just these seem to give me problems.

I have looked at the code, and I am guessing that some modifying will have to be done in order for 3dgs to use it, but I would like a confirmation on that just to be sure. Also would be kind of curious as to how much recoding would have to be done to use those effects.

So far I have tryed:
CookTorranceMultiTexFresnel.fx
goochy2D.fx
MrTwister.fx
MrWiggle.fx
msglow.fx
msmetallicflakes.fx
mswood.fx
HammerTime.fx
plasticD.fx
SimpleVPHLSL.fx
DiffuseBumpHLSL.fx
stencilVolume.fx


Would be cool if maybe these only needed some minor repairs to work, but any info would be great.

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: Shader examples will not run...... [Re: raiden] #38716
01/05/05 00:58
01/05/05 00:58
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
Do you mean in A6? First; update your drivers, and download the latest 3dgs version....
A lot of these shaders don't show in for example FX Composer, but don't give errors with my dad's Geforce FX 5200, though it doesn't support v.s.2.0... But unfortunately a lot of shaders acquire vertex shader (v.s.) /pixel shader (p.s.) 1.4 or higher.. Your card only supports up to v.s. 1.1 and p.s. 1.3, I believe, and there aren't much shaders around that will work with your card... But did you load the shader into a script action?

Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software
Re: Shader examples will not run...... [Re: PHeMoX] #38717
01/05/05 10:11
01/05/05 10:11
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
Yup I mean in A6. I have Pro 6.31 latest version. I have the latest drivers for my GForce TI 4200 and I do have Directx 9.0c version.

I downloaded the fx files from the site and used effect_load() to load the fx file against the material. I also made sure I applied that material to an entity in wed. Here is my code:
Code:

//effect string
string base_vert_light = <toon2.fx>;

material box_mat {
flags = tangent;
}

action rotate_me {
my.material = box_mat;
while(1) {
my.pan += time / 2;
wait(1);
}
}

function load_shaders() {
effect_load(box_mat,base_vert_light);
wait(5);
}



I call load_shaders from main() so the effect will get loaded.

I have no problem with this process using the shader example in the manual, so I think it may be the fx files from the site, but it would be great if some of the shader gurus would take a look at some of the fx files from the site and jus see if that is the problem and how difficult it would be to use them in 3DGS.

All of these fx files that I have tryed are for GForce3, so my hardware should have no problem that I can think of pulling off these shaders, unless a GForce3 can do a higher p.s. & v.s. versions than mine.

Thanks for any help.

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: Shader examples will not run...... [Re: raiden] #38718
01/11/05 10:05
01/11/05 10:05
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
(Bump)

Any Suggestions???

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: Shader examples will not run...... [Re: raiden] #38719
01/11/05 10:09
01/11/05 10:09
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
I've never seen an .fx work 'out of the box' , I believe they have to be converted to A6 compatible code...Matt and steempipe are the guys to ask i bet...

Re: Shader examples will not run...... [Re: Drew] #38720
01/11/05 13:34
01/11/05 13:34
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
Thanks Drew, I'll cross reference the code some more with some c-script shader scripts I currently have, then point out some direct difference to either of them, to see whats up.

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: Shader examples will not run...... [Re: raiden] #38721
01/12/05 04:37
01/12/05 04:37
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
Indeed I noticed that quite some shader codes need to be adjusted somewhat, even the HLSL code from the microsoft pages...


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software

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