ScratchData LogoScratchData
Back to sureornot's profile

Ray Box Intersection

SUsureornot•Created May 17, 2021
Ray Box Intersection
6
3
41 views
View on Scratch

Instructions

A test for Ray-box (AABB) intersection algorithm. The yellow, green and red colors indicates the pixels where ray and the bounding box intersected. Sliders to change the bounding box and version of testing. 1 original 2 improved 3 optimized (effective for multi-boxes testing) Sliders x1, x2, y1, y2, z1, z2 to change the box boundary. space bar to reset e key to end.

Description

Ray Box Intersection Test is used for accelerating ray tracing (Bounding sphere can also be used). Recommend to use TurboWarp https://turbowarp.org/

Project Details

Project ID531392898
CreatedMay 17, 2021
Last ModifiedJuly 24, 2021
SharedMay 30, 2021
Visibilityvisible
CommentsAllowed