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 2 of 2

Thread: 3d texture coords

  1. #1
    Intern Contributor
    Join Date
    Apr 2011
    Location
    Miami, FL
    Posts
    54

    3d texture coords

    Hi,
    I have a cube with the following vertices
    point4 vertices[8] = {
    point4( -0.5, -0.5, 0.5, 1.0 ),
    point4( -0.5, 0.5, 0.5, 1.0 ),
    point4( 0.5, 0.5, 0.5, 1.0 ),
    point4( 0.5, -0.5, 0.5, 1.0 ),
    point4( -0.5, -0.5, -0.5, 1.0 ),
    point4( -0.5, 0.5, -0.5, 1.0 ),
    point4( 0.5, 0.5, -0.5, 1.0 ),
    point4( 0.5, -0.5, -0.5, 1.0 )
    };

    what would be the 3d text coordinates that I would need to make it correctly ?
    thanks

  2. #2
    Intern Contributor
    Join Date
    Apr 2011
    Location
    Miami, FL
    Posts
    54

    Re: 3d texture coords

    After mapping them, I think the answer is
    0,1,0
    0,1,1
    1,1,1
    1,1,0
    0,0,0
    0,0,1
    1,0,1
    1,0,0

Posting Permissions

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