3D Rotating Pyramid [ MPU 8 | 3.3 Hz Minecraft Redstone CPU ]
Mod Punchtree Mod Punchtree
3.42K subscribers
5,368 views
291

 Published On Jul 26, 2022

The MPU 8 is my latest and fastest Minecraft Redstone CPU.

Here the MPU 8 is rendering a 3D square based pyramid and rotating it.

This is using the exact same 3d renderer program as the one used for the 3D rotating cube. I have made this to show that it can render any small 3D shape fairly easily.

The matrix multiplications for calculating the rotation and rasterisation of the cube are all being calculated each frame by the CPU.

This is NOT a video and it does NOT use precalculated points - the positions of the points are ALL calculated on the CPU.

For trigonometry i simplified it a lot by assuming that Sin(x) = x and Cos(x) = 1 where x is a small angle, this gives an approximation that is good enough for a couple minutes.
In this program the pyramid becomes more distorted as time progresses due to the rounding errors building up from the division operations as well as the trigonometry assumption.
(this is why the pyramid looks quite twisted and stretched towards the end)

This video been sped up 8x and the tick speed has been set to 800 times speed (so a total speed up of 6400x).

Join the URCL (Universal Reduced Computer Language) discord:
  / discord  

MPU 8 Specs:
• No command blocks or pistons
• 3.3 Hz clock speed (3 ticks or 0.3 seconds per clock pulse)
• 9 stage waterfall pipeline
• 12 general purpose simulated dual read registers (with automatic forwarding at 6 ticks)
• 8 bit word length
• 256 word instruction ROM x2
• 32 bit instruction length (that includes an 8 bit immediate value)
• VLIW architecture
• 32 bit hardware BCD converter
• 8 bit hardware multiplier
• 8 bit hardware divider
• 64x64 pixel display which can be shifted upwards 8 pixels whenever needed
• 1 frame buffer
• Full qwerty keyboard with arrow keys and function keys for user input
• 128 bytes of main RAM
• 512 bytes of screen RAM
• Up to 128 I/O ports
• External 8 kiB paging ROM for storing large amounts of data
• 13 testable flags
• 8 bit character set (a custom one, so not ASCII) which uses 4x8 characters
• Can be started, stopped and reset from the UI
• Almost fully compatible with URCL

MPU 8 ISA:
https://docs.google.com/spreadsheets/...

If you want to support me creating these videos, my Patreon is:
  / modpunchtree  
or my PayPal link is:
https://paypal.me/modpunchtree

show more

Share/Embed