Skip to content

WebGPU-Art/caterfoil.ts

Repository files navigation

Caterfoil - 4D objects rendering on 2D screen

Demo (try with Gamepad) https://webgpu.art/caterfoil.ts/. By holding (face4) button, there are some controls to change w direction.

Caterfoil

Reused some code from https://github.com/WebGPU-Art/lagopus.ts .

4D objects to 2D projection is calculated with Geometric Algebra inner product. And -z and w directions is combined (-z+w)/√2 as depth direction of screen.

License

MIT

About

[EXPERIMENTING] 4D object project to 2D screen

Topics

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages