I'm learning to write Pixel Shaders (and possibly Vertex Shaders) v3.0 and I'm torn between two languages...basically which one is easier to learn?
Nvidia's Cg = Cross Platform (Windows, Mac, Linux), DX & OpenGL (But I want to stick to DX 9.0c) and Cross GPU (ATi & Nvidia).
HLSL = Microsofts version which I don't know much about.
I personally think that Nvidia's Cg is the best choice - and I've downloaded all the documentation from their developer website, but...I cannot find any very basic tutorials on how to use this. And because DirectX 9.0 can handle the Shader Model 3.0 - shall I stick to this or use OpenGL, you see I'm torn between them. DX has SM3.0 but I don't think OpenGL 1.4 has this support yet (and yet OpenGL is cross-platform which will please everyone).
I know this is asking a lot of questions (just shows how new I am to field of decisions).
1.) Cg or HLSL?
2.) DirectX or OpenGL?
Let's say your guys think Cg & OpenGL, are there some very basic beginner tutorials out there that can help me to learn shader writing. I want to write shaders for a university final degree project (basically, writing a mod and introducing Pixel Shader 3.0 into this mod for UT2004).
Any help would be greatly appreciated.
P.S.
My hardware: WinXP Pro SP2 / GeForce 6800 GT / AMD64 3500+
Question
DjmUK
Okay then,
I'm learning to write Pixel Shaders (and possibly Vertex Shaders) v3.0 and I'm torn between two languages...basically which one is easier to learn?
Nvidia's Cg = Cross Platform (Windows, Mac, Linux), DX & OpenGL (But I want to stick to DX 9.0c) and Cross GPU (ATi & Nvidia).
HLSL = Microsofts version which I don't know much about.
I personally think that Nvidia's Cg is the best choice - and I've downloaded all the documentation from their developer website, but...I cannot find any very basic tutorials on how to use this. And because DirectX 9.0 can handle the Shader Model 3.0 - shall I stick to this or use OpenGL, you see I'm torn between them. DX has SM3.0 but I don't think OpenGL 1.4 has this support yet (and yet OpenGL is cross-platform which will please everyone).
I know this is asking a lot of questions (just shows how new I am to field of decisions).
1.) Cg or HLSL?
2.) DirectX or OpenGL?
Let's say your guys think Cg & OpenGL, are there some very basic beginner tutorials out there that can help me to learn shader writing. I want to write shaders for a university final degree project (basically, writing a mod and introducing Pixel Shader 3.0 into this mod for UT2004).
Any help would be greatly appreciated.
P.S.
My hardware: WinXP Pro SP2 / GeForce 6800 GT / AMD64 3500+
Link to comment
Share on other sites
6 answers to this question
Recommended Posts