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 / HLSL Introductory Tutorial

Author
Message
ifman1
23
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 11th Sep 2003 04:55 Edited at: 11th Sep 2003 04:57
I don't know how many people here check Flipcode, but every now and then there are some good articles posted there (alright, all the time). Here's an introduction to HLSL to get you guys started with FX files, if anyone's interested. So, go read it, make some cool affects, and post em for me <ahem>, I mean everyone, to use! Yeah, that's it!

Actually, I hope someone like Raven will read the article and give his opinion, since he actually knows a little about shaders and such.

http://www.fairyengine.com/articles/hlsl2sided.htm
SoulMan
23
Years of Service
User Offline
Joined: 22nd Nov 2002
Location: In a house somewhere on the planet earth
Posted: 11th Sep 2003 09:23
I am confused now. How do we create .FX files and what Video Cards will work with them. Excuse me for not being around lately but a full time job really takes time away from doing other things.
Thanks.
SoulMan

I am my own and own my am I
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 11th Sep 2003 10:51
You can just create FX file using notepad, and load it in DBpro. Regarding what kind of video cards, it really depends on what version of vertex and pixel shader your FX file used. HLSL or Cg by NVidia is actually a C like language for shader programming. It will eventually compiled to the native assembly which the GPU will understand. In the FX file, you will also specified what version of vertex and pixel shader you want the compiler to target.

From what I know so far,
GeForce 3 has, VS 1.0, and PS 1.2
GeForce 4 has, VS 1.1, and PS 1.3
And if I am not mistaken, Radeon 9700 has, VS 1.2 and PS 2.0 ???

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Neophyte
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 11th Sep 2003 13:02
@Bulleyes

"And if I am not mistaken, Radeon 9700 has, VS 1.2 and PS 2.0 ???"

Not quite. Its VS 2.0 and PS 2.0. Close though .
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 11th Sep 2003 17:32
it leaves more questions than it actually answers, and it doesn't particularly help greatly if your not using DirectX, seeing as its HLSL only rather than general shaders though this can be overlooked.

really the only real gripe i have with it is that it isn't indepth enough - so unless you have a good working knowlage of ASM Shaders and Pipelines of DirectX you can come off being far more confused than before you started.

Though the shader itself is a very good starting point

SoulMan
23
Years of Service
User Offline
Joined: 22nd Nov 2002
Location: In a house somewhere on the planet earth
Posted: 12th Sep 2003 03:39
Wait a sec,
You mean I can write the .Fx file in notepad, tell Dark Basic Pro to load the .Fx file and it will compile the file for me? I thought we had to compile the shader through something else to get it to work. Cool.
What is a good link that will teach me this language. I want to know!!! Thanks.
SoulMan

I am my own and own my am I
SoulMan
23
Years of Service
User Offline
Joined: 22nd Nov 2002
Location: In a house somewhere on the planet earth
Posted: 12th Sep 2003 03:44
Errr Never mind. I just looked at the link again and saw it covered the subject just fine. Thanks.
I would like to find a book on it though. Doom 3 HERE I COME!!!
SoulMan

I am my own and own my am I
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 12th Sep 2003 05:45
Yeap, you write it in notepad, and DBpro (or more correct way of saying, DirectX 9.0) will compile it. But the file must comply to the FX specification. FX file is framework to better integrate the rendering pipeline and the shader program. In a FX file, you will need to write HLSL commands, and some other stuffs. To get you started, you might want to visit MSDN.

Hoped this help.

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/

Login to post a reply

Server time is: 2026-07-23 12:44:44
Your offset time is: 2026-07-23 12:44:44