EchoScan | 3D Mapping

EchoScan is an advanced LIDAR scanning system for Roblox that allows players to generate an interactive 3D map of the environment in real-time. This system uses virtual light rays to detect surfaces and objects within the game, simulating real-world LIDAR scanning technology.

Video:

How EchoScan Works

  1. Ray Scanning: EchoScan emits rays from the player’s camera, which scatter in various directions. The number of rays launched is determined by the configuration, and each one measures the distance between the camera and the objects it collides with. The direction of the rays is adjusted by a random angle in both horizontal and vertical axes, allowing for a wider coverage area.
  2. Generation of LIDAR Points: Each time a ray detects an object, a “LIDAR point” is created at that position, represented by a glowing sphere. Points close to the player are colored green, while points farther away are displayed in red. This color scale provides a clear visualization of the object’s distance, making it easy for players to interpret the environment.
  3. Point Persistence: LIDAR points remain active for a period of time, allowing players to observe the results of the scan. The system also cleans up old points when the game’s performance is affected (for example, if the FPS drops below a specified threshold), automatically removing the oldest points to optimize performance.
  4. Performance Control: EchoScan dynamically adjusts the number of rays emitted based on the game’s FPS. If performance drops too much, the number of rays is reduced to prevent the system from overloading the game’s performance. Additionally, the list of generated points is periodically cleaned to ensure that too many points do not accumulate.
  5. Real-Time Interaction: The system allows players to start and stop the scanning by clicking the mouse. This interaction provides immediate control over when to activate or deactivate the LIDAR scan, making it flexible and easy to use in different game contexts.

Main Features

  • 3D Scanning: Visualize the game’s environment through scattered points that represent distances in real-time.
  • Customizable Settings: Adjust the number of rays, maximum range, horizontal and vertical spread, among other options.
  • Performance Optimization: EchoScan adjusts the number of rays and cleans up old points if performance drops, ensuring smooth gameplay.
  • Attractive Visualization: LIDAR points have bright colors and adjustable sizes based on distance, with green for nearby points and red for the farthest ones.
  • Flexible and Controllable: Developers can start, stop, and clean up generated points at any time, as well as modify the scanning range and other parameters.

Possible Uses of EchoScan

  • Exploration Games: Create interactive maps in adventure and exploration games, allowing players to discover their surroundings in detail.
  • Navigation Simulators: Ideal for simulators that require precise spatial information, such as first-person shooter (FPS) games.
  • Obstacle Detection: Useful in AI systems to detect obstacles in the path of characters or vehicles, improving navigation and interaction within the game.

Key Functions

  • Start Scanning: Allows the player to begin scanning by pressing the mouse button.
  • Stop Scanning: Stops the scanning process when the button is released.
  • Clear Points: Removes all points generated by the scan to clear the environment.
  • Adjust Maximum Range: Developers can set a customizable scanning range (from 10 to 500 units).
  • Check FPS: Allows real-time performance monitoring, with automatic system adjustments if the FPS decreases.

Code and Configuration

The system is designed to be highly efficient, using adjustable parameters such as the number of rays (BaseRayCount), the maximum scan range (MaxRange), and the performance threshold (PerformanceThreshold). EchoScan emits rays in random angles and cleans up the visualization when the number of generated points becomes too high.

4 Likes

This is cool!

I remember watching The Voidness gameplay and it featured the lidar mapping and had me spooked of the darkness for a while.

Are you going to continue this and turn it into a game?

1 Like

Glad you liked it! Yeah, I’ll probably turn it into a game with more features.

1 Like

Is there a way to make this only for certain models? Would be great as a powerup in shooter games

1 Like

Hello! Yes, it is possible to make lidar points generate only on certain surfaces.

1 Like

idk whats happening but this looks so cool