Results 1 to 2 of 2

Thread: Sphere surface picking

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2012

    Sphere surface picking

    Im currently trying to create an application where you can draw on the surface of a sphere.

    At the moment I'm having trouble working out exactly on the sphere the user has clicked, then converting that to a point within the texture.

    Any help would be appreciated, if someone gave me the steps I'm sure I cold covert it to code.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jan 2012

    Re: Sphere surface picking

    If you only want the texture coordinate, just render the object with texture coordinates as color in an offscreen renderpass and read out the pixel at the mouse position.

Similar Threads

  1. Drawing a 3D Sphere with a circle on its surface
    By rnvis0 in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 01-14-2019, 07:08 AM
  2. Show function on the surface of a sphere
    By AeRoOo in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 03-14-2014, 07:23 PM
  3. ? Curved surface - overlay a surface on a sphere ?
    By Z-Knight in forum OpenGL: Basic Coding
    Replies: 27
    Last Post: 01-13-2009, 05:09 PM
  4. Picking, ctrl pts on nurbs surface
    By JamesH in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 12-16-2007, 12:40 PM
  5. Bezier Surface Picking
    By Duke Nukem in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 07-15-2005, 05:45 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
Proudly hosted by Digital Ocean