An open API service indexing awesome lists of open source software.

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"

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:
![Test Image 1](image/Bull.png)
![Test Image 2](image/car.png)

**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