Help With Perspective Correct Interpolation

Started by
0 comments, last by Brother Bob 18 years, 8 months ago
Hi game developers, I'm a beginner in opengl and I'm trying to do perspective correct interpolation. I have used glHint(GL_PERSPECTIVE_CORRECTION_HINT,GL_NICEST) however I'm still getting the wrong result. Can anyone help me? Thanks a lot. Here is the screenshot http://www.comp.nus.edu.sg/~stephanu/perspective.jpg regards, tep
StephanusSIWare, Inchttp://graphics.harvestsoft.net
Advertisement
You don't provide much information about what you're actually doing to get that result, so I'm going to assume you're drawing a quad with that actual shape. That is, the non-parallell vertical edges is not a cause of perspective, but the actual shape of the quad. If so, this is pretty much what will happen if you're not careful, and isn't really the wrong result. Setting the perspective hint isn't going to help, as OpenGL is already doing what you're telling it to do. It's just that what you're telling it to do is not what you want it to do.

Here's some reading on how to get what I think you want. Clicky.

This topic is closed to new replies.

Advertisement