Results 1 to 6 of 6

Thread: Open gles 2.0 object collision

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    2

    Open gles 2.0 object collision

    Hi,

    I am new to opengl es.

    I am using opengles 2.0 with android. I want to find programmatically how to find if the two 3D objects have intersected or collided at some place ?

    Can someone please help me with this ?

    Thanks

  2. #2

    Re: Open gles 2.0 object collision

    do your objects are moving? can you show your o/p?

    You can try by checking color values at particular point on the surface.

  3. #3
    Junior Member
    Join Date
    Aug 2012
    Posts
    2

    Re: Open gles 2.0 object collision

    No my objects do not move.

    In some instances they appear on the scene if they are in overlapping each other where as in some scenarios they do not overlap.

    How can checking color values help ? Can you please explain in more detail ?

  4. #4

    Re: Open gles 2.0 object collision

    Draw a sphere around your object. Lets say 2 objects with 2 spheres, radii r1 r2, now calculate a distance between two centres of circle. If distance is less than r1+r2 then you have collision.

  5. #5
    Junior Member
    Join Date
    Oct 2012
    Posts
    1

    Re: Open gles 2.0 object collision

    3) Are there FRONT_RIGHT, FRONT_LEFT, BACK_RIGHT, and BACK_LEFT buffers or just FRONT and BACK buffers?

  6. #6

    Re: Open gles 2.0 object collision

    Quote Originally Posted by tysonlee
    3) Are there FRONT_RIGHT, FRONT_LEFT, BACK_RIGHT, and BACK_LEFT buffers or just FRONT and BACK buffers?
    only FRONT and BACK buffers. you can specify in eglCreateSurface()

Similar Threads

  1. Open GLES application displays black screen
    By sowmyaa in forum OpenGL ES general technical discussions
    Replies: 8
    Last Post: 05-07-2012, 11:44 PM
  2. Open GLES applications on Windows embedded CE 6.0
    By shekharbiradar in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 08-23-2009, 10:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •