Results 1 to 2 of 2

Thread: detecting if within a 3D model

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2002
    Posts
    16

    detecting if within a 3D model

    Hi

    I have an object, a complex object at that, (this has nothing to do with display etc so no probs with effiecency), basically i need to produce a 3D binary matrix, where a 1 indicates the object (ie on surface or inside the object) and a 0 indicates not on/inside.
    Question is how can i go about producing this matrix from an opengl model? Which method can i use to enable me to do this?

    I think i have an idea on how to do this to form a matrix of the skin(so to speak) of the model, but then how can i do it for the body of the model?

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    653

    Re: detecting if within a 3D model

    Maybe a combination of gluproject/unproject and the depth buffer. Find the near and far planes of polys at that scren x,y to determine if you are within your model.

Similar Threads

  1. Need help detecting collision
    By dellatorre in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-07-2010, 07:45 AM
  2. Detecting Texture RAM
    By pleopard in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-09-2009, 04:47 PM
  3. Detecting SM2.0 / SM3.0 support.
    By k_szczech in forum OpenGL: GLSL
    Replies: 14
    Last Post: 04-30-2006, 08:44 AM
  4. Detecting Edges
    By KurtCob in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 01-27-2001, 12:13 PM
  5. Collision Detecting
    By Running_Wolf in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 01-17-2001, 08:13 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