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

https://github.com/ajlekcahdp4/vulkan-triangle-intersection

3D spinning triangles intersection Visualization with Vulkan in C++
https://github.com/ajlekcahdp4/vulkan-triangle-intersection

Last synced: 2 months ago
JSON representation

3D spinning triangles intersection Visualization with Vulkan in C++

Awesome Lists containing this project

README

        

# 3D Triangle intersection Visualization with Vulkan in C++
![](images/triangles.gif)
# 1. How to build
## Linux
```sh
git submodule init
git submodule update
cmake -S ./ -B build/ -DCMAKE_BUILD_TYPE=Release
cd build/
make -j12 install
```

# Windows
Try your luck, this application should compile on Windows, but there are no guarantees.

# 2. How to run program
```sh
cd build/
# Available options:
# -h [ --help ] Print this help message
# --broad arg (=octree) Algorithm for broad phase (bruteforce, octree, uniform-grid)
./triangles --broad=uniform-grid < ../hw3d/test/intersect/resources/large0.dat
```

# 3. Preview

## Configure runtime parameters:

Variables such as colors of different objects, lighting intensity as well as color and direction can be configured through the GUI implemented with [Dear ImGui](https://github.com/ocornut/imgui).

![](images/large0_far.png)
![](images/small0_close.png)

## Try out different broad phase datastructures:
```sh
./triangles --broad=uniform-grid < ../hw3d/test/intersect/resources/medium0.dat
```

![](images/medium0.png)