Posts

Showing posts with the label Raycast

Coding Adventure: Ray Marching by Sebastian Lague

Image
April 12, 2021 Ray Marching Unity Title: Coding Adventure: Ray Marching By: Sebastian Lague Youtube - Tutorial Description: Introduction to the concept of ray marching with some open available projects. Overview This video covers some of the basics of ray marching while also visualizing their approach and creating some interesting visual effects and renders with the math of signed distance along with ray marching logic. The major ray marching method they show is sphere tracing, which radiates circles/spheres out from a point until anything is collided with. Then, the point moves along the ray direction until it reaches the radius of that sphere projection and emits another sphere. This process is repeated until it radiates a very small threshold radius sphere, which is when a collision is determined. The resulting project made is available, and I think it would be very useful and interesting to explore. The Youtube video description also holds many lin...

Architecture AI Pathing Project: Upward Raycast for Better Opening Detection

Image
January 11, 2021 Raycast for A* Nodes Architecture AI Project Original Downward Raycast and Downfalls The raycasting system for detecting the environment to setup the base A* pathing nodes was originally using downward raycasts. These rays traveled until they hit the environment, and then set the position of the node as well as whether it is walkable or not. An extra sphere collision check around the point of contact was also conducted so as to check for obstacles right next to the node as well. This works for rather open environments, but this had a major downside for our particular needs as it failed to detect openings with in walls and primarily doors. Doors are almost always found within a wall, so the raycast system would hit the wall above the door and read as unwalkable. This would leave most doors as unwalkable areas because of the walls above and around them. Upward Raycast System Approach Method The idea of using an upward raycast was that it would help al...