Tuesday, April 04, 2006

For most parts of the weekend, I have been spending my time at Glu. Its seems like its been a while since I have taken time off, and Sunday was finally a holiday for me. I am working on my Advanced graphics coursework that requires me to render a brain CT scan using fundamental rendering algorithms. The coursework looks complicated and I am right now trying to run it on Windows. ddd Debugger is horrible. I was stuck trying to figure out what an error meant, which popped out everytime I ran ddd on the executable. To make a program debuggable, you must gcc it with a -g switch. Ah well, ddd has a poor array analyzer. I remember back in my MSc days, when I used visual C++ 98 to examine arrays, and it was so much simpler.

The coursework requires openGL. And to my surprise, the download links to SGI's openGL does not work! I recently learned that Windows OS ships with OpenGL 1.1. I have no clue about where the exes and dlls are located.

My PhD work this week is currently at a Standstill. I am still trying to do my visualization code. On Monday I had translated some of the VTK python/TCL code to C++ for visualizing using some basic rendering function. I cant remember what rendering I used, but thinking about it right now, what could be simpler than MIP rendering??? :) Strangely, at this point I cleaned my ITK build, and it is not compiling anymore. There are scores of errors and perhaps I need to go to Raj or Prof.



2 comments:

Anonymous said...

Why are you using gcc under Windows to build your project? Perhaps you'll be more productive if you spend a day trying to port your codebase to Visual Studio IDE (it's risky though, since you might end up with no workable code and lost of frustration by the end of the day).

Also it'd be better if you relied on your graphics card manufacturer's opengl libraries. I believe almost all the bigger manufacturers (intel, ati, nvidia) provide opengl libraries for their cards.

rashed said...

Thanks haseeb! I actually finally got to compile it using visual studio .net. I am glad since visual studio .net has a nice IDE and its easy to debug and stuff. I also got to compile it under linux using GCC, but I dont want to ddd my programs ever.

You are right about openGL. the windows/system32 folders come with the required openGL dll files (opengl32 and another one I cant remember). You just have to find these files and put them in your vc7/lib folder (If i am not wrong). I still dont know where to find the GL/glut.h header files. They must be around somewhere.