Jump to content
  • Advertisement
Sign in to follow this  
biubidboy

Polygon Clipping

This topic is 3635 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone. I am currently using orthographically projected quads for a 2d game I am making, but I find that whenever the bottom left corner of the quad leaves the viewable area, the rest of the quad does not render at all. What clipping settings would I need to use to prevent this from happening? Thankyou. -Mike.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by biubidboy
I am currently using orthographically projected quads for a 2d game I am making, but I find that whenever the bottom left corner of the quad leaves the viewable area, the rest of the quad does not render at all. What clipping settings would I need to use to prevent this from happening?
Typically, OpenGL clips across partially visible polygons, rather than removing them entirely. Especially if it only happens with the lower-left corner, are you sure that you are not culling them yourself?

Share this post


Link to post
Share on other sites
I'm not completely sure, because I am new to this stuff, but I can disbale culling and still observe the same results. So I don't think it is culling, at least not that any kind of culling I have enabled.

Share this post


Link to post
Share on other sites
I use textured quads for sprites and render with glVertex2i.
I have checked out question 10.040 at http://www.opengl.org/resources/faq/technical/clipping.htm. I don't quite understand what this is saying, but could it be related?

Share this post


Link to post
Share on other sites
No, because you are saying your entire polygon doesn't render.
It is highly likely that your code has a problem. If you want, upload it somewhere and someone will have a look.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!