Results 1 to 2 of 2

Thread: encircle any point on the screen

  1. #1

    encircle any point on the screen

    How can I draw a circle surround any given point on the screen? Normally, OpenGL draws the circle centered at (0,0). My position indicator consists of pixels rendered as rectangles. The number of pixels is a multiplication of angle and range given to me. For example, if ppi shall be drawn for 360 degree and range 1000, then I draw 360 * 1000 pixels on the screen. Accordingly, any point is detected with its relevant angle and range. Let's say a point exists at 50 degree and range 500. How can I encircle that point now?

  2. #2
    Quote Originally Posted by saman_artorious View Post
    How can I draw a circle surround any given point on the screen? Normally, OpenGL draws the circle centered at (0,0). My position indicator consists of pixels rendered as rectangles. The number of pixels is a multiplication of angle and range given to me. For example, if ppi shall be drawn for 360 degree and range 1000, then I draw 360 * 1000 pixels on the screen. Accordingly, any point is detected with its relevant angle and range. Let's say a point exists at 50 degree and range 500. How can I encircle that point now?
    I solved the problem. I calculated the central coordinate of the target circle and added it to the original drawing which is rendered at (0,0).

Similar Threads

  1. Getting screen location of 3D point.
    By c4ooo123 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 09-27-2017, 07:25 PM
  2. Get screen coordinates of a transformed point
    By alb84 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-10-2010, 09:37 AM
  3. why my z axis is point to the inner of the screen?
    By yellowtiger in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-02-2009, 12:37 AM
  4. Getting textures to always point at the screen?
    By Kirado in forum OpenGL: GLSL
    Replies: 6
    Last Post: 03-26-2008, 10:36 AM
  5. Finding the screen coords of a 3D point?
    By lwenke in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 05-07-2000, 01:29 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