Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Ray tracing in 2d  (Read 868 times)

0 Members and 1 Guest are viewing this topic.

madman32

  • Newbie
  • *
  • Posts: 1
    • View Profile
Ray tracing in 2d
« on: April 27, 2020, 11:58:24 am »
Hi,

I'm trying to make a 2d robotic simulation (not using ROS/Gazebo) using SFML and would like to add a lidar sensor or other range finding sensors into the simulation. While this could be done by iterating through all objects in the scene and checking if the ray collides with the object when projected up to max distance...

I'm wondering if its possible to get the 2d simulation image from the window and use the GPU through SFML to ray trace the distance to the objects?

 

anything