Skip to content

qjtdsqqm94akkyysgjdqo3hx1jn6l17/tinyrenderer-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tinyrenderer, but in bash (and ANSI escape sequences)

Result from lesson 1

What?

As is said, this is an attempt to follow ssloy's tinyrenderer course (older version here) but without stepping half a foot outside GNU bash & ANSI escape sequences. And as seen from the state of this repo - it's... not really going too well.

No AI/vibe coding was used. This bad idea is 100% birth from a human, start to finish.

Why?

Once again, good question.

How?

The "canvas" initialization and pixel drawing was handled by my bash-graphics scripts. Basically it uses ANSI escape sequences to change the printing cursor's position and colors (foreground and background). It then prints a character, which with both the fg and bg being changable represents 2 vertcally stacked pixels.

Performance?

You Serious?

TODO:

  • obj parser
  • Rest of course
  • Rest of course, but 100% integer math
  • o p t i m i z a t i o n s

Course Progress:

  • Bresenham’s line drawing
    • Homework: obj wireframe rendering
  • Triangle rasterization
  • Barycentric coordinates
  • Hidden faces removal
  • Naive camera handling
  • Better camera

Showoffs:

lesson1_whale.mp4
diablo.mp4

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages