I Made a 3D Renderer with just redstone!
Вставка
- Опубліковано 3 тра 2024
- I upgraded a previous redstone build to support 3D Wireframe Rendering!
WATCH PART 1 HERE: • I Made a Multi-Line Re...
Patreon: / mattbatwings
Discord: / discord
My socials: linktr.ee/mattbatwings
My texture pack: modrinth.com/resourcepack/mat...
World Download: NON-FUNCTIONAL TO PREVENT CONTENT THIEVES
www.planetminecraft.com/proje...
MCSchematic Python Package - pypi.org/project/mcschematic/
3Blue1Brown's Linear Algebra Series - • 3Blue1Brown: Linear Alg
Thank you @Sloimay for miscellaneous help.
-------------------------
Want to get more involved in the logical redstone community?
Learn Logical Redstone! • Logical Redstone Reloaded
Open Redstone Engineers (ORE): openredstone.org/
0:00 Introduction
1:00 Defining a Wireframe
1:36 Building UI and Vertex memory
3:31 Deriving the Rendering Equations
8:15 Python Simulator
9:09 Building the Renderer
13:32 First successful render!
14:34 Python Schematic Generator
16:02 Building the Frame Buffer
17:25 Rotation time!
21:21 Vertex Rotator
23:06 Final Assembly
23:49 Showcase
Music:
Toby Fox - A CYBER'S WORLD? • A CYBER'S WORLD? - Ігри
Wow, this is very cool stuff! I like the way your brain works.
Hi Notch ❤️
Wow, what an honor! I'm so happy you enjoyed! ❤
Thanks for helping create such an amazing game! Matt is quite a giga-brained individual.
Wait till you see minecraft in minecraft made by sammy
@@mattbatwings Bro got a reply from Notch himself. What a legend!
It's mindblowing when a team makes minecraft in minecraft. Now I can see an explanation of 3D rendering working in Redstone only.
which distro?
@@GrennKren no the one you're using
@@pinkcreeper100 ah i see.. it's been a while since I use linux. Usually just common distro, Ubuntu
@@GrennKren Arch user here :)
Edit: for those of you who are insulting me for using arch, it's really annoying and your jokes are not funny.
@@athsmoothmultimedia5034 I'm on maximum render distance and i still can't find who asked
Geez, this makes my brain want to explode. I can’t believe you just have an idea like this and are actually capable of creating it!
Thank you! :)
Hi wunba
Not really tho. The dude did such a good job explaining it and really simplified it.
I had zero clue how to make a 3D wireframe renderer before, and this dude taught me how in such a simple way.
Absolute legend.
I tried searching this up and the people that taught it all made it sound unnecessarily complicated.
@@honkhonk8009 It is pretty complicated. Matt oversimplified the explanation so it wouldn't be boring to watch. Even while simplifying, he still was able to teach it well, which is pretty amazing.
@@DrToad-lb5jkSo you are saying that you are now able to make a 3d renderer in minecraft?
bro made a 3D cube rotate in a 2D screen in a 3D game in a 2D screen
mindblowing
Bro put redstone and linear algebra in the same video. I freaking love you man.
This channel is so underrated. Teaching math and architecture of rendering systems in under 30 mins is insane. (matt > crafty)
I now really want to make 3d projection in python
true, most youtubers go “HI GUYS TODAY WE WILL BE PLAYING MINECRAFT BUT FIRST A THANKS TO TODAYS SPONSOR RIAD SHADOW LEGENDS”
and proceed to blow your ears for 5 minutes until the video actually starts
@@laserfoxpro ah yes, Riad Shadow Legends
crafty is pretty cool tho, his editing is insane
matt > crafty
18:47 glad to see 3B1B’s work being shown outside of the math sphere, love his videos, his linear algebra & calculus courses are some of the best out there for being free
I bet this channel is mostly part of said sphere xD
3Blue1Brown will always have a place among nerd circles
Some dude named notch. “I think some wire block would be cool so players can open doors. Let’s call it red stone!
This guy:
This is, without a doubt, the best explanation of 3D perspective projection I've ever seen. Gonna bookmark this in case I need it later 😅
Congrats on pushing through that project big matt!! You stayed mostly consistent throughout it's entirety from planning, to building and to editing while having school in the way, which I find pretty crazy! And the end result is chief's kiss :D
wouldnt be possible without da seal 🤝
Who knew a seal and a bat would be the perfect combination :)
It wouldn't be possible without him to... wait for it... Seal the deal 🤣
A chief's kiss...
Time to make 4D renderer!
As a person who has watched countless videos and articles explaining 3D rendering, this is by far the best. Like seriously. Incredibly intuitive. Thank you
This
Ive worked on redstone calculators and a screen before, but quit because back then i didnt understand what anything did in the "computers" the better people on ORE had, but this makes me wanna get back into the redstone pc thing again
This video is amazing! And I'm not even talking about the MC magic - that is by far the best explanation of 3D -> 2D projection I've ever heard! I've been trying to get my head around it for years! Thank you
It's incredible how this could be similar to real world computers, the part where he was flipping the levers was like when people had to flip individual levers just to do something on a computer, then when he went to the redstone schematics, it reminded me a lot of punch cards
ive never wanted a channel to blow up more. It low key annoys me that this dude with the awesome content hes making doesnt have millions of subs
agreed, i wish i could like it twice
Not saying he is bad or anything, but people like mumbo kind of take all the popularity, people thinking he is the best redstoner. So I completely agree with this.
@@thedenominator_ You technically can. Not on the same account, though
Now make a video
I mean glory hoggin isnt that bad they started like this but agreed to orignal comment
Finally, the long awaited C U B E
no comments and likes? lemme chang
Cube made from Cubes!
A cubic cube
Matt > Crafty
As someone who's learning Vulkan and computer graphics i can spit two things:
- I'm definitely subscribed
- the youtube algorithm really impressed me this time
This is the most mind boggling, creative, and biggest redstone machinery I have yet seen, there are not enough words to describe it. You have done an absolute amazing freaking job at this, congratulations on building it. I love your creativity and intelligence, you are really unique
I'm currently in college taking linear algebra and i freaked out when I realized you're using a concept I just learned in Minecraft. Amazing work, keep it up!
The stuff around the 5 min mark reminded me of Calc 3 material. The portion around 6 mins brought me back to Calc 2 in relation to finding fluid force acting on an object submerged in a liquid. Specifically using similar triangles to find the proper area in which a slice/planar region lies, to be the equation of the integral finding the fluid force. Granted the use of similar triangles in this case is entirely different than whats in the video. I'm taking linear algebra and differential equations this upcoming spring, so its nice to get a mini preview of the subject
🤓
@@trentonking5508 bruh just shut up please go outside
I'm writing Spigot plugins for minecraft servers and I had a similar moment recently when i realized I could use the Taylor series and Newton's approximation
@@trentonking5508 😲
This video was released 9 months ago, I started watching it but I couldn't get to half of if cause it was so complicated that I got bored with ease. 2 months ago I finished my first year (out of four) of software engineering, and now I feel like I can fully enjoy this cause I can relate all you're saying to what I've been taught, it makes me really happy, motivated, proud of myself and that I'm studying something that I really like and fits me :)
bro did software engineering to understand a block game video 💀
@@fps3689 you got me😔
This is so awesome man, amazing job and it’s so cool you include so many explanations about maths and how it’s useful!
16:25 Yep, a frame buffer is right, and it's the reason screen tearing happens actually! If a monitor tries to display the buffer while the current frame is still being rendered(some parts of the last frame are still there), screen tearing occurs.
And tearing is prevented by matching the fps with the refresh rate such as vsync vsync changes the fps , while monitors can prevent tearing via technologies like gsync/freesync by changing the monitor's refresh rate to match the programs.
Edit: The monitor you built is double buffered(vsync), one being the currently displayed content, and one for the renderer to draw only, and only swapping buffers when the draw is complete. See en.wikipedia.org/wiki/Multiple_buffering
In 3D games in general, wouldnt it be beneficial to not have a buffer?
Like just have the monitor display whichever pixel whenever possible?
@@honkhonk8009 Well, without the buffer, you'd be able to see the tearing if extra frame buffers aren't used to cache the image, which is what happens when you turn your fps slider setting to the leftmost for Minecraft: Vsync.
It's a frame buffer yes, but it isn't the cause of screen tearing. You were mostly correct with screen tearing, and without double buffering, it is more likely, but it certainly isn't the cause or prevention. Double buffering is fully standard in modern computer graphics yet screen tearing can happen anywhere, given the main culprit is the disparity in the data being updated from the GPU whilst currently drawing on the monitor, causing the monitor to (half way through) draw the new (potentially entirely mismatching) frame's data. Though you're right in that it doesn't help as a compounding effect that you're also rendering directly to the framebuffer in small chunks (since that is all a single threaded piece of rendering code can do).
glSwapBuffers() opengl ezz
@@lmaorofl3229 ong
I like how instead of just showing us the finished product, he walks us through the whole process so we can sort of understand what’s happening somewhat
Hehe yeah I like the magic man's funny words too
i had no idea what he was saying
the math was pretty simple but i had no Idea how he made that all using redstone.
how is this the best explanation of 3d rendering i can find lol. i was trying to actually code and needed resources and this explained to so well
I have never seen a better explanation of projection ever. Crazy.
This is honestly incredible, i really liked how you explained the math too. Insane stuff!
thank you!
hello mr square
Dude, what's equally impressive to making the renderer is how good you are at breaking down these concepts and presenting them in a way that's not only clear but also entertaining as hell. I never thought I'd ever get into the weeds about how these sorts of things work but you've made them so accessible. You've seriously got the chops as an educational youtuber up there with 3blue1brown and veritasium. Keep it up man!
Well said! It's one thing to just build something amazing and then show it to people so they can go "Wow!", but then just shrug 'cause it's too complicated.
It's another thing to be able to take them on a journey where you give them the knowledge to understand what you have done, and now truly appreciate it and be richer for it.
This it's a really good explanation on how the basic pipeline of how a graphics card works, kudos for the clear examples.
This is so enjoying to watch even though I don't understand half of the geometry stuff. These kinds of Redstone builds always look so cool as well.
This video is so high quality, I literally can't express how cool this video is.
Also, matt > crafty in digital redstone.. Slimestone is a different question.
I never expected to see a full 3D render in minecraft done by only redstone
You have my full respect for doing something like this
Another renderer that is really cool is sammyuri's you should see what he did, it uses 3D rendering and is really impressive.
The way you made this video makes me think I could build something like this, maybe in a few years. Great work!
You've just explained things I would've never understood from a school teacher. You give me inspiration to further progress my mathematics knowledge!
You are awesome! Keep up the hard work!
this is INCREDIBLE. good job on the visuals explaining the math concepts btw, super clean and useful for understanding what was happening as you did it
(matt > crafty)
Ahh, that beautiful vertex position aberration caused by rounding errors reminds me of old PS1 era graphics. This is some outstanding work! Such dedication and resourcefulness!
Ive just begun my hobby of learning about CS and programming and while I got lost on the math stuff, it was really cool to understand some of the stuff in this video. Thanks for making it.
Amazing work!
I was warching a few minecraft videos to clear my head and didn't expect to suddenly end up in a linear algebra lecture :P
Well done, and well explained!
22:48 Hold up, there is another hardware simplification you could maybe have done (at the cost of speed): Sine and Cosine can use the same look-up table, just offset slightly because cosine is just a sine function shifted by 90 degrees.
Thats probably implemented in the prebuilt schematic tbh
ew degrees
@@eric8764 average calculus student :
@@ajbs_alexo_713meanwhile, me, a psychopath: i LiKE gRadIAnS
@@SeanGonzalezMDHEXT Gradians? Radians? Degrees? As far as I'm concerned a full circle is 256 angle units.
I'm really impressed at how insanely fast this is. I mean... Even without carpet mod 700 tics is not a long time for all that calculation!
You have a really brilliant mind for optimisation!!
He said that it is 700 Redstone ticks slow
Bro built a gpu equivalent to the first computer in minecraft, I think its pretty fast
Why did this video do a better job explaining 3d rendering than every dedicated video I've found lol
Thank you so much
wow i learnt this in school this year, and i didn't even listen to it bc i was bored. but i literally watched you teach me the same thing right now. keep it up!
This is an absolutely MONUMENTAL and INCREDIBLE thing!
I love it! Such an incredible piece of redstone engineering!
It even fits with one of my quotes:
"It may be slow, but it works.
And that's what matters the most."
This is not Beluga
What the heck. I'm baffled. You explained this huge project very simple and made it look simple as well, but having a little clue of redstone and maths it's just insane to me that you made this renderer possible in a damn block game. You are truly underated my dude. Keep up the great work ❤️
You explain it so well!! Thank you so so much.
You're really good at explaining things. I don't understand much about coding or redstone, but I can generally understand your process.
14:03 I don’t think that it’s fair for you to say “we”. You did all of this amazing building, coding, creating, all by yourself. This is *YOUR* amazing accomplishment!
No, check the description. It says Sloimay helped
23:28 the fact that he said he THINKS it MIGHT be his biggest project just shows how insane this man is at redstone
@UnknownDev interesting, I didn’t know that, thanks for the knowledge :)
@UnknownDev nice
Yet coding in brainfuck is easier than coding in minecraft
The level of redstone expertise this guy has is unmatched
@@raphaelnej8387 nah, coding in binary isn't too difficult, it's just very long and tedious to do
this is taught SOOOO perfectly, great job man.
Holy hell you go far, nice videos!
I can already just see that this is gonna be one hell of a project he just did, Goodjob man! Keep it up! Really enjoy it!
I'm a graphics programmer myself and this is Hella impressive, it took me months to figure out the math, and you just showed it it one video!
Crazy stuff man GG
that was incredible and probably took an insane amount of time and dedication
Back in the day when I was into redstone i was so happy building a functioning calculator. Now I get recommended this WHAT, it is insane what you did there. Great work!
Everything in these videos are always explained so well and everything is put together in a way that's both interesting and entertaining. You've struck gold with this video format, good job bro, incredible project as well!
Sinusoid
HI TRIDEAPTHBEAR the geometry dash player
You are a genius. I love everything you make. it's beautiful to see math, computer science, and minecraft all intersect in your projects!!!
i am just starting pre-calc in college, as a dual major in CIS and electromechanical tech - thank you for getting me even more excited about math:)
Amazing! Very cool. I didn't think that was possible. Congrats :)
I saw that 3b1b plug coming from a mile away. Great build Matt
This guy honestly deserves way more than he's getting
This is *really good* to show the complex ins and outs of an actual silica chip. The first thing I thought of the 16-bit divider, was that it looked awfully similiar to a actual computerchip from these 3D animations on UA-cam. Well it is, which makes it even more mindblowing, to think that we are able to do something so complicated on a mollecular scale with even more capability
12:04 that actually looks like SOC from a phone or something with all these wires and gates.
Awesome work
its insane how far this game has come, and how far the community has improved as well. this is actually insane. i remember when peak redstone was a vault door larger than 3x3.
This takes me back to computer architecture class days and linear algebra it’s so unbelievably impressive how you managed to get all of this done in Minecraft all in all the video was super fun to watch keep it up! 💙
The redstone is amazing, and I'm actually equally impressed with the video quality, particularly your animations with the cube, vertexes, screen, and rays. Well done, it's only up from here
i love watching these videos bc i know so very little about redstone or minecraft in general, but I'm very much into geometry. So it helps me understand the computational aspect a lot more
keep up the great work man!
if you wanna spend a few long nights drinking yourself under a table, you could probably program this baby for 4th dimensional objects like a torus or tesseract!
the math is the same, just a lot more of it, about double the vertices for per dimension added. there's a video that explains it pretty well, I can't recall the exact title but it's a _very_ short one to the tune of 'how to draw higher-dimensional cubes'
I love how at this level, redstone resembles a lot the creation of first computers! With manually building the circuits using lamps... it reminds me of stuff like the ENIAC
Dude. This video is AMAZING!!! Mark Rober music, 3Blue1Brown video references and similar animations, absolutely brilliant explanations, and the sheer dedication to put this all together. Designing the divider and all the components, teaching yourself how everything works, prototyping everything in Python, and the many hours of debugging, all to produce one coherent video is absolute dedication and I have SO MUCH respect for you and optimism for your future as an engineer, both in Minecraft and in real life. You're an amazing person and I know you will do great things one day. I've been around this channel for a while. I don't know exactly how long, but your videos are always incredibly engaging and educational, and they always put a smile on my face. I know a lot of people say this, but my jaw literally dropped during the final showcase.
As a high school student, I wish I had the time to design things like this. I built a very big and slow calculator similar to yours at the end of last year, which was my inspiration, designing almost everything myself. I was super proud of it and created tic-tac-toe and connect four over the summer, which I am also really proud of. Now that school has been back in session I haven't been able to play, but anytime I watch any of your videos I am absolutely amazed and inspired. Keep up the amazing work!
He is your master, you his follower🍔🦍🌒🦀🚂🌾🌬️🧑🏻👨👨👦👩⚖️🤾🤞🙄
We can't see yet the video but I know that is going to be awesome as all mattbatwings videos! Thank you for all your work (from 🇮🇹 Italy)!!!
Ma te vai alle superiori? Perchè io che sono in terza media faccio troppa fatica a capire questi video.
@@alessiobavieri620 anch'io sono in terza media e a essere sincero questo video ho fatto un po di fatica anch'io perché ci manca ancora qualche conoscenza ma siamo curiosi... a me piace approfondire questi argomenti e ho già imparato un bel po di cose (senza aiuto di insegnanti o altre persone). Appena vedo qualcosa che non capisco vado a cercarla anche se complicata .comunque è normale che alla nostra età non capiamo queste cose. Mi sto accorgendo che sto scrivendo un poema. Ciao buonanotte
@@alessiobavieri620 questo video è anche stato il più complicato di questo canale youtube
@@orfeoriva5384 Sì infatti, comunque gli altri si capiscono
So much respect dude. I’m also a huge 3b1b fan and can totally see his inspiration in your videos. Amazing stuff
Thanks for taking time to explain the maths as well - awesome video :)
I don't even know how to descibe how much I love this video! Everything is extremely well explained, the visuals are stunning and simply following along makes you feel smart. Another 10/10 my dude! :D
yo Rex! Like your vids
As a physics student that passed linear algebra a year ago, I got so much excited for no reason when you were explaining the matrix multiplication for the rotation and i was like “but can’t you just use the other 2 coordinates for a single axis rotation?” and it was right
GREAT VIDEO!! Very easy to understand and makes computers look a lot more cool thinking that computers are almost just this but a lot lot more compact
98% of people watching this probably dont even understand all this but its still entertaining to watch, and definetely interesting if you understand the things explained by him
true including me
And I'm the 2% that notices that the math isn't entirely correct
:/@@nicholaslau3194
Except me. The computer graphics made all with pipeline, vertex, buffers, shadig languages and some lineer algebra math. And that guy jobless
Oh my god I just realised I’d wanted to draw something like this for a personal project in something called TIC-80 but could never figure out how projection worked, this has helped substantially- entertaining redstone and educational computer graphics. Thanks so much!
not only is this video displaying literally best practice in hardware and software development, but it's also just. straight up informative. this is exactly how you teach people. it reminds me a lot of ben eater's explanations - messing up and correcting it is part of the process, and it's shown so nicely here. i'm so impressed with every minute of this video. (it also helps that you're voice isn't monotone so it doesn't ever feel like a lecture)
Your projects so crazy and i think you caт do much more!
18:50 I just got this video recommended. What a coincidence: I am studying Linear Operators (including a Rotation Matrix) at the university right now.
And although I know some basics about computer logic and can actually build an adder using logic gates, I'm not so sure how to make a matrix multiplier using simple logic. And knowing how much space and time it takes to build simple OR / AND (or any other gate) in minecraft, I do appreciate your patience and determination. Well done!
After I've watched your line drawer video i actually started researching 3d rendering and seeing you explain the topic in such a clear and approachable way is so fun
I love that you went in depth with your explanation. It really makes it feel hands-on!
Super great in-depth math!!! Love the cross between math and minecraft.
using repeater locks to save specific redstone inputs is very cool i never thought of that
i feel like if redstone displays are gonna get any more advanced like this, there should be a mod that lowers the brightness of the lamps based on signal strength or something, so you could add depth to the image
Currently taking a matrix class in college, and seeing the application of matrix multiplication to produce 3D graphics via linear transformations is really cool. Fantastic work here!
holy shit bro this is cracy
Thanks ❤
I did subscribe, that's an amazing work man !
Incredible. The explainations are giving heavy 3blue1brown vibes lol
i am currently taking linear algebra and came back to this video because our current project is to basically create this is pygame lmao
the video is genious btw
Okay, why the heck aren't you bigger on UA-cam than Mumbo? Like seriously. This is just incredible.
This is amazing... and although I don't understand the math behind it, what that math produces is not just sweet, it's satisfying.
1:40 Matt: "everything has to be done in binary"
Analog Signal Strength : "am I a joke to you?!"
;)
I wonder if an analogue system would be faster than a digital one
I quit Minecraft a few months ago, but as a programmer I am so amazed by how you have done it, and the way you made the matrix rotation way easier is mind blowing, keep it going man!
Impressive!
Great content!
When you started talking about linear algebra, I got flashbacks to when I took it a few years ago in college. This is absolutely insane!! I understand all the math behind this, but I have no idea how you actually made a redstone circuit that makes it work 😵💫
I never really knew how software worked in binary, and how you can even make a program with redstone, but your explanations were awesome!
I now understand the basics of it!
This is incredible and you're such a fantastic explainer. This is some top quality UA-cam! Congrats on the awesome project!!
It was amazing bro!! CS concepts applied into the Minecraft.
As someone studying electrical engineering it is really cool to see someone actually apply some of the things we learn
I remember when I was excited because I made a really basic calculator when I was 17, seeing how far red stone engineers and engineering has come is truly impressive
Great job as always! Starting college rn I can see how hard it is to balance things out.. After seeing the explanation, 3d matrices and rotations don't sound complex at all! Thank you for the video, I feel like I keep learning things with you!
Mindblowing stuff. My ape brain can't comprehend the majority of it, but I can really tell that you put in some serious work, and the outcome is incredible. Quick piece of advice though, you should try to use a De-esser on your mic, a bunch of different programs offer it. Or a pop filter. Thats all.
20:19 holy shit thats veritasium "aha moment" soundtrack shook me man, that make what your presenting sound more convincing