Delphi OpenGL matrix
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

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 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
0 Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URI


