Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Please advice - GPU Gems relevance for GLSL?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 someuser   Members   -  Reputation: 106

Like
0Likes
Like

Posted 10 November 2011 - 07:44 AM

Hi

I'm trying to learn more advanced stuff in OpenGL. I' m thinking what should be my next book on OpenGL/ GLSL ( I finished SuperBible 5, and I have the Redbook too) .
NVIDIA's GPU Gems seems professional and impressive stuff, but it looks like it's DirectX oriented.

My questions are:
1.How relevant it is for GLSL developers ?
2.How relevant it is for GLSL on ATI Radeon card ? :unsure:
( I'm going to switch to NVIDIA some day, but currently that's what I have)
3.Is there anything else?

Thanks in advance

Sponsor:

#2 Tachikoma   Members   -  Reputation: 552

Like
0Likes
Like

Posted 10 November 2011 - 09:57 AM

1.How relevant it is for GLSL developers ?

It is as relevant as you want make it to be. If you use OpenGL as the primary API for your application, then GLSL is absolutely relevant. If you opt for Direct3D, then obviously HLSL is more relevant.

No matter which API you opt for, there is no reason why you can't study shaders from the other camp. Looking at the CUDA and HLSL stuff is still useful even if you develop for GLSL. Conceptually they are similar. More importantly, when you read articles in GPU Gems, understanding the algorithms and the techniques is the key here, which can be re-implemented in whatever language you desire.

2.How relevant it is for GLSL on ATI Radeon card ?

ATI has good support for GLSL and so does nVidia. I don't think you will need to worry much, apart from little quirks with standards compliance (nVidia is known implement some non-standard GLSL features, for example).
Latest project: Sideways Racing on the iPad

#3 dpadam450   Members   -  Reputation: 932

Like
0Likes
Like

Posted 10 November 2011 - 01:21 PM

I don't know any 1 good book on openGL shaders. There are a couple online places like ozone3D, developer.nvidia ( I suggest you read their slides as they are not any language but usually theory and graphs, they also have a SDK 10 and 9.5 to download). GPU Gems I think all 3 are free online now, but their source code is usually DX, but there is a lot of theory and ideas to understand what and why.

#4 clb   Members   -  Reputation: 1785

Like
0Likes
Like

Posted 10 November 2011 - 02:42 PM

Currently, it is simply an exercise of mechanical translation when you go between GLSL, Cg or HLSL. They are equivalent in their expressiveness (minus small technicalities). So, if you are using GLSL, and have a book that uses HLSL, don't be put off even the slightest. Instead, it'll give you an interesting comparison of the minute differences in the languages.
Me+PC=clb.demon.fi | C++ Math and Geometry library: MathGeoLib, test it live! | C++ Game Networking: kNet | 2D Bin Packing: RectangleBinPack | Use gcc/clang/emcc from VS: vs-tool | Resume+Portfolio | gfxapi, test it live!

#5 Yann L   Moderators   -  Reputation: 1798

Like
2Likes
Like

Posted 10 November 2011 - 09:33 PM

Books like GPU Gems, GPU Pro or the ShaderX series are about techniques, algorithms and math. A 3D API is just a tool to implement these algorithms and is completely interchangeable. In practice both HLSL and GLSL is used by articles in these books for their example implementations. Many are completely API agnostic and entirely math centric (with maybe some shader pseudo-code).

Just a note of warning though. Especially the later books in the series contain some very advanced research material that assumes a very firm understanding of your target shader API. These books will absolutely not teach you how to write shaders.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS