lean4-raytracer
tinyraytracer
Our great sponsors
lean4-raytracer | tinyraytracer | |
---|---|---|
2 | 9 | |
110 | 4,868 | |
- | - | |
3.5 | 0.0 | |
4 months ago | 9 months ago | |
Lean | C++ | |
Apache License 2.0 | - |
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.
lean4-raytracer
-
Functional Programming in Lean – a book on using Lean 4 to write programs
Lean is currently moving to the 4th iteration which is the first intended to be a general-purpose programming language. It "is currently being released as milestone releases towards a first stable release". For now the main goal is to port mathlib to the new version, and then they will concentrate on the compiler. So it is not production ready. But that doesn't mean it is not suitable for building any programs now. There is a simple raytracer written in Lean [1]. I have built a chip8 interpreter with it and the only problem was the lack of an ecosystem, meaning I had to build the necessary libraries myself.
Now it has a RC GC and boxes everything >= 64 bits, and as the compiler isn't polished it is probably significantly slower. In the referenced raytracer repo you can find rendering time compared to the C implementation (Lean is 25x slower, but that was a year ago).
tinyraytracer
-
What are the best textbooks/resources for learning graphics programming practically in 2023?
Tiny raytracer and the related tiny series are pretty good implementations of certain popular rendering techniques, without the use of an API.
- Where do I start learning graphics programming?
-
yep people like this exist
For some reason, that reminded me of this.
- It is so boring
- Project based learning: a blank for a platformer game in 296 lines of C++
-
Dissecting the Apple M1 GPU, Part III
An excellent starting point for anyone interested in low-level graphics programming is Sokolov’s tinyraytracer [0]. It’s also a great way to learn a new language (work through the code while porting it to $DIFFERENT_LANGUAGE).
What are some alternatives?
Open3D - Open3D: A Modern Library for 3D Data Processing
PortableGL - An implementation of OpenGL 3.x-ish in clean C
vello - An experimental GPU compute-centric 2D renderer.
sdl2-demo - sdl2 platformer game blank repository
ApolloRaytracer - A hobby Blinn-Phong shaded ray-tracer written in C++
sightpy-weekend-raytracer - This raytracer is a versatile implementation of Ray Tracing in One Weekend Book Series which uses Python as the interface for the scene description
appleseed - A modern open source rendering engine for animation and visual effects
yocto-gl - Yocto/GL: Tiny C++ Libraries for Data-Driven Physically-based Graphics
tinyrenderer - A brief computer graphics / rendering course
paardensprong-cpp - Simple paardensprong puzzle game made with SFML in c++
foolrenderer - A tiny software renderer implemented from scratch without the use of graphics API, used to understand how GPUs work.
Imath - Imath is a C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics