•  


GitHub - cppd/math: The more dimensions, the better the geometry.
Skip to content
/ math Public

The more dimensions, the better the geometry.

License

Notifications You must be signed in to change notification settings

cppd/math

Repository files navigation

Math Viewer

Just for fun with mathematics and stuff

image

Contents

File types

  • OBJ and STL files with objects in 3-space
  • Extended OBJ and STL files with objects in n-space
  • Text files with the coordinates of points in n-space

Rendering

GPU

  • Triangle meshes (rasterization)
  • Volumes (ray marching)
  • Isosurfaces (ray marching)
  • Shadows (ray tracing, ray marching, shadow mapping)
  • Order-independent transparency (lists of fragments)

CPU

  • Bidirectional path tracing with multiple importance sampling
  • (n-1)-simplex meshes in n-space on (n-1)-dimensional screen
  • n-dimensional microfacet BRDF
  • Spectral rendering

Algorithms

2-space

C++ and GLSL

Subject Algorithms
Discrete Fourier transform for arbitrary sizes Bluestein's algorithm and radix-2 fast Fourier transform
Optical flow Pyramidal Lucas-Kanade
Convex hull Divide et impera

Spaces with arbitrary number of dimensions

C++

Subject Algorithms
Convex hull Randomized incremental
Delaunay triangulation Convex hull of paraboloid
Voronoi diagram The Delaunay triangulation
Manifold reconstruction Cocone
Manifold reconstruction with boundary detection BoundCocone
Euclidean minimum spanning tree Kruskal’s algorithm and the Delaunay triangulation
Intersection of hyperplanes Gaussian elimination
Intersection of convex polytopes The simplex algorithm
Ray intersection acceleration using spatial subdivision 2 d -trees
Ray intersection acceleration using object subdivision Bounding volume hierarchies and the surface area heuristic
Eigenvalues and eigenvectors of symmetric matrices Jacobi method
Least squares fitting a plane to points Principal component analysis
State estimation The Kalman filter
The extended Kalman filter (EKF)
The unscented Kalman filter (UKF)
The H filter

Technical details

Property Value
Programming languages C++23, GLSL 4.60
C++ compilers GCC 13, Clang 18
Platforms Linux
Graphics and compute APIs Vulkan 1.3 with ray tracing extensions
Frameworks Qt 6
Libraries FreeType, GMP
Optional libraries cuFFT (for DFT tests), FFTW (for DFT tests)
Build systems CMake

Images

3-manifold reconstruction and path tracing in 4-space

2D images of a 3D image of the 3-manifold reconstructed from the points on the 3-torus T 3 (S 1 ×S 1 ×S 1 )

  • 5-space
    • The convex hull
    • 4-simplex facets
  • 4-space
    • 3-simplex mesh without boundary
    • 4-parallelotope hierarchy
    • 4-dimensional microfacet BRDF
    • 3-ball light source
    • 4-dimensional soft shadows
    • Parallel projection onto 3D screen

Volumetric rendering

image image image image image image image image image image image image image image image

4D Cornell box

2D images of a 3D image of the 4-dimensional Cornell box

  • Seven 3-parallelotopes (the sides of the box)
  • One 3-parallelotope light source
  • One 3-simplex mesh without boundary (3-sphere)
  • One 4-parallelotope
  • 4-dimensional microfacet BRDF
  • 4-dimensional soft shadows
  • Perspective projection onto 3D screen

image image image image

Real-time rendering

Semitransparent objects

  • Triangle mesh (green) and its ray tracing shadows
  • Isosurface (blue) and its ray marching shadows

image image image image

3D models

Spectral rendering

  1. Blackbody 2500 K
  2. Daylight 4000 K
  3. Daylight D65
  4. Blackbody 12000 K

image image image image

image image image image

4D polytope

4-dimensional cross-polytope

v -11   0   0   0
v   0 -12   0   0
v   0   0 -13   0
v   0   0   0 -14
v   0   0   0  15
v   0   0  16   0
v   0  17   0   0
v  18   0   0   0
f 1 2 3 4
f 1 2 3 5
f 1 2 6 4
f 1 2 6 5
f 1 7 3 4
f 1 7 3 5
f 1 7 6 4
f 1 7 6 5
f 8 2 3 4
f 8 2 3 5
f 8 2 6 4
f 8 2 6 5
f 8 7 3 4
f 8 7 3 5
f 8 7 6 4
f 8 7 6 5

image image image image

- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본