https://github.com/shendrew/cuda-renderer
A simple real-time 3D renderer built from scratch and accelerated with CUDA
https://github.com/shendrew/cuda-renderer
3d-graphics cuda-kernels
Last synced: 3 months ago
JSON representation
A simple real-time 3D renderer built from scratch and accelerated with CUDA
- Host: GitHub
- URL: https://github.com/shendrew/cuda-renderer
- Owner: shendrew
- Created: 2025-03-23T03:22:19.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-27T15:37:54.000Z (5 months ago)
- Last Synced: 2025-08-28T00:40:16.547Z (5 months ago)
- Topics: 3d-graphics, cuda-kernels
- Language: C++
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CUDA Renderer
A simple 3D renderer accelerated with CUDA.

## Controls
- `UP/DOWN`
- zoom camera in/out
- `LEFT/RIGHT`
- horizontally pan camera
## To Run
1. download the repo and prepare directories
```bash
git clone https://github.com/shendrew/cuda-renderer
mkdir build && cd build
```
2. build and compile
```bash
cmake -DENABLE_CUDA= .. && cmake --build .
```
3. render `.OJB` file
```bash
./cuda_renderer
```
## Dependencies
```
- CUDAToolkit (offical instructions)
- GLEW
- SDL2
```
To install the dependencies for `Debian/Ubuntu`, run:
```bash
sudo apt install nvidia-cuda-toolkit libglew-dev libsdl2-dev
```