Results 1 to 2 of 2

Thread: Making a solid polygon

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2011
    Posts
    1

    Making a solid polygon

    I need to make a solid polygon that will not allow other polygons to pass through it. What would be the best solution? It will act as a wall in a way. And possibly be loaded into an array so a map may be created. This is for a game.

    Thank you for your time.

  2. #2
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,674

    Re: Making a solid polygon

    OpenGL has nothing to do with how "solid" something is. It simply draws what you tell it to draw. If you want something to not pass through something else, then it is up to you to not tell OpenGL to draw it passing through that something else.

    You need to use some form of collision detection, on the CPU, to see if something is trying to pass through it. Then, you need to move it away so that it isn't colliding.

Similar Threads

  1. Making an arbitrary polygon look darker towards the edges
    By doctor_honeydew in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 07-05-2013, 02:03 PM
  2. Help in making polygon sharing a common edge
    By Aycha in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-27-2010, 06:39 PM
  3. motion of a triangle or polygon inside a polygon
    By Dathu in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-09-2008, 05:45 AM
  4. Solid color not so solid on nVidia??
    By andras in forum OpenGL: Advanced Coding
    Replies: 13
    Last Post: 01-22-2006, 07:27 AM
  5. rendering polygon elements edge-on & polygon offset
    By rlskinner in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 02-19-2004, 08:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean