I built a 3D RAY-TRACER using REDSTONE (Minecraft) + Download

  Рет қаралды 234,101

georg240p

georg240p

Күн бұрын

My Tutorial Series: • Creating the most simp...
(Building a Raytracer from scratch with Blender Math Nodes)
Map Download: www.mediafire.com/file_premiu...
(It takes like 200+ hours for one image to render, even with Carpet Mod which speeds up your game)
Some people in the comments said that what I built is actually a Pathtracer, Raycaster and one guy thought this was Raymarching.
I've had this discussion for years. Using the names introduced in the old original papers has become very confusing. Today, Raytracing is mostly used as a very general term, and both Pathtracing and Raycasting are listed as a subset.
e.g. Wikipedia's page about Raytracing: "...ray tracing-based rendering techniques, such as ray casting, recursive ray tracing, distribution ray tracing, photon mapping and path tracing, ..."
Wikipedia's page about Raycasting: "..., see ray tracing (graphics) as both are essentially the same technique under different names. Scott Roth had invented the term "ray casting" before having heard of "ray tracing". "
Raymarching usually just means that the intersection is computed iteratively by stepping along the ray in small increments - I'm not doing that at all.
What I built is bascially a "Raycaster" - the most important part of a "typical" Raytracer, it shoots the primary rays into the scene. The problem with calling it raycasting is that today people associate that with something that is very different from what I built. e.g. If you search for "raycasting" on google images, you only find Wolfenstein 3D stuff, which is actually only casting rays in 2D, which are used to define the height of 2D collumns to give the illusion of a 3D environment.
What I built uses the exact same camera system as a typical Raytracer, but I do not shoot any further rays for reflections or shadows - I thought about rendering one sphere and a reflective floor plane - but that would not look good on a redstone lamp display. I need to build a better display first, that can display multiple shades of gray without dithering. I decided for rendering 8 spheres in a cube formation so that it can be compared well to rasterization.
The main motivation for me was to learn binary arithmetic, and building a simple programmable computer. And Minecraft Redstone is perfect for learning such things.
This build is actually not that complex, the only reason why nobody built a Raytracer before is that it's super slow and you can get better looking images with traditional 3d rendering (rasterization).
This was my first time actually using Redstone for something more complex than opening a door. A lot of things could be optimized... especially the individual components like the adder and multiplier are not synced so a lot of time is wasted in between instructions.
Big thanks to ‪@mattbatwings‬ for their amazing Redstone Tutorial series.
Many parts of my build are based on these tutorials.
Music at the Beginning: Giving Up - JVNA (KZbin Audio Library)
Chapters:
0:00 - Intro & Reveal
1:31 - Traditional Rendering vs Raytracer
3:31 - Building it in Minecraft
4:27 - Redstone Computer Explanation
6:20 - Implementation in Minecraft

Пікірлер: 386
@mattbatwings
@mattbatwings Жыл бұрын
This is seriously amazing dude! The presentation and build is top notch, you deserve way more attention! I just watched your other videos and when I saw the blender nodes representation, I knew it would be a great fit for redstone because it instantly reminded me of how I draw redstone schematics, lol. I'm glad my tutorials could help, and I can't wait to see more!!
@savageraccoon787
@savageraccoon787 Жыл бұрын
Came here from you
@aidanmaniaMusic
@aidanmaniaMusic Жыл бұрын
Hey man!
@dragonsers1687
@dragonsers1687 Жыл бұрын
Great recommendation!
@V0R73X
@V0R73X Жыл бұрын
Hey mr bat
@GrayFlash725
@GrayFlash725 Жыл бұрын
came from u
@CraftyMasterman
@CraftyMasterman Жыл бұрын
Dude this is crazy for one of your FIRST redstone builds??? Everything was explained so simply and the graphics you had to accompany made it so easy to follow!
@ECanDo
@ECanDo Жыл бұрын
I could have not said it better
@Scratchfan321
@Scratchfan321 Жыл бұрын
He's cracked at redstone
@Nombrenooriginal
@Nombrenooriginal Жыл бұрын
What you mean first 💀?
@yoshin6465
@yoshin6465 Жыл бұрын
@@Nombrenooriginal first showcased redstone build
@ethymith
@ethymith 2 ай бұрын
@@yoshin6465 everyone's first showcase build is the one they think is a magnum opus
@lewismassie
@lewismassie Жыл бұрын
4:45 Unironically I think you just taught me something about physical computer architecture that noone else has managed to teach me in 8+ years
@Alphalaneous
@Alphalaneous Жыл бұрын
Unironically same
@alfred0231
@alfred0231 Жыл бұрын
If your interest is still whetted check out "But How Do It Know". Written for average people, it goes from a light switch to how a whole simple computer works. Logic gates, ALU, memory, clocks, instruction decoders .. etc.
@-Name-here-
@-Name-here- Жыл бұрын
Same lol. Makes more sense now
@ads1035
@ads1035 Жыл бұрын
Sure enough, that's the concept of a bus!
@maiky8869
@maiky8869 Жыл бұрын
i had a test where i had to use that yet this is for the first time i realised how it works xDD
@Zuchii
@Zuchii Жыл бұрын
The rest of the Minecraft community is trying to figure out what a Sculk Sensor is and georg just built a Redstone Ray Tracing machine in a version of Minecraft that doesn't even support Ray Tracing
@roykale9141
@roykale9141 Жыл бұрын
*officially
@309electronics5
@309electronics5 Жыл бұрын
Rest of the mc community? Don't forget the other redstoners who also build big builds
@Treetrain1
@Treetrain1 Жыл бұрын
@@roykale9141 what do you mean
@manitoba-op4jx
@manitoba-op4jx Жыл бұрын
1.7.10 is the best version for modding
@StrangerOnTheWeb
@StrangerOnTheWeb Жыл бұрын
@@Treetrain1 There are shaders with raytracing
@blitzar8443
@blitzar8443 Жыл бұрын
We've seen people download RAM but now you can download RTX too. Truly incredible
@o0julek0o
@o0julek0o Жыл бұрын
We really live in the future 😂
@DigitalJedi
@DigitalJedi Жыл бұрын
My man is taking Minecraft RTX to the next level. Truly an insane build.
@captainpolio867
@captainpolio867 Жыл бұрын
"Java doesn't have native ray-tracing? We'll see about that!"
@roboltamy
@roboltamy Жыл бұрын
Always cool to see someone pushing the boundaries of redstone graphics
@torinmorris6648
@torinmorris6648 Жыл бұрын
boundaries with current hardware
@skysho7867
@skysho7867 Жыл бұрын
If only they optimize the redstone.
@Sloimay
@Sloimay Жыл бұрын
Absolutely insane build, and very smart approach of using a "special case CPU" for such computations, it's not an approach we see often. :)
@sammyuri
@sammyuri Жыл бұрын
yoooo this is crazy dude have you heard of MCHPRS? it's like carpet mod except the speedup is more on the order of 10,000x (so builds of this size can run within a reasonable amount of time), definitely recommend if you're gonna be making more stuff like this
@blinking_dodo
@blinking_dodo Жыл бұрын
Yeah, he should seriously use the MineCraft High-Performance Redstone Server, it really speeds things up to awesome levels. I joined the test server when they were first testing it. It was funny to see how fast things could go if you ignore everything except the redstone itself...
@heatshield
@heatshield Жыл бұрын
I’ve been thinking of going there with my build. Are there any requirements like minimum release versions, time constraints, build size etc?
@lucaswatt5274
@lucaswatt5274 Жыл бұрын
Seriously impressive, especially for one of your first redstone builds! You earned my like and sub :)
@JoshBlueMoon5
@JoshBlueMoon5 Жыл бұрын
This has to be one of the most insane things ive seen in my 12 years of playing this game, good job
@algorithm-artisan
@algorithm-artisan Жыл бұрын
That's insane, some hard-core madness right there. Congrats man, amazing content.
@charliebewsey6872
@charliebewsey6872 Жыл бұрын
This is going to feature on one of those "top 10 craziest redstone builds" alongside the other mental cases making this type of stuff, great job man! wish i had the mental capacity for it myself
@top_misha
@top_misha Жыл бұрын
This is so cool! Good luck in new projects!
@-Name-here-
@-Name-here- Жыл бұрын
That’s really cool, and you explained it very well. Unironically taught me something about actual everyday computers I didn’t get. Good job!
@LordPfrog
@LordPfrog Жыл бұрын
This was an awesome project and your video describing it was great! I really appreciated the insights into how to prevent just chaining pieces because that gets really confusing really quickly. Instead, having this instruction set feed and your explanation on the way you'd like the adder and multiplier etc, really helped me understand how to think about this kind of project! The blender recreation was really cool too! Thank you!
@TheREALLofiat
@TheREALLofiat Жыл бұрын
Before watching this video, the idea of a Redstone raytracer was foeign. By the end of it not only did I see it and it was functioning, but I understood how it worked. This video is one of the best videos I've seen of this topic.
@russianyoutube
@russianyoutube Жыл бұрын
That is awesome! Good luck in future projects
@LightslicerGP
@LightslicerGP Жыл бұрын
This is underhyped, the amount of effort put into this and logic put behind it is immense. Keep up the work!
@The_Horizon
@The_Horizon Жыл бұрын
do not team up with sammyuri
@cheesymanbutyes
@cheesymanbutyes Жыл бұрын
Hey can you please respond to my reply 🥺
@nekrugderzweite8298
@nekrugderzweite8298 Жыл бұрын
Crazy. Its all magic for me but it is incredible! Great work! And i cant imagine what wiöl be build in a few years
@nano_redstone
@nano_redstone Жыл бұрын
Very cool build I can't wait to see the future !
@Iservenoodles
@Iservenoodles Жыл бұрын
Underrated brooo The people who just make a 2x2 door get way more attention rather than this masterpiece bro your on the same level as sammyuri and mattbatwings😯
@consuminhelium3346
@consuminhelium3346 Жыл бұрын
Amazing video! Awesome work and a very intuitive explanation :D
@thexadgaming
@thexadgaming Жыл бұрын
This is amazing, I wish I could do this level of stuff. 10/10 content, keep up the AMAZING work!
@ludfde
@ludfde Жыл бұрын
Amazing clear and fast summary
@lilv728
@lilv728 Жыл бұрын
Bro this is just unbelievable. The amount of work you probably put into this. Good on you! Great content for sure!
@Friedslick6
@Friedslick6 Жыл бұрын
Could records in shulker boxes help compress and simplify the build? That is, each record outputs a specific signal strength and each shulker box can hold 27 records, so you could make larger transfers of data quickly and even create solution tables for instant calculations.
@0tter501
@0tter501 Жыл бұрын
This is insane, you watch one tutorial series, and then you make a perfect ray tracer, amazing but also unbelievable, maybe you could help some major mc PC project
@Oneye.
@Oneye. Жыл бұрын
Great high-quality content, and good explanations! Commenting for the algorithm.
@redstoneruleseveryday5923
@redstoneruleseveryday5923 Жыл бұрын
Awesome video dude it's insane what can truly come from redstone
@lemonlordminecraft
@lemonlordminecraft Жыл бұрын
Goodness gracious!!! What an excellent breakdown!
@sorean4532
@sorean4532 Жыл бұрын
Insane tech but what amazes me the most is the amount of passion, knoweledge, patience and effort you had to invest on this project
@AQLV
@AQLV Жыл бұрын
This is so amazing considering the complexity of ray-tracing. Less than 6 years ago the first real time RT silicon chips were rolling out of TSMC... Now this. Multiple layers of software and overhead and it renders an image in under a week, when dedicated RT hardware used to render some similar 20 years ago IRL.
@roadddkill
@roadddkill Жыл бұрын
Never fails to amaze me how redstone can be utilized by someone, this is some seriously amazing stuff dude.
@_m6_
@_m6_ Жыл бұрын
This is amazing, great work.
@playbyan1453
@playbyan1453 Жыл бұрын
I'm just speechless, just how amazing this is.
@jojojorisjhjosef
@jojojorisjhjosef Жыл бұрын
I actually sort of understood most of this. Great work.
@unknownastroid_2240
@unknownastroid_2240 Жыл бұрын
You taught me more in a video then school did in a year
@mr.fishfish570
@mr.fishfish570 Жыл бұрын
Wow, awesome man!
@PNWMan
@PNWMan Жыл бұрын
Very interesting control scheme! It's not quite a processor in the traditional sense, it's more of like an application-specific circuit which probably makes it much faster. I wonder if you make some approximations or culling if you could get 3 or 4 bounces of the rays to do things like basic shadows and reflection in a reasonable amount of time.
@FireJach
@FireJach Жыл бұрын
man, i feel like during a lecture. good job
@DeerJerky
@DeerJerky Жыл бұрын
This is amazing! Can't wait until ray traced minecraft somehow becomes playable in unray traceable minecraft
@SamanMC
@SamanMC Жыл бұрын
redstone explains how computer codes such as 1 and 0 codes work great job btw
@esaedromicroflora1247
@esaedromicroflora1247 Жыл бұрын
I'm surprised that I understood A LOT. Great content, great teacher
@rezaarfam1367
@rezaarfam1367 Жыл бұрын
a truly masterminded redstone engineer lmao
@williamcoolchannel
@williamcoolchannel Жыл бұрын
This is so cool! 😊
@diegoabarza3069
@diegoabarza3069 Жыл бұрын
Amazing!! Nice video
@retroman7581
@retroman7581 Жыл бұрын
What a flex, nice work
@Skyprex
@Skyprex Жыл бұрын
Really interesting!
@ThunderBlastvideo
@ThunderBlastvideo Жыл бұрын
I love how you explain it, not just show it
@kyugokato2262
@kyugokato2262 Жыл бұрын
This is soooo cool Incredible
@KjipGamer
@KjipGamer Жыл бұрын
Definitely also recommend Sebastian Lague's computer experiments, they're very informative!
@nimiugn
@nimiugn Жыл бұрын
okay wtf THIS IS MAD IMPRESSIVE!
@mineless1
@mineless1 Жыл бұрын
Well done!
@senex_0372
@senex_0372 Жыл бұрын
Wow crazy dude… Even your red stone system visually is very cool and easy to understand… (i mean how works, not to make it 😂)
@NF-pk5mo
@NF-pk5mo Жыл бұрын
Holy shit this is awesome but i like going outside 😢 hope this mans took a long break can't imagine how long that took
@v.i.l.7848
@v.i.l.7848 Жыл бұрын
О того количества механизмов в этом видео у меня глаза расширились от удивления!
@bengineer8
@bengineer8 Жыл бұрын
Awesomely awesome and kick awesome.
@kylebowles9820
@kylebowles9820 Жыл бұрын
nice work! fun
@photoncraft1109
@photoncraft1109 Жыл бұрын
Great Job. You Deserve 1M Subs
@blueshoregaming1591
@blueshoregaming1591 Жыл бұрын
You are amazing.. I don't know why am I only finding you 😋
@migsy1
@migsy1 Жыл бұрын
This is so cool!!
@fruittree1670
@fruittree1670 Жыл бұрын
incredible work mate! instead of using read stone lamps though, wouldn't it be possible to use command blocks to set pixels in a block display? not only could you render in colour, but the coloured rendering would make reflections work better if you ever chose to render more than one ray.
@realoscar91
@realoscar91 Жыл бұрын
yo this is super cool!
@glitchreloaded1284
@glitchreloaded1284 Жыл бұрын
Hey as a by the way, to my understanding of redstone you could speed the renderer by using things like rail instant wires and observers more than redstone dust as the signal(IIRC) going through dust is slower because it needs to send the signal through each piece of dust in sequence, if this isn't the case do let me know
@cyborgbob1017
@cyborgbob1017 Жыл бұрын
It probably is but theres advantages to both
@LunarcomplexMain
@LunarcomplexMain Жыл бұрын
Having a signal pass through the entire system while only needing to select which part of the ALU accepts this signal was a pretty good idea
@silvv.
@silvv. Жыл бұрын
such a good video ngl
@deliverick9695
@deliverick9695 Жыл бұрын
today, on stuff that i will never build, but i enjoy watching people do. xD
@shadichy
@shadichy Жыл бұрын
we've all been waiting for this time finally, ray tracing in java edition (although it's not)
@TreeFrogOnATree
@TreeFrogOnATree Жыл бұрын
always loved seeing people go ham with redstone lol
@c64cosmin
@c64cosmin Жыл бұрын
You should get a job for a chip manufacturer 😊 awesome job ❤
@MECKENICALROBOT
@MECKENICALROBOT Жыл бұрын
My dude!! Hex is next!
@manitoba-op4jx
@manitoba-op4jx Жыл бұрын
bro just broke down bus theory in a really beginner friendly way. i'm proud
@randomsnow6510
@randomsnow6510 Жыл бұрын
Like this so he can see: theres a mod called MCHPRS, it compiles redstone to a graph in rust so it can be executed much faster its the same mod used to make the minecraft in minecraft redstone computer run in real time.
@skanslovakia553
@skanslovakia553 Жыл бұрын
Do you think it could be further optimised to render an image faster?
@georg240p
@georg240p Жыл бұрын
Absolutely, Even if you stick with my general design, you could probably make this 2-3x faster just by syncing the individual components and getting the timings right... I only realized halfway through how important timing is. Also a lot of the operations performed don't even come close to requiring 20bit precision - so you could use different data types. I've also been told vectorizing the data could work well for such a simple raytracer. Who knows how much this could speed up things.
@thatrandomscientist1704
@thatrandomscientist1704 Жыл бұрын
Amazing video
@thealdoc
@thealdoc Жыл бұрын
I love how the structure looks like a giant computer , and it IS a giant computer
@imdunes
@imdunes Жыл бұрын
This is complicated on top of complicated, insane.
@GhostVvar
@GhostVvar Жыл бұрын
Interesting, my favorite part is when the do-hicky does the thingy with the whatchamacallit instead of a kajigger.
@RedStoneMatt
@RedStoneMatt Жыл бұрын
This guy is the NileRed of redstone, soon enough he's gonna make a "I made a real life working nuclear bomb using redstone" I swear
@WibleWobble
@WibleWobble Жыл бұрын
run this world on a shitty pc and thats how you get a nuclear bomb
@Krea
@Krea Жыл бұрын
I love how hes blowing up a second time
@WO0L
@WO0L Жыл бұрын
dude woke up and was like "I'm going to build a ray-tracer in minecraft"
@Minecraftster148790
@Minecraftster148790 Жыл бұрын
huh, so this wasn't clickbait after all, glad I clicked
@zeph0shade
@zeph0shade Жыл бұрын
All the crazy computers people have made out of redstone kind of goes to show how redstone is actually more intuitive than complex... The trick is approaching such a project with an understanding of computers, not an understanding of redstone. The mechanics of redstone itself are surprisingly intuitive by comparison.
@tihan9142
@tihan9142 Жыл бұрын
I have just saw the video of mattbatwings and your video came in front of me 🔥
@homework8969
@homework8969 Жыл бұрын
One optimization would be using 0-tick logic instead of regular logic It would still be quite slow but a lot faster than what it is currently
@mrunboxeryt999
@mrunboxeryt999 Жыл бұрын
New calibrated sculk sensor is very useful to transfer a chunk of data from one place to another super efficiently
@voidbinary
@voidbinary Жыл бұрын
Out of curiosity. You show the rendering in which it starts from the top. Could you add a coroutine to do the rendering on multiple lines simultaneously to cut down the time for rendering the whole? Or are you bound to having it be rendered one block at a time? On last note I suppose adjusting the tick speed would still break some of the redstone right?
@georg240p
@georg240p Жыл бұрын
Yes, you are right. Every pixel could be calculated independently. and thats exactly what a real GPU does. But in Minecraft, calculating more pixels at the same time just means that more redstone blocks have to be updated. I sped up the entire game to 500 ticks per second (instead of 20) using carpet mod but the game already lags like hell so it's probably only like 200 tps. I would need some more complex ways to get more out of it (data pipelining, better redstone building techniques etc)
@poki6041
@poki6041 Жыл бұрын
Braincell one : i want to cure cancer Braincell two : lets go reduce the co2 polution Braincell three: minecraft redstone go brrrrr weeeeeeeeeeeeee
@_Yulico_
@_Yulico_ Жыл бұрын
Mojang: Lets add redstone so ppl can build cool doors with pistons also ppl: recreates Minecraft inside minecraft, creates a raytracing engine, also plays bad apple, creates an actual computer and storage system
@SrVerataro
@SrVerataro Жыл бұрын
We're so close, soon enough we'll be able to actually properly run doom in minecraft
@artefox0
@artefox0 Жыл бұрын
WOW
@georg240p
@georg240p Жыл бұрын
WOW
@being9415
@being9415 Жыл бұрын
WOW
@markk_hypercubing
@markk_hypercubing Жыл бұрын
WOW
@luxill0s
@luxill0s Жыл бұрын
WOW
@CL4K.
@CL4K. Жыл бұрын
WOW
@terminatevader
@terminatevader Жыл бұрын
Building a 3D ray-tracer using redstone in Minecraft is a challenging but rewarding project that requires a good understanding of both Minecraft's mechanics and the principles of ray-tracing. Ray-tracing is a rendering technique used to create realistic 3D images by tracing the path of light rays as they interact with objects in a scene.
@hashdankhog8578
@hashdankhog8578 Жыл бұрын
Do you think it would be possible to do full on path tracing with a form of dithering to make so it doesn't look 100% monochrome. Also, this is incredible.
@georg240p
@georg240p Жыл бұрын
Dithering would be easy, it is often done by just adding some noise to the final color of the pixel. And if you use a multi colored screen, it could actually look pretty good. For example you could use gray blocks that use gravity (gravel, concrete powder in white, light_gray, gray, black) and then push these blocks with pistons so they fall down to their location on the screen.
@mistake_7176
@mistake_7176 Жыл бұрын
NOW THATS ENDLESS POSIBELITIES,THATS MINECRAFT THE GAME OF THE DECADE
@simonkhouryAU
@simonkhouryAU Жыл бұрын
impressive!
@seccuenta50ydos
@seccuenta50ydos Жыл бұрын
Very cool
@josiahmarsh9453
@josiahmarsh9453 Жыл бұрын
Ok hear me out... It wouldn't actually be terribly hard to implemented multithreading. You could divide the display into 4 (or even 16, but I question if that would be efficient with how much your world would lag) tiles and have parallel instances of this machine working on a tile each. Since no pixel is dependent on any other pixel to begin computing, you should be able to divide the work from your input between copies of the logic/memory you've built here, and then merge their outputs together at some kind of an asynchronous output listener that puts them on the screen.
@megathe2136
@megathe2136 Жыл бұрын
You're designing freaking semiconductors!!!
This Massive Redstone Display Almost Broke My PC
18:10
Mr_Korwaldski
Рет қаралды 526 М.
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 3,3 МЛН
1❤️#thankyou #shorts
00:21
あみか部
Рет қаралды 88 МЛН
Lightspeed redstone. (436,906 hz redstone clock.)
13:20
Tzemmiecat
Рет қаралды 933 М.
I Made a Neural Network with just Redstone!
17:23
mattbatwings
Рет қаралды 614 М.
I Made A Water Computer And It Actually Works
16:30
Steve Mould
Рет қаралды 7 МЛН
Optimizing my Game so it Runs on a Potato
19:02
Blargis
Рет қаралды 423 М.
I Designed My Own 16-bit CPU
15:46
AstroSam
Рет қаралды 1,9 МЛН
A sculk-sensor calculator (and why it demos quantum uncertainty)
9:02
WhiteStoneJazz
Рет қаралды 156 М.
I Built a Calculator in Survival Minecraft
29:45
rekrap2
Рет қаралды 2,4 МЛН
I Built This in Sipover's Redstone Competition
17:37
cubicmetre
Рет қаралды 1 МЛН
Building your INSANE Redstone ideas!
16:05
mattbatwings
Рет қаралды 379 М.
Minecrafts Evolution of Redstone...
13:44
TheMisterEpic
Рет қаралды 283 М.
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 3,3 МЛН