Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Texture space collision detection

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2007
    Posts
    2

    Texture space collision detection

    Hi, I need some help with glsl and 3d texture mapping. I display a Volume using viewport aligned slices (using a 3d texture); besides that I would like to draw some polygons (a triangle mesh) so I would like to know when those polygons are textured with the volume 3d texture; it`s like some kind of “texture mapping based collision detection”, any ideas how to do that?, and how to get the collision info back from the GPU to the CPU?....thanks, Jose.

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,575

    Re: Texture space collision detection

    Marching cubes ?

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2007
    Posts
    2

    Re: Texture space collision detection

    Hey ZbuffeR thanks for your answer, but the idea is not to use or to create more polygons; just the mesh polygons and the 3d texture....

  4. #4
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,575

    Re: Texture space collision detection

    I still don't really understand your problem

    Simply enable depth writes for the mesh, enable depth test for both the mesh and the slices.
    Draw your mesh first, then the slices in back to front order.

    Is that what you need ?

Posting Permissions

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