Skip to content

omnomburp/toy_renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toy Renderer

Learning how to do rendering from scratch.

Progress

Day 1

First attempt at rendering wireframe.

Diablo Pose

Day 2

Found mistake in interpretation of Waveform obj format and fix.

Diablo Pose

First attempt at "filling" triangles

Jank triangles

Finished attempt for filling triangles

Filled triangles

Day 3

Drawing model with filled triangles

Filled model

Playing around with colors and alpha values

Rainbow triangle

"Wireframe" without calling line()

Wireframe rainbow triangle

Day 4

Cull triangles that are backfacing

Grayscale Depth Buffer

Rotate model

Rotated model

Day 5

Hand of the model is clipped after central projection

Clipped model

Applying rotation later helped abit but still clipping abit

Less clipped model

Store z buffer as a vector of floats instead

Diablo model

Day 6

Use linear transformations to transform model now

Matrix transform

Day 7

Playing around with lighting

Diablo phong

Day 8

Include vertex normals from obj file to smooth triangles

Smooth diablo

Day 9

Normal mapping

Diablo

Diffuse color + Specular textures, specular textures kinda jank though

Colored Diablo

Fix specular highlights

Diablo

About

Learning rendering from scratch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors