Results 1 to 6 of 6

Thread: Radar Display

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2009
    Posts
    9

    Radar Display

    Hi there,
    I'm new to OpenGL and making an application as Radar Display using OpenGL. Can anyone help me is some links which gives some sample codes or data about Radar Displays in openGL.

    Thanks in advance.

  2. #2
    Senior Member OpenGL Pro Ilian Dinev's Avatar
    Join Date
    Jan 2008
    Location
    Watford, UK
    Posts
    1,294

    Re: Radar Display

    Why would anyone have a tutorial or info on such a specific thing, which branches into a specific area, useless for anything else?
    Imagine a radar, how it looks, when do bleeps happen. Do some trigonometry maths on paper, and then voila - you'll have the idea.

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2009
    Posts
    9

    Re: Radar Display

    Hi,
    Thanks for your reply.
    I've developed it upto some level but have some problems.
    I've a circle and a pointer which moves along the peripheri of the circle. Its like clock. I have to display all the targets withing the circle and keep the poinetr moving. Since i'm using glClear (GL_COLOR_BUFFER_BIT) and moving the pointer, all the targets which are displayed in the circle also disappeare.

    Can you please suggest me something as i'm very new in openGL.

    Thanks in advance.

  4. #4
    Senior Member Frequent Contributor scratt's Avatar
    Join Date
    May 2008
    Location
    Thailand
    Posts
    555

    Re: Radar Display

    Draw all the points every time you do glClear, but have a timer or count for each one, which resets to a count (say 10) each time the pointer passes them.

    Each time you draw the points decrement their counter and at the same time divide the dots colour by some value which will make it get darker. For example times each colour component by 0.1;

    Stop drawing a dot when it's counter is 0.

    This is a very basic way to do it.

    A more nifty way for the future would be to use shaders and FBOs and draw the points only once when the pointer passes them like a real radar, and feed a copy of the last framebuffer into the next one but processed so that is is faded by a percentage... That method would almost exactly simulate the effect of a real radar... But you'll need to do some reading before you attempt that I suspect.
    And thinking about it, whilst nice, it's probably a lot of overhead for a few dots!!

  5. #5
    Junior Member Newbie
    Join Date
    Mar 2009
    Posts
    9

    Re: Radar Display

    Hi,
    Thank you very much for your valuable reply.
    But i've one doubt. As the pointer goes increasing from 0 deg to 359 deg and evry time if i draw all the points wouldn't it be very slow and flickering will occur as these FBO and framebuffer are really new to me so don't know.
    If you have any link or code which give some basic of doing this type of application, please forward me.

    Thank you very much in advance.

  6. #6
    Senior Member Frequent Contributor scratt's Avatar
    Join Date
    May 2008
    Location
    Thailand
    Posts
    555

    Re: Radar Display

    Google is your friend..

    wrt to flickering, you need to look into double buffering.
    Again Google is your friend.

    Try Nehe's tutorials, or Lighthouse 3D, and for FBOs try googling "Songho FBO".

Similar Threads

  1. radar chart
    By elsanna in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-17-2014, 05:01 PM
  2. Radar Display
    By Krishna Murthy in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-09-2013, 11:03 PM
  3. radar display effect
    By mythcat in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-21-2011, 10:22 PM
  4. Radar Display
    By Hiten in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-09-2009, 05:34 AM
  5. Radar Display Imaging
    By Brad Howes in forum OpenGL: Advanced Coding
    Replies: 17
    Last Post: 05-07-2007, 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