Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zadockmaloba/zig-raylib-test

An example (WIP) of how to use raylib with zig
https://github.com/zadockmaloba/zig-raylib-test

Last synced: 8 days ago
JSON representation

An example (WIP) of how to use raylib with zig

Awesome Lists containing this project

README

        

# ZIG-RAYLIB-TEST

## Requiremnts

* Zig - 0.13.0

``
cd ./zig-raylib-test/ &&
zig build run
``

## Purpose
* The main purpose of this repo is to finally load VTK files via opengl
* I'm using raylib since it will abstract most of the complexities

## Objectives
- [x] Link with raylib
- [ ] Link with raylib using zig dependecies
- [x] Create basic window
Screenshot 2024-08-08 at 22 49 41
- [x] Render basic 2D shapes with raylib (Circle, Triangle, Rectangle)
- [ ] Render basic 3D objects with raylib (Cube)
- [ ] Render complex 3D objects with raylib (Cone, Sphere, Donut)
- [ ] Develop basic camera controls (e.g., orbit, zoom, pan) for interacting with 3D models.
- [x] Implement functionality to load VTK files.
Screenshot 2024-08-21 at 22 12 35
Screenshot 2024-08-22 at 09 48 46
- [ ] Parse the VTK file format to extract vertex, edge, and polygon data.
- [ ] Write and integrate vertex and fragment shaders for rendering the VTK data.
- [ ] Implement basic lighting and shading.
- [ ] Use OpenGL to render the parsed VTK data in the raylib window.
- [ ] Create a simple UI for file loading, camera control, and rendering options.
- [ ] Use raylib's GUI components or integrate a minimal UI library.
- [ ] Optimize VTK loading and rendering performance.
- [ ] Implement frustum culling or level of detail (LOD) techniques.