Delphi OpenGL matrix

flatspike — jurgen.strydom on November 21, 2006 at 5:04 pm

10 March 2006

I made a OpenGL grid in Delphi for a friend (He asked me to, I was bored). I don’t know anything about OpenGL but I found some nice tutorials and source code at Nehe Productions that some kind soul converted from C++ to Delphi. It would be nice if the comments were English but its free so I cant moan too much. Anyway I jumped into the code of one of their programs (this one was from lesson 5) and started hacking away. This is what I came up with. The screen shot does not do it justice, you have to see it in motion. I caught myself staring at it for an hour once…

The bar plot high
The Bar plot

Bar plot low
Another view of the bar plot

18 March 2006

I modified this code so the program runs in a Delphi Form (used code from a Borland developer network article), not too hard and it really helps if you want to do something useful with the OpenGL window. You can give the grid values with edit boxes, or read the values of the animation function into them. I also made 2 modes, a bar mode, and a plane mode. The updated source is at the bottom of the page.

The plane plot
The plane plot

The grid
The Grid

20 November 2006

I moved this project from my old web site to this new one (and again to this one). Its been a long time since I have looked at this project. If there is anything obvious lacking here please contact me via e-mail and I will update the page with the required information.

References

Nehe Productions
Borland developer network article

Files

matrixdraw executable (for preview purposes)
matrixdraw Delphi source


Add to:
del.icio.us:Delphi OpenGL matrix  digg:Delphi OpenGL matrix  reddit:Delphi OpenGL matrix

Related:

0 Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License. | Flat Spike