Skip to content

Latest commit

 

History

History
47 lines (24 loc) · 1008 Bytes

File metadata and controls

47 lines (24 loc) · 1008 Bytes

tinyrenderer-rust

Implementing the Dmitry V. Sokolov (ssloy) tinyrenderer in rust.

The goal at first is port the main logic to rust with minimal changes besides maybe rust special stuff. Also I try to always generate the same images as the original cpp code,

Progress

Results

Just some images that were generated while coding this.

Wireframe

wireframe

Gray shaded head

The normal generated image

Gray shades

Color theme shading

I added a function that allows shading by a range of colors

Color theme shading

Z Buffer integrated into the scanline method

Z Buffer

Texture mapping

Texture mapping

Frog test:

frog test

Perspective correction

Perspective correction

Moving the camera

Moving the camera