Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Any good resources for free fx shaders?

Author
Message
Zeal
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: Colorado Springs, CO
Posted: 1st Aug 2004 10:30 Edited at: 1st Aug 2004 10:37
Im looking for some good shaders (water mainly) that I might be able to grab off the net. Im still a tad too new with shaders to write a good one myself, so im hoping if I can see what others have written it may help me learn a little faster. If anyone has any good water shaders let me know. By the way, my card only supports profiles 1.0 (at least im pretty sure, its a Geforce 4 TI 4200).

*edit Ah yes now I remember what I wanted to ask. If anyone has played Baldurs Gate Dark Alliance 1/2, D&D Heros, or Champions of Norath, I was wondering if you had ANY idea how they did the water effect. It seems odd that all these games (developed by different companies) all used the same water effect (well it looked the same in each game). It would lead me to believe perhaps its not that complex of an effect? Perhaps even open source?

All you need is zeal
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 1st Aug 2004 10:48
Quote: "Baldurs Gate Dark Alliance 1"

Have it for the Gamecube... nice, but not exactly graphically pushing the bounderies.

The water is extremely simple and hell you don't even need shaders for it... the Water is a simple Sin Peturb, there are some examples around the forum of doing this with matrices; DB Std actually had one showing normalisation which you could borrow.
If you apply the technique to a memblock mesh (Kevil made the dba for this) ... then apply a reflection shader to it.

Hey presto any card capable of 24bit stencil and you'll get very similar water.
For when the player is in there again search the forum as there is a player who converted his Blitz wave/ripple demo into dbp, which contains info on how to manipulate waves on collision

Zeal
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: Colorado Springs, CO
Posted: 1st Aug 2004 12:03 Edited at: 1st Aug 2004 12:18
I think I know how to manipulate the vertices to get the waves, its the texture itself that confuses me. How could I do something like that without a shader? I cant imagine dbpro doing water like that with just memblocks. Seems like it would be WAY too slow. And what exactly does the reflection shader do? Besides reflect...?

*Edit Yeah the examples here on the forums (kevils and one other guys) are Wayyyy to slow to be used in a game it seems. I was getting like 30fps. But they did look good... I know the water in baldurs wasnt pushing the limits, but I still thouht it looked great. Id kill for a shader like that in my game.

So water aside, anyone know of any places where I could get my hands on some simple (and complex) shaders open source?

All you need is zeal
Ken
21
Years of Service
User Offline
Joined: 21st Sep 2003
Location: Rochdale, England
Posted: 1st Aug 2004 16:21
I'd like to know too. Ones that work with DBPro... I've tried some from Nvidias FX Composer and about one or two work on my card (Most are v2 pixel and vertex shaders, which my card doesn't support) and Render Monkey (Nothing from Render Monkey works in DBPro). We need a resource of good shaders.

I can't stand to wait in line long, so I built a new machine.
It just measures up the distance, and the eliminates the folks between.
Preston C
22
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 1st Aug 2004 16:49
Quote: " Is there a reflect shader for DBP?"


Set Reflection Shading On

Quote: "Don't you mean you made it for the GameCube?"


I doubt Raven had anything to do with Baldurs Gate...

But on the topics of the shader thing, yeah we need a good shader resource. There was one shader pack on DBDN before it was shut down (and most of us weren't about to pay $15 for a three month subscription just to get it) and otherwise, the shaders from FX Composer can be used in DBP with a little tweaking. Otherwise, Neophyte and Raven (and a few others) would be the ones to consult on shaders, making them, and using them.

Cheers,
Preston


Intel Celeron 1.3 Ghrz 512MB Ram NVIDIA GeForceFX 5200 128MB
Zeal
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: Colorado Springs, CO
Posted: 2nd Aug 2004 13:34
Well according to raven doing water like baldurs gate is "extremely simple " but that might just be because hes so gosh darn smart. Does anyone have any idea where to begin making a shader for water like that? I mean a simple sin wave to move the vertices would be no problem, but the texture itself. Akk! Me need gud water now!

All you need is zeal

Login to post a reply

Server time is: 2025-06-01 10:01:10
Your offset time is: 2025-06-01 10:01:10