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: Drawing a "tesselated" disk

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2008
    Posts
    3

    Drawing a "tesselated" disk

    Hello,

    I am working on a fisheye distortion, and am having an issue with the mapping. I would like to draw a disk similar to what is show here(middle of the page, ctrl+f tess):

    http://local.wasp.uwa.edu.au/~pbourk...n/dometexture/
    http://local.wasp.uwa.edu.au/~pbourk...xturecoord.jpg

    Any ideas on how this could be done?

  2. #2
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,370

    Re: Drawing a "tesselated" disk

    I would generate vertices for a cube whose faces are planes composed of a quad grid.

    then, compute each vertex position from the cube center and scale the position vector to the sphere radius.

    Finally draw it, at the scene center, orienting the view in the right direction and using orthographic projection. I think you should obtain the 2nd link picture.

Posting Permissions

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