Sign in to follow this  
soconne

Video card emulation tools

Recommended Posts

soconne    105
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?

Share this post


Link to post
Share on other sites
swiftcoder    18437
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.

Share this post


Link to post
Share on other sites
soconne    105
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();

Share this post


Link to post
Share on other sites
Krohm    5031
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.

Share this post


Link to post
Share on other sites
soconne    105
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.

Share this post


Link to post
Share on other sites
soconne    105
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.

Share this post


Link to post
Share on other sites
Lode    1003
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this