12 Aug 2001 wwwwolf   » (Journeyer)

Yesterday, I coded my maze generator hack all over. Well, actually, I just ported the C program of mine to use C++ and to use the basic facilities of the language (C version of the maze generator was so stand-alone that I complied it with cc65 to produce a working C64 binary in no time!)...

(Yeah, I haven't used C++ much, but now I first time noticed that templates do have a bit awkward syntax. Anyway, I can tolerate that - vector<vector<char> > is almost a tolerable way of making a multi-dimensional character array, compared to C way with the dreaded malloc() and some calculations... =)

It now uses OpenGL to do the display stuff, and it's going to be a fully three-dimensional maze exploration program!

The only problems I've had so far:

  • "Hedge" geneator should churn out cubes. It creates a huge bunch of triangles instead. Weird, that.
  • Yeah, the user-perspective view doesn't work at all =( either I get a blank view, or interesting "viewpoint" to the location I'm looking at. Looks like I still need to learn more of the viewing/modelview transformations.

I have read the whole red book, but that won't help me much, I guess - I haven't actually written too much OpenGL code. Plus, I suck at math. =( I think I am able to survive this, one day - I'm doing this mostly just to prove that I'm able to do insane things. In C++. With OpenGL. In Glorious 3D. =)

Maybe I should focus my stuff on stuff that actually does something worthwhile... =/

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!