Recommended book

11 views
Skip to first unread message

David Beckwith

unread,
Sep 24, 2010, 6:33:13 AM9/24/10
to Penumbra
Hi Zack,

I saw a blog post where you mentioned a book from which you learned
OpenGL. What's the title and author? I thought it would be good to
brush up on my OpenGL and hopefully make the Penumbra codebase easier
to digest.

Thanks,
David :)

Zach Tellman

unread,
Sep 24, 2010, 1:55:08 PM9/24/10
to penumb...@googlegroups.com
I'm pretty sure the book I mentioned was about GLSL, the OpenGL shader
language. It can be found at
http://www.amazon.com/OpenGL-Shading-Language-Randi-Rost/dp/0321637631/ref=sr_1_1?s=gateway&ie=UTF8&qid=1285350629&sr=8-1

As for OpenGL, the book I learned from was the Red Book:
http://www.amazon.com/OpenGL-Programming-Guide-Official-Learning/dp/0321552628/ref=pd_bxgy_b_img_b.
The reviews point out, rightfully, that it's a bit antiquated, but so
is Penumbra (for now, anyways).

I've gotten this same question a few times, though. Maybe I should
write a few thousand words and put it up on the wiki. Are there any
specific topics you're shaky on?

Zach

David Nolen

unread,
Sep 24, 2010, 2:03:28 PM9/24/10
to penumb...@googlegroups.com
On Fri, Sep 24, 2010 at 1:55 PM, Zach Tellman <ztel...@gmail.com> wrote:
I'm pretty sure the book I mentioned was about GLSL, the OpenGL shader
language.  It can be found at
http://www.amazon.com/OpenGL-Shading-Language-Randi-Rost/dp/0321637631/ref=sr_1_1?s=gateway&ie=UTF8&qid=1285350629&sr=8-1

As for OpenGL, the book I learned from was the Red Book:
http://www.amazon.com/OpenGL-Programming-Guide-Official-Learning/dp/0321552628/ref=pd_bxgy_b_img_b.
 The reviews point out, rightfully, that it's a bit antiquated, but so
is Penumbra (for now, anyways).

I've gotten this same question a few times, though.  Maybe I should
write a few thousand words and put it up on the wiki.  Are there any
specific topics you're shaky on?

Zach

I've found this small-ish book to be useful: http://www.opengldistilled.com/. It's also a little bit more up to date on best practices I think.

David 

David Beckwith

unread,
Sep 24, 2010, 2:39:40 PM9/24/10
to penumb...@googlegroups.com
Okay cool thanks for the tips on the books. Well, I just found
slogging through the Penumbra code to be pretty rough going. It seems
like there is a lot of background knowledge required to get through
it.

I would just like to be able to draw a 2D circle on the screen, but I
found just that to be pretty difficult. It seems like there is tons
of set up and study as a prerequisite. Maybe it's because OpenGL is
built for 3D and you need to know what you can throw out.

Here is my request: Could you write a tutorial to draw a 2-D circle,
explain the initialization step in excruciating detail, explain the
flow of control in the compute-display-compute-display loop, how
"state" is managed with the "world hash" and what the world hash is
for, and how the graphics card's state comes into play, and explain
the deal with the Cameras (Ortho2D view). Sorry, that's a big
mouthful of a run-on sentence, but that mouthful pretty much describes
my current state of discombobulation.

Anyway, thanks a lot for your help. Hope what I just wrote made some
sense. Just let me know if it doesn't.

Cheers,
David :)

Zach Tellman

unread,
Sep 24, 2010, 4:49:20 PM9/24/10
to penumb...@googlegroups.com
That seems pretty clear to me. I agree that would be useful, I'll
throw together a rough draft and see what you guys think.

Incidentally, I'll be at Clojure Conj, and might be able to give an
impromptu lecture on the subject if there's space and interest.

Zach

On Fri, Sep 24, 2010 at 11:39 AM, David Beckwith

David Beckwith

unread,
Sep 25, 2010, 11:39:46 AM9/25/10
to penumb...@googlegroups.com
I'll be going to ClojureConj too. I'd be interested in attending the
Penumbra session.

BTW, in what hotel are you guys staying? I just want something
nearby, cheap and with internet.

@D. Nolen: I'm definitely book-marking that. Thanks!

David :)

David Nolen

unread,
Sep 25, 2010, 11:46:50 AM9/25/10
to penumb...@googlegroups.com
On Sat, Sep 25, 2010 at 11:39 AM, David Beckwith <thirdre...@gmail.com> wrote:
I'll be going to ClojureConj too.  I'd be interested in attending the
Penumbra session.

Fingers crossed that work will give me the time off to go. If I make it, I'd also be interested in attending a Penumbra session.

David 

Jed

unread,
Sep 25, 2010, 3:22:35 PM9/25/10
to penumb...@googlegroups.com
Emphatically, don't buy the OpenGL Superbible.
http://www.starstonesoftware.com/OpenGL/

It's been almost impossible to read, like 700-odd pages of wandering,
unedited blog text. Maybe the publisher cut editing short so they
could be first to market? The sample code at the website might be
useful to you, though. Their basic idea was to provide utility
classes to approximate the old, fixed pipeline for the first few
chapters, then progressively phase in the new stuff. Taking apart
helper software can be a great learning shortcut because it's simple
but usually still idiomatic.

A penumbra session would be cool. I'd be surprised if there wasn't a
lot of interest. Something about the idea of controlling 3D graphics
from a REPL is very appealing...


-Jed

Reply all
Reply to author
Forward
0 new messages