View Full Version : how to do polygon collision/overlap?
kelvin
2003.04.22, 06:55 AM
is there an easy way to do tell if a polygon overlaps another polygon in OpenGL? I want to use this kind of test for collision detection.
OneSadCookie
2003.04.22, 07:48 AM
No.
Don't do collision detection in GL, even if you can find a hack way to do it — the readback from graphics card to CPU will kill performance.
kelvin
2003.04.22, 08:32 PM
well, my main issues was that I have multiple matricies pushed on to the model matrix stack, so with rotation, and scaling, it's going to be a big pain in the butt to figure out actual polygon positions.:shock:
OneSadCookie
2003.04.22, 08:41 PM
gluProject/gluUnProject are your friends.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.