Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
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
3 registered members (AndrewAMD, exile, Ayumi), 836 guests, and 2 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 1 of 2 1 2
Newbe to shaders,, need help bad #62541
01/21/06 13:11
01/21/06 13:11
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
Hi folks,

I've been struggling with water effects, and found out that i might be able to use shaders to make great looking water. But I'm a total newb, so could anyone explain to me, or point me to a tutorial, on how to add shaders to my wdl's? i'm probably gonna need a step by step explanation, because it all looks very difficult.

Thanks


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: Newbe to shaders,, need help bad [Re: oldschoolj] #62542
01/21/06 15:30
01/21/06 15:30
Joined: Jan 2006
Posts: 53
S
SiriusCG Offline
Junior Member
SiriusCG  Offline
Junior Member
S

Joined: Jan 2006
Posts: 53
Quote:

i'm probably gonna need a step by step explanation




Then it's probably too advanced a subject for your experience level. I'd suggest that you google a bit and get familiar with shader programming first before you try and do advanced shading for objects like water.

You may want to try the Search function or visit the Shaders sub-forum as well.

Having someone write it out for you step by step is not going to increase your level of understanding unless you have a foundation to base it on. Cheers.

Last edited by SiriusCG; 01/21/06 15:36.
Re: Newbe to shaders,, need help bad [Re: SiriusCG] #62543
01/21/06 15:50
01/21/06 15:50
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
Thanks for the info,

It's just that I've done so much of the other parts of my game, and I want to add some flare (shaders). But evertime I get into studying about shaders, I start to get scared, and reach for a bottle.... j/k


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: Newbe to shaders,, need help bad [Re: oldschoolj] #62544
01/21/06 16:15
01/21/06 16:15
Joined: Jan 2006
Posts: 53
S
SiriusCG Offline
Junior Member
SiriusCG  Offline
Junior Member
S

Joined: Jan 2006
Posts: 53
Yeah, I know how you feel... But then again, shaders seem to be the future.

But seriously, once you get your head wrapped around how shaders work, it's not all that bad. The program structure doesn't change that much and you'll only need to learn HLSL, the shader language for DirectX as that's what 3DGS uses for the rendering API. Here's a possible start: http://www.directx.com/shader/index.htm

and a very good FREE shader programming IDE: http://www.ati.com/developer/rendermonkey/

You may wish to take a moment and read through the Render Monkey site as there is a TON of useful shader related information (along with the usual propaganda and noise...)

A couple of cavaets: Render Monkey requires DX 9.0c and a capable video card. If you have an older video card, some of the examples will still work, but the more advanced ones will not and the program will let you know.

Cheers and good luck!

Last edited by SiriusCG; 01/21/06 17:17.
Re: Newbe to shaders,, need help bad [Re: SiriusCG] #62545
01/22/06 05:17
01/22/06 05:17
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
Hey thanks bro,

I'm gonna go check out those links, and btw, good luck with your gaming projects. I'll make sure to send you a beta of my game. One thing I've gotta know first though before dedicating my time to shaders. Approximately how long does it take for the average person to gain a working understanding of shader programming? I'm on a very tight schedule. I probably couldn't spend more than 10-20 hours on learning the process. (Work/School/Sleeping)... I want this game done before I'm 50, heh.

Cheers,

Jesse Koscik


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: Newbe to shaders,, need help bad [Re: oldschoolj] #62546
01/22/06 05:58
01/22/06 05:58
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
if you want to learn how to program shaders you will need maybe 2-3 months of work before you can do anything complex.. becasue it's not simply iunderstanding of HLSL or whatever, or even D3D, but optical science and 3d math as well. Your best bet is to simply use shaders that have alrady been done, you can find plenty on the forums, or you can use my Sphere Engine which has most of the effects you would want built in.


Sphere Engine--the premier A6 graphics plugin.
Re: Newbe to shaders,, need help bad [Re: Matt_Aufderheide] #62547
01/22/06 06:30
01/22/06 06:30
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
Hey Matt.

Thanks for the input, btw I checked out your program, it's beautiful. You must have put alot of hard work into it. Still, I think I'm gonna learn shaders. Here's why, I'm a major geek (mathmatically endowed), so it's not the math that bothers me, i's the language thats foreign to me. Also, as an aspiring game designer, it's always best to have your "ducks in a row", you dig?

Again, great job with sphere,

P.S I'd be interested in seeing any game demo's you have out, got any links?


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: Newbe to shaders,, need help bad [Re: SiriusCG] #62548
01/23/06 13:45
01/23/06 13:45
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
Hi folks, maybe you could help me. Every time I add a shader script no matter how small or big, it gives me the same error message
(example from ati's fur)

message: Flag unknown tangent

< effect "

matrix matWorldViewProj;
matrix matWorld;
matrix matWorldV>

Keyword unkown Mat_Fur effect

Anyone have suggestions?

I thought I'd covered al my bases, like I know I have support for shaders, it's in the right format. I must be missing something simple...

Thanks for the help folks,

Cheer,

Jesse


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: Newbe to shaders,, need help bad [Re: oldschoolj] #62549
01/23/06 14:00
01/23/06 14:00
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
can you post th ecode where you get the error. your wdl material definition, too


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: Newbe to shaders,, need help bad [Re: ello] #62550
01/23/06 23:26
01/23/06 23:26
Joined: Mar 2002
Posts: 221
USA
zefor Offline
Member
zefor  Offline
Member

Joined: Mar 2002
Posts: 221
USA
I just converted that code using the code that M3PHiSTOPH3L3S posted last year. I just converted it to dx9. You can reference it here:
http://www.coniserver.net/ubbthreads/sho...e=0&fpart=5

Referencing other shaders is helping me to learn.

Page 1 of 2 1 2

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