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

Thread: Simulating Sensors In OpenGL?

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2013
    Posts
    26

    Simulating Sensors In OpenGL?

    I wanna know if simulating the behaviour of a sensor in opengl is feasible? Let's say sonar sensor.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,117
    OpenGL is a render system - it draws things on a display. So you can simulate a sonar sensor but the OpenGL is only the back-end to display the sonar screen.

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2013
    Posts
    26
    @tonyo_au,
    thanks for the reply. What I'm trying to do is I have a robot ( sphere or disk ) in 2D controlled by mouse movement. Now, this disk has ability to render beams ( lines ) as a half circle scan with a given angle (1 degree ). There is a static obstacle in this virtual environment. Once the obstacle inside the scan area, it gives me the distance as a real format laser sensor data. I'm totally sure this is possible, however I've not found any tutorial or book about this issue so far.

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Posts
    713
    however I've not found any tutorial or book about this issue so far.
    What issue? You've mostly given a description of your setting, but not a very clear problem statement. Which of the things you describe are given, which do you want to calculate?
    If you have the sensor data you describe you can use OpenGL to make a visualization of it. If on the other hand you want to simulate the sensor itself you basically need to compute intersections of rays with a 3D environment. OpenGL does not help with that. You may want to look at ray tracing systems, in particular ones that are not specifically built for image generation - for example Nvidia's OptiX can be used for this purpose.

  5. #5
    Junior Member Newbie
    Join Date
    Apr 2013
    Posts
    26
    @ carsten neumann,
    thanks for the reply.

Tags for this Thread

Posting Permissions

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