kool Demos

The following demos demonstrate various features of the engine. All demos run in the browser as well as on Desktop JVM.


Demos

Following the links launch each demo directly in the browser. (Desktop-) Chrome is recommended but other browsers might work as well. All demos are implemented in code-only fashion (i.e. without using the editor). The code for all demos is available in the kool repo.

  • Island - Height-map based island incl. some wind-affected vegetation + a basic controllable character.
  • Physics - Ragdoll - Ragdoll physics demo.
  • Physics - Vehicle - A drivable vehicle (W, A, S, D / cursor keys, R to reset) based on the Nvidia PhysX vehicles SDK.
  • Physics - Joints - Physics demo consisting of a chain running over two gears. Uses a lot of multi shapes and revolute joints.
  • Physics - Collision - The obligatory collision physics demo with various different shapes.
  • Embedded UI - Integrated UI framework implemented completely within the engine. Fast, highly customizable and easy-to-use.
  • Particles - Two teams of bees fighting against each other. Simulation can be toggled between CPU and compute-shader (if available, i.e. on WebGPU).
  • Fluffy Bunny - Shell-shading based rendering of animated fur (based on this video).
  • Creative Coding - A few relatively simple demos showcasing different techniques of generating procedural geometry.
  • Procedural Geometry - Small test-case for procedural geometry; all geometry is generated in code (even the roses! Textures are regular images though). Also, some glass shading (shaft of the wine glass, the wine itself looks quite odd when shaded with refractions and is therefore opaque).
  • glTF Models - Various demo models loaded from glTF / glb format
  • Deferred Shading - Thousands of dynamic light sources, bloom and ambient occlusion.
  • Screen-space Ambient Occlusion - Roughly based on this article by John Chapman with slightly optimized sampling (also shamelessly recreated his demo scene).
  • Screen-space Reflections - A simple PBR shaded model with screen-space reflections and up to four spot-lights with dynamic shadows.
  • Physical Based Rendering - Interactive PBR demo with image based lighting for various materials and environments (underlying PBR theory from this awesome article series).
  • Instanced / LOD Drawing - Instanced rendering demo of the Stanford Bunny. Uses six levels of detail to render up to 8000 instances.
  • Mesh Simplification Interactive mesh simplification demo (based on traditional error-quadrics)