Backface Culling A Rotating Dodecahedron On An 8bit AVR + OLED
This is pretty much a rehash of a video I already posted (Vector Rotation of a Cube) but after coming across a post on the AVRfeaks forum about Blackface-culling (They called it Z-culling) I couldn't resist giving it a go.
The brain is an Atmel ATMega88 running at 4Mhz.
Program takes up ~60% Code & ~90% Data space & written in Assembly.
Display is an OLED 1.3" 128 x 64 SSD1306 (similar to SSD1308) using SPI (Bit-Banged) (Adafruit have something similar available).
All running at 3.3V
The technique involves determining the direction of each face by calculating a vector that is perpendicular to the plane the face is on (Surface Normal) then comparing it to the viewer's vector.
Because my view of the dodecahedron is down the Z-Axis this made the mathsss much easier.
All better explained here:
http://content.gpwiki.org/index.php/Backface_culling
The wireframe is perspective (depth) adjusted.
IXIBA
Видео Backface Culling A Rotating Dodecahedron On An 8bit AVR + OLED канала DigitalPhage
The brain is an Atmel ATMega88 running at 4Mhz.
Program takes up ~60% Code & ~90% Data space & written in Assembly.
Display is an OLED 1.3" 128 x 64 SSD1306 (similar to SSD1308) using SPI (Bit-Banged) (Adafruit have something similar available).
All running at 3.3V
The technique involves determining the direction of each face by calculating a vector that is perpendicular to the plane the face is on (Surface Normal) then comparing it to the viewer's vector.
Because my view of the dodecahedron is down the Z-Axis this made the mathsss much easier.
All better explained here:
http://content.gpwiki.org/index.php/Backface_culling
The wireframe is perspective (depth) adjusted.
IXIBA
Видео Backface Culling A Rotating Dodecahedron On An 8bit AVR + OLED канала DigitalPhage
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![NI cRIO slow data acquisition test for possible use in SABRE](https://i.ytimg.com/vi/qizacDrja3M/default.jpg)
![16-bit Real-Time FFT Demo on an 8bit AVR (ATMega88 @8Mhz)](https://i.ytimg.com/vi/tCmaOb-VAEo/default.jpg)
![Animation (Bouncing Balls) On 16x2 Alphanumeric LCD (HD44780) + AVR](https://i.ytimg.com/vi/w9BpOxeIcPY/default.jpg)
![Performance Of CORDIC Sine & Cos Calculation On ARM Cortex (STM32F1)](https://i.ytimg.com/vi/c6qNaOmWgGk/default.jpg)
![3-Axis Accelerometer (ADXL345) + AVR + 0.96" OLED](https://i.ytimg.com/vi/Q8tQN6Q5LSY/default.jpg)
![Using CORDIC To Calculate Sine & Cosine On 8bit AVR (ATMega88)](https://i.ytimg.com/vi/Ze4UnE8R4FM/default.jpg)
![Vector Rotation (Spinning 3D Cube) + 0.96" OLED + 8bit AVR](https://i.ytimg.com/vi/bJLI_tq-Rmk/default.jpg)