1
General / 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?
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?