Skip to main content
gamedev.net
🔒 Locked

Problem with clipping

Started by singhaxn 0 replies 650+ views
Original Post
singhaxn
singhaxn
Hi, This is not related to Game development, just a general OpenGL query... I am using VC++ 6 with the default OpenGL (v1.3.0 build 4.13.01.3317) on Windows 2000 with an Intel 82845 graphics adapter. Without clipping, my application works fine. This is what I see (as expected): But when I apply clipping as follows:

double arrEq[] = {0, -1, 0, 40};
glClipPlane(GL_CLIP_PLANE0, arrEq);
glEnable(GL_CLIP_PLANE0);
This is what I expect to see: But if I rotate the image slightly, this is what happens: What could the problem be? Is this some bug that I've encountered or is it likely to be a problem with my code? Thanks in advance.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.