XaiJu
SebastianLague
SebastianLague

patreon


Unfinished LOD-system files for download

Hello! I'm not sure if this is of any use to anyone in its current unfinished form, but since I'm not working on it at the moment and have had a couple queries about it recently, I thought I'd share the code.

It's essentially just 6 quadtrees (one for each face of the cube that gets morphed into the planet), plus some extra on top for handling the neighbours of quads across those separate faces. For example in the top-left image the black quad is the currently selected one, and then in red, green, yellow, orange are its N, W, S, E neighbours.

In the Cube scene you can select the "LOD Test" object and then left-click on any of its faces to split them. Right-clicking will highlight a quad and its 4 neighbours.

In the Sphere scene, you need to enter play mode and then a sphere will appear. You can then move the viewer object and the sphere will be subdivided according to distance. (Enter shaded-wireframe mode to see).

Sorry I haven't taken this completion, but hopefully it's useful as a starting point to someone.

Unfinished LOD-system files for download

Comments

My wish for a decimate algorithm visualize!

Hi! It stands for level of detail.

Sebastian Lague

Excuse me. What is LOD stand for?


More Creators