PDA

View Full Version : Opengl debugging



Lowercase
24-10-2009, 03:42 PM
Hello,

I'am translating a program form C to pascal.

It works fine, but i have some trouble with opengl rendering, since the result is not exactly the same.

http://img19.imagevenue.com/loc489/th_98212_myprog_122_489lo.jpg my pascal program (http://img19.imagevenue.com/img.php?image=98212_myprog_122_489lo.jpg)

http://img219.imagevenue.com/loc354/th_98214_Cprog_122_354lo.jpg C program (http://img219.imagevenue.com/img.php?image=98214_Cprog_122_354lo.jpg)

I compared the 2 program with glintercept and there's no difference in the dumps.

maybe there's an option i missed, or is there a more powerful tool ?

User137
25-10-2009, 11:33 AM
Oh my god.. use tinypic or imageshack for ad-less links :o

It's hard to know the problem from these 2 pictures alone. It could be something like dithering, window color resolution, nearest/bilinear filtering. At least i see neither of images use anti-aliasing so that is not the case.

JSoftware
25-10-2009, 11:58 AM
Looks like you either use nearest filtering or no mip mapping in your delphi app

Lowercase
25-10-2009, 01:29 PM
Oh my god.. use tinypic or imageshack for ad-less links :o


Sorry, I never noticed ad since i'm using firefox and adblock plus. sorry for that :(

by the way, it's true i had problems with textures. C program uses glaux to load texture, I had to write another texture loader.

the fun fact is, I don't have any glaux.dll on my computer, and this C program is able to run without it :o I don't understand why ??

User137
25-10-2009, 05:11 PM
Take another comparing images from very close to see borders of triangles and textures in detail.

Lowercase
13-11-2009, 07:12 PM
sorry for being so late, i had some problems with windows 7...

so here is another screenshot

http://img690.imageshack.us/img690/2425/smalln.th.png (http://img690.imageshack.us/i/smalln.png/)

pjpdev
13-11-2009, 11:07 PM
Sorry, I never noticed ad since i'm using firefox and adblock plus. sorry for that :(

by the way, it's true i had problems with textures. C program uses glaux to load texture, I had to write another texture loader.

the fun fact is, I don't have any glaux.dll on my computer, and this C program is able to run without it :o I don't understand why ??


GLAux is probably statically linked in the C program, so it won't need glaux.dll. Another thing I picked up on the OpenGL wiki (http://www.opengl.org/wiki/Getting_started) is this:



GLaux, do not use GLaux. It is 15 years old and considered deprecated


So rather use something like SDL for image loading.