Video card emulation tools

Started by
7 comments, last by Lode 16 years ago
Are there any video card emulation tools available that allow you to execute code for a particular card. For instance, I have an Nvidia card, but I would like to know what my code outputs on an ATI card. Hence, if there was a piece of software that took your code and ATI drivers and ran the code against them producing results that would be FANTASTIC! Does something like this exist?
Author Freeworld3Dhttp://www.freeworld3d.org
Advertisement
Not so far as I am aware - NVidia and ATI are very cagey about their drivers. Also don't forget that the output should be identical, as long as you are not using vendor specific extensions or running into driver bugs - unfortunately, both of those are very common scenarios.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

Well I'm creating my own GUI system using OpenGL glOrtho calls. And since I'm attempting to get pixel perfect accuracy, I'm having to offset the values sent to glOrtho. So I'm not absolutely sure the results will look the same on Nvidia and ATI cards.

For my Nvidia card, I'm calling glOrtho(0, width, height - 0.5, 0, -1, 1).

Then if I'm drawing lines, rectangles, ect...I also have to offset the values. For instance, to draw the outline of a rectangle, I have to add 0.5 to the top y coordinate.

glBegin(GL_LINE_LOOP);
glColor4ub(color.r, color.g, color.b, color.a);
glVertex2f(rect.x, rect.y + 0.5f);
glVertex2f(rect.x + rect.width - 1, rect.y + 0.5f);
glVertex2f(rect.x + rect.width, rect.y + rect.height - 1);
glVertex2f(rect.x, rect.y + rect.height - 1);
glEnd();
Author Freeworld3Dhttp://www.freeworld3d.org
nvEmulate has software rasterizers which - I suppose - could give you accurate results... but pretending to get pixel perfect results is stretching it. This changes even with drivers, have fun in matching those minuscule details.

In this specific case, I don't even see the benefit in having pixel perfect rendering.

Previously "Krohm"

Quote:Original post by Krohm
nvEmulate has software rasterizers which - I suppose - could give you accurate results... but pretending to get pixel perfect results is stretching it. This changes even with drivers, have fun in matching those minuscule details.

In this specific case, I don't even see the benefit in having pixel perfect rendering.


There's no benefit, it just absolutely necessary in order to draw the gui correctly using points, lines and rects.
Author Freeworld3Dhttp://www.freeworld3d.org
Isn't adding the 0.5 offset always supposed to work according to the OpenGL spec?
I hope so. I just would like to make sure and I do not have access to an ATI card or any other Nvidia card besides the 7900GTX. I just thought it would be very useful if there was a tool to emulate any video card.
Author Freeworld3Dhttp://www.freeworld3d.org
Make a little test app and post link to downloaded it on here so people can give you results for different cards :)
Quote:Original post by soconne
Well I'm creating my own GUI system using OpenGL glOrtho calls. And since I'm attempting to get pixel perfect accuracy, I'm having to offset the values sent to glOrtho. So I'm not absolutely sure the results will look the same on Nvidia and ATI cards.

For my Nvidia card, I'm calling glOrtho(0, width, height - 0.5, 0, -1, 1).

Then if I'm drawing lines, rectangles, ect...I also have to offset the values. For instance, to draw the outline of a rectangle, I have to add 0.5 to the top y coordinate.

glBegin(GL_LINE_LOOP);
glColor4ub(color.r, color.g, color.b, color.a);
glVertex2f(rect.x, rect.y + 0.5f);
glVertex2f(rect.x + rect.width - 1, rect.y + 0.5f);
glVertex2f(rect.x + rect.width, rect.y + rect.height - 1);
glVertex2f(rect.x, rect.y + rect.height - 1);
glEnd();


Hi,

I once had a similar question here and got some pretty good replies, which you can find in this thread: http://www.gamedev.net/community/forums/topic.asp?topic_id=486173

This topic is closed to new replies.

Advertisement