https://github.com/korolevsoftware/openglraycastingcore
:camera: :arrow_upper_right: Simple example "How to create ray tracing in OpenGL"
https://github.com/korolevsoftware/openglraycastingcore
opengl raycast raycaster raycasting raytracer raytracing sdl2
Last synced: about 1 month ago
JSON representation
:camera: :arrow_upper_right: Simple example "How to create ray tracing in OpenGL"
- Host: GitHub
- URL: https://github.com/korolevsoftware/openglraycastingcore
- Owner: KorolevSoftware
- License: mit
- Created: 2020-07-19T16:51:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-22T12:23:56.000Z (almost 5 years ago)
- Last Synced: 2025-03-29T08:43:42.791Z (about 2 months ago)
- Topics: opengl, raycast, raycaster, raycasting, raytracer, raytracing, sdl2
- Language: C
- Homepage:
- Size: 501 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenGL Ray Casting Core
This is my old project for ray tracing in GPU. For more compatibility, I used OpenGL. Origin project use Python and OpenGL 4.4, but I redid the project to C++ and OpenGL 3.3( If you remove the VAO it works at 3.0 or 2.X). This is simple example, how to create simple BVH tree for triangle mesh, and travel BVH in GPU with program stack. I try create API look like OptiX.**Sceen shots**
Using ray casting for visualization object with normal:

**Use libs:**
- [SDL2]
- [GLM]
- [glad][GLM]:
[glad]:
[SDL2]:**FPS camera control**
wasdqe - for move
- w - front
- s - back
- a - left
- d - right
- q - up
- e - down