|
From: Andrew G. <and...@gm...> - 2008-09-29 22:02:37
|
Just want to re-iterate a list that Rob Barris posted a while ago:
> - how do I establish a context and put it on the screen
> - make a window, init context, clear, swap
>
> - how do I put data in a buffer so GPU can see it
> - no drawing - just demonstrate the buffer API's
> - perhaps BufferData some floats into a buffer, then map it and
> print the values seen
>
> - how do I draw the simplest possible triangle
> - pass-through shader for vert position
> - "write red" for pixel
> - constant verts for geometry in a VBO
>
> - how can I change the color of the triangle
> - introduce per vertex color attribute
> - vertex shader passes it through
> - alter pixel shader to read it and emit it
>
> - introduction to uniforms - communicate to shaders
> - show color change using uniform (several ways to do this)
>
> - how can I move the triangle
> - see above
>
> that's a lot of good tutorial steps before we even start talking
> about more than one triangle.
That list is perfect for beginners in the Tutorial/Example area. The goal
here being not too general ("Intro to 3D") but specific to what a beginner
is trying to do: Code in OpenGL. There are of course those that need a
how-to on 3D, but those are a dime-a-dozen on the web. OpenGL 3.0 (or at
least no-FF OpenGL 2.x) are rare to non-existent.
Andrew
|