Georg Hopp
d603a9140d
more iterators
6 years ago
Georg Hopp
29c366d709
More iterators
6 years ago
Georg Hopp
8f0edfaa14
Start making an iterator from the line algorithm
6 years ago
Georg Hopp
721b89a171
Start polygon fill
6 years ago
Georg Hopp
df1eb1c028
Pass 1/z into rasterizer and already interpolate on polygon edges
6 years ago
Georg Hopp
9911ab0166
Add homogenous point.
A homogenous point, that is (x, y, z, w) is needed for some
transdormations and calculations. Right now i need it to get
correct 1/z values after 2D projection which in turn will be
needed for z-buffer and texture mapping.
6 years ago
Georg Hopp
6fd0ac65e9
Make TMatrix constructors part of the implementation
6 years ago
Georg Hopp
18da9a0891
Add a readme file
6 years ago
Georg Hopp
b2f9d492c1
first very simple shading
Add a very simple shader with a direct light source. The shader
modifies the color of a polygon just by the angle between the face
normal and the light source. This has no physical resemblance at
all but let me check if the normal calculation works so far...
6 years ago
Georg Hopp
fb45f6ccb3
start normal calculation
6 years ago
Georg Hopp
58a45aafd1
more notes
6 years ago
Georg Hopp
a1ac3b0b39
Add some interesting urls
6 years ago
Georg Hopp
2052a7a843
user projection matrix
6 years ago
Georg Hopp
c1655b4efb
Correct transformation matrix handling
6 years ago
Georg Hopp
c57ce571b8
try to optimize fractional code
6 years ago
Georg Hopp
b06ee13bf7
display both f64 and Fractional based polygons
6 years ago
Georg Hopp
561f75cd4a
Vector code now works with Fractions .. but slower
6 years ago
Georg Hopp
3e231c2474
Alternative reduce with specifiable precision
6 years ago
Georg Hopp
1e6d133ffe
Add geometric primitives
6 years ago
Georg Hopp
1cfd791833
display remaining sleep time for next frame in window
6 years ago
Georg Hopp
d8cd5ed970
more accurate timing
6 years ago
Georg Hopp
35ec5d3614
Fix sin and cos handling for negative degrees
6 years ago
Georg Hopp
28eea9b40e
Box reference to shared memory
6 years ago
Georg Hopp
6743cf2985
Move drawing to separate thread
6 years ago
Georg Hopp
f06b625998
Add first simple triable animation based on fractionals
6 years ago
Georg Hopp
45d1af9c59
Add first transformed Polygon
6 years ago
Georg Hopp
b36e20a2a0
Add Drawable primitives
6 years ago
Georg Hopp
ade2a66b37
Add some xcb examples.
Include a shm example which I created by analyse the C exmaples and
try to reproduce with rust libc and rust-xcb.
6 years ago
Georg Hopp
e433cb138a
ignore generated C examples
6 years ago
Georg Hopp
f711588e34
Add C xcb shm examples
6 years ago
Georg Hopp
4edbecaf81
Add a way to merge an iterator of transformation matrices
6 years ago
Georg Hopp
c597617898
Sort and clean uses
6 years ago
Georg Hopp
9f21ae3a6d
sort uses
6 years ago
Georg Hopp
8312383ffa
continuous sqrt now uses a slice internally
6 years ago
Georg Hopp
c99cc1eea0
Add tail recursice bresenham line
6 years ago
Georg Hopp
8108c69c55
Fix reduce code
6 years ago
Georg Hopp
725ece9a4a
Generics for Vector and Transform
6 years ago
Georg Hopp
41d4d98bae
More Vector tests
6 years ago
Georg Hopp
8274976de6
Add basic geometric transformations
6 years ago
Georg Hopp
d522cf78ec
reduce very large fractions close to a whole number to the whole number
6 years ago
Georg Hopp
466367aaa9
Add links to information about transformations
6 years ago
Georg Hopp
18b0a54202
Add Display trait for Vector
6 years ago
Georg Hopp
31aa7b729c
Add first vector math stuff
6 years ago
Georg Hopp
ae2f27cee1
Fix some edges on Fractional handling
6 years ago
Georg Hopp
7f9b67443e
Add tangens and improve fractional rep
6 years ago
Georg Hopp
93df7adadf
Add recursion example
6 years ago
Georg Hopp
38ae5d627d
Add more interesting links
6 years ago
Georg Hopp
15ea57a24b
Add continued fraction and use them to get a better sqrt approximation
6 years ago
Georg Hopp
5cd265a6f0
Add sqrt approximation for fractionals
6 years ago
Georg Hopp
fef116697a
add trigon functions sin and cos as static tables of Fractional
6 years ago