Wednesday, 4 February 2009

Spiderman

Step by step I've done almost all my C++/OpenGL/GLUT deja-vu exercises:

  • C++ (e-v-e-r-y-t-h-i-n-g!)
  • Makefiles
  • GLUT callbacks;
  • OpenGL transformation matrices (stacking, projection, modelview, etc.);
  • Camera views (Perspective, Ortho, aspect ratio, etc.);
  • OpenGL geometric primitives.
I need to study more maths, afine transformations should be my next target.

Check bellow some awful fun:

glutSolidSphere

glutWireSphere

Spiderman's web

I'll try to post something better next time.

Tuesday, 3 February 2009

~mbfGL( )

OK, bad idea.

The effort necessary to encapsulate GLUT/freeglut in a single class is an herculean task.

What I'd accomplished until now was:



As one may notice the mbfGL class is made of static members. So, actually speaking, it's a lie.

After some forum scrutinizing I've concluded that Qt is what I'm looking for: an OO approach to OpenGL needs.

For now, I'll remain coding on freeglut.

Qt scheduled.

mbfGL( )

As said before, I'm drafting an OpenGL framework.

No. I don't mean to replace GLUT, freeglut, or the like... I just want to have a generic handy code to plot on screen.

mbfGL is just GLUT/freeglut encapsulated in a class. For now, I've just transcribed NeHe - Lesson 2 into it.

It compiles well, but I think I'm commiting some linkediting mistake, because I can't separate the class implementation (mbfGL.o) from the module that contains the main function: it returns a "undefined reference to main" error. The solution for now is to linkedit all together (mbfGL.cpp and main.cpp).

Monday, 2 February 2009

Home work

I got no news today.

I was, once, a good C++ programmer. I still knew how to do it... I just can't remember all the details. Anyway, this is the main focus of the project: (re)learn by fun.

Today I'd done some research:

  • C++
  • makefiles
  • automatic documentation
  • on-line code snippets gadgets
  • GLUT (that now came into being freeglut)
That's all on the Linkography section.

I did also some exercises, and begin to draft an OpenGL framework of mine. Bugs, bad code, warnings, errors, all the noob dilemmas are back again...

Sorry if you can't find here a detailed description of all my steps. I don't work that way. I usually research a bit here a bit there, changing topics as fast as I change TV channels when it gets boring. Be cool, no beer while researching, I swear.

Sunday, 1 February 2009

Google 3D Warehouse

Well, after some more browsing I've found the Google 3D Warehouse - an on-line repository of 3D models of all kinds.

There I've found those (click on the image to see it 3d):






I think it can give me a good starting point.

Although I need to find the .skp file format documentation.

Oh my God! What a shame!

It already exists! What a lack of creativity of mine...



It seems that Cryptex of Time fulfills my initial proposal. And it seems very, very cool indeed!

Well, I'll need to learn to live with that. I just think it will demand some time...

...

OK, done.

It seems that someone also had done something similar here:





This model was conceived in 3d Studio Max. I think it don't met all my programming issues, however it can give me some visual standards about all the hard work I'll have ahead.

The idea

Well, this project had come into being from my necessity on remembering some Computer Graphics topics, and from my pragmatic way of learning from practice.

It's flickering for a long time, like a lamp in a night of blackouts and lightnings, turning itself on and off as my laziness, responsibilities, priorities and many others issues took precedence over it.

Now, I don't know if it'll be very different as before, but at least I'll try to keep record of it.

Oh yes! The idea... I'd almost forgot it.

My main objective here is to model a computational 3d cryptex. And to make it rotate, open, and hold some secret information inside (of course). For now, I'll not load much more than this, as I'm searching the web for some prerequisites I need to remember before starting into it. I swear that I'll try to keep record of all my steps from now - maybe some link section.

Sorry for you, dear reader that had born in a English spoken country for reading this blog, but I think that my records would be more useful in your international idiom - albeit I'm being self taught on it. Any corrections are welcome - both in grammar and content 'per se'.