ramblingcoder's picture

NeHe to OpenTK conversions

This is my first post so I hope I'm not stepping on anyone's toes at the moment.

The latest relevant post I can see relating to NeHe is from 13th of May (http://www.opentk.com/node/1768).

I'm doing NeHe lesson conversions and plan on doing as many as I can. At the time of this post, I have Lessons 1 - 17 converted with the exception of lessons 13, 14, and 15. I do not plan to stop here at the conversions but I wanted to put up a post in case anyone was attempting OpenTK for the first time.

If you see anything wrong with my lessons feel free to say something.

The lessons are available at the link below. You can ignore the bottom half of the page as that relates to other projects.
http://www.ramblingcoder.com/?page_id=66

Thank you for your time.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

Looks nice!

For tutorial #13, you can replace the windows-specific part with System.Drawing: render the characters to a Bitmap and upload them to OpenGL just like in the tutorial.

For #14 and #15 you'd probably have to rely on an external library such as FreeType. Can't see any other simple way.

ramblingcoder's picture

I will give that a try for Lesson 13. I'm still learning OpenGL itself while I do the OpenTK conversions so I can't wait to try and mess with it as there is no C# example for that lesson.

migueltk's picture

Implement NeHe tutorials in C# using OpenTK has been a task that I have always had in mind but I've never done to be working on other programming projects.

Good job.

iliak's picture

For lesson 13
Have a look at my BitmapFont class.

Basically, it opens a TTF font, renders every glyph in a Bitmap, then makes it an OpenGL texture.

flopoloco's picture

I had a great difficulty to learn OpenGL in OpenTK myself, it took me quite few months just to learn the basics. Hopefully these tutorials are considered life savers, some one will be able to learn Nehe with OpenTK and right from day 1.

ramblingcoder's picture

I gave my best shot at Lesson 13, it should be available on my site now.