BunnyLOD
magnum-examples
Our great sponsors
BunnyLOD | magnum-examples | |
---|---|---|
4 | 1 | |
74 | 264 | |
- | - | |
0.0 | 6.8 | |
almost 4 years ago | 2 months ago | |
C++ | C++ | |
MIT License | The Unlicense |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
BunnyLOD
-
question about wasted index Buffer data
If you reuse the same index buffer as proposed then you won't be able to share vertices, which can be an important optimization. In my case I use a 323 cache of vert indices and just insert an index rather than a vertex if the vertex already exists and has the same material. I generate normals in the pixel shader to increase what can be shared, and then use a variant of Stan Melax's edge collapse polygon reduction algorithm to combine edges and reduce triangle count.
-
help implementing LOD edge collapse algorithm
You might want to take a look at Stan Melax's easy mesh simplification technique with edge collapse at http://www.melax.com/polychop (read the full article link) - I've ported the code so it runs cross platform on https://github.com/dougbinks/BunnyLOD
-
Mesh optimization algorithms
I use a variant of progressive meshing, but constrained to preserve edges, normals and ambient occulusion in Avoyd based on Stan Melax's work: https://github.com/dougbinks/BunnyLOD
-
Voxel Vendredi 81
My triangle reduction in Avoyd, loosely based on Stan Melax's progressive mesh approach checks that the vertex being removed is internal to a set of triangles by checking that the internal angles add up to roughly 2Pi. This also ensures only flat surfaces are reduced, although I also perform normal checks and that vertex ambient occlusion gradients are preserved.
magnum-examples
-
Best Vulkan wrapper / low-level graphics library?
While the Vulkan wrapper layer isn't that well documented or advertised yet (to Magnum standards at least), there's a Vulkan Triangle example making use of the basic bits to get you an idea how it might feel like. Apart from that:
What are some alternatives?
meshoptimizer - Mesh optimization library that makes meshes smaller and faster to render
tangram-es - 2D and 3D map renderer using OpenGL ES
chip-8 - Yet another Chip-8 interpreter, but this time with a beautiful interface 💻
OpenGL-3D-Game-Tutorial-Series - C++ OpenGL 3D Game Tutorial Series - Learn to code a Cross-Platform OpenGL 3D Game in C++ from scratch
magnum - Lightweight and modular C++11 graphics middleware for games and data visualization
corrade - C++11 multiplatform utility library
assimp - The official Open-Asset-Importer-Library Repository. Loads 40+ 3D-file-formats into one unified and clean data structure.
VK-GL-CTS - Khronos Vulkan, OpenGL, and OpenGL ES Conformance Tests
Physically-based-deferred-shading - First attempt at writing a good looking 3D renderer. Written in C++ using OpenGL on Ubuntu.
beatmup - Beatmup: image and signal processing library
Bplus.jl - A modern OpenGL 4.6 rendering framework, written in Julia.
Animation-Magic - A cool visualization of all the math that powers 3D character animations.