Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manorajesh/rusty-graphics
Exploration of Graphics Programming with Rust.
https://github.com/manorajesh/rusty-graphics
2d-graphics 3d-graphics gpu-programming graphics raycasting
Last synced: about 2 months ago
JSON representation
Exploration of Graphics Programming with Rust.
- Host: GitHub
- URL: https://github.com/manorajesh/rusty-graphics
- Owner: manorajesh
- License: mit
- Created: 2023-07-10T20:30:30.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-24T05:20:14.000Z (over 1 year ago)
- Last Synced: 2023-07-24T06:26:28.039Z (over 1 year ago)
- Topics: 2d-graphics, 3d-graphics, gpu-programming, graphics, raycasting
- Language: Rust
- Homepage:
- Size: 470 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# threedee raycaster
A 3D raycaster built with Rust![Demo picture](https://github.com/manorajesh/rusty-graphics/blob/threedee/images/demo1.png)
![Demo picture](https://github.com/manorajesh/rusty-graphics/blob/threedee/images/demo2.png)
![Demo picture](https://github.com/manorajesh/rusty-graphics/blob/threedee/images/demo3.png)## Installation
```
git clone https://github.com/manorajesh/rusty-graphics.git && cd rusty-graphics
cargo run
```## Usage
Use the arrow keys to traverse the extremely entertaining room. Fog adds that scary touch## Why
I wanted to explore graphics programming with this being the stepping stone to `wgpu` and the world of GPU programming. This repo chronicles my long but fulfilling journey with 3D and 2D graphics.#### Important Code
The [`draw`](https://github.com/manorajesh/rusty-graphics/blob/9a29953aac353d34af41111cc6ac0443a011c3f8/src/raycaster.rs#L151-L241) function is responsible for casting the rays and rendering them accordingly.