Skip to main content
gamedev.net
🔒 Locked

Polygon issues!!

Started by jhs2pdg 5 replies 700+ views
Original Post
jhs2pdg
jhs2pdg
Hi there, I''ve got to model a car for my openGL coursework - its gotta be coded so cant use a modelling program. The problem lies in making round wheel arches for the car body. I was wondering if it is possible to subtract a polygon from another. For example, have a rectangular wing and ''take-away'' a circle from it to leave a round ''hole'' in it?? Any help, or advice would be greatly appreciated! Cheers in advance, Paul
jhs2pdg
jhs2pdg
how do you mean ''manually''??
sBibi
sBibi
google for CSG algorithms (Constructive Solid Geometry), you might find what you want there

lc_overlord> he didn't ask if it was easy or not, just if it was possible... and it definitely is.

[edited by - sBibi on March 25, 2004 9:10:10 AM]
tok_junior
tok_junior
You could do it using a concave polygon and triangulize it.
Tree Penguin
Tree Penguin
or you could use NURBS to make a smooth curve easily
dawid
dawid
What about using openGLs built in quadrilatics (Ofcourse Collision is a mission)

you can with that deffine detail as well
Spy

Topic Locked

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

Sign in to reply to this topic.