Re:Learning Modern 3D Graphics Programming
by stephth on Wednesday November 30, 2011 @08:25PM
(#3297807)
* the hardware, however, does not work like that.*
Could you explain that?
Re:Learning Modern 3D Graphics Programming
by Impossible on Thursday December 01, 2011 @01:27AM
(#3298647)
On older fixed function hardware the fixed function pipeline mapped to hardware pretty directly. On modern GPUs most of the fixed function pipeline is emulated in drivers and shaders. So if you're doing "proper" low level graphics programming for modern GPUs you are writing shader code. Working with fixed function is writing for a low level abstraction that doesn't represent the way hardware actually works. It's true that using a 3D API at all is an abstraction that hides and simplifies many of the workings of the actual hardware, but modern APIs are much closer to actual hardware than legacy ones.
If you learn it with the fixed function pipeline it is actually harder to understand the low-level concepts. Simply consider the color issue: calling glColor once will set the color for all vertices that you are going to emit; the hardware, however, does not work like that. Shaders on the other hand make it clear how the pipeline works.