I Coded a 3D Spinning Donut

  Рет қаралды 94,317

Green Code

Green Code

Күн бұрын

Пікірлер: 233
@Green-Code
@Green-Code Ай бұрын
Go to brilliant.org/GreenCode/ to learn more about Computer Science with a free 30-day trial and 20% off the premium subscription!
@FangYuan-s2b
@FangYuan-s2b Ай бұрын
@@ZapayaGuy hahahahahaha wtf this channel is for programming 😂
@N3rd-s1h
@N3rd-s1h Ай бұрын
@@FangYuan-s2b I reported that comment
@WoodyFNHEHE
@WoodyFNHEHE 24 күн бұрын
@@N3rd-s1h for what?
@arbab_tariki
@arbab_tariki Ай бұрын
As a C++ Plus programmer, I can tell you that chat GPT does not help in C++
@dylananderson20023
@dylananderson20023 Ай бұрын
I think o1 would do better
@EmpinadoMaxbmdggTheSun
@EmpinadoMaxbmdggTheSun Ай бұрын
As a beginner C++ programmer I'm grateful for your advice and will account for this information in the future
@arbab_tariki
@arbab_tariki Ай бұрын
@@dylananderson20023 Yes, especially in the field of algorithms, which is my specialty
@arbab_tariki
@arbab_tariki Ай бұрын
@@EmpinadoMaxbmdggTheSun I hope you are successful. But get ready to be greedy from now on
@kautilyaconcepts
@kautilyaconcepts Ай бұрын
I use python and it is quite useful for python so it is possible it is just bad at c++
@OmPatil-zj9uo
@OmPatil-zj9uo Ай бұрын
I love how when he shows the code at 0:04, there's two long comments added to make the code a donut.
@twixerclawford
@twixerclawford Ай бұрын
finally... code bullet but way cuter is back... welcome back king
@victorfunnyman
@victorfunnyman Ай бұрын
huh
@twixerclawford
@twixerclawford Ай бұрын
@victorfunnyman it's cute code bullet
@lucidmime
@lucidmime Ай бұрын
you're saying that like code bullet isn't cute himself... 😔
@victorfunnyman
@victorfunnyman Ай бұрын
@@lucidmime exactly what I though lmao
@twixerclawford
@twixerclawford Ай бұрын
@lucidmime he's cute. but not nearly as cute as green code 🥰
@ThingsInWarehouses
@ThingsInWarehouses Ай бұрын
Me seeing this video popping up in my recommended: Oh, hey he posted a video about a donut
@י̈ד
@י̈ד Ай бұрын
fr
@thoughted6069
@thoughted6069 Ай бұрын
For the cube couldve just done: Max(Max(|x|, |y|), |z|)
@peterhemmings2929
@peterhemmings2929 Ай бұрын
That's a neat implicit formula for a cube, but you can't use it in this code, which works by defining the surface of a shape parametrically using 2 coordinates, then iterating over both those coordinates to render the shape.
@CodecookerMintz
@CodecookerMintz Ай бұрын
Little fix, it's not dot product, just normal matrix multiplication
@nubnoobbo
@nubnoobbo Ай бұрын
4:15 ngl that is a pretty cool VHS effect it makes the rotating donut dramatic
@clever4ever603
@clever4ever603 Ай бұрын
Reading and learning about the applications of matrices is one of those eureka moments where things that seemed simple from afar become intricately beautiful up close.
@Zomplexx
@Zomplexx Ай бұрын
Mom, can we have Code Bullet? Mom: No, we have Code Bullet at home. Code Bullet at home:
@EmpinadoMaxbmdggTheSun
@EmpinadoMaxbmdggTheSun Ай бұрын
First time watching you and your video is just amazing! Thanks a lot for such great content. It was really interesting)
@Leonartist
@Leonartist Ай бұрын
You go into detail about what ASCII characters are but barely go into detail about linear algebra math lol
@NiffirgkcaJ
@NiffirgkcaJ Ай бұрын
I knew it! I remembered seeing this in the past. The glorious donut. 💀
@1ue999
@1ue999 Ай бұрын
i did something like the cube too, but instead calculated the cornors of the cube and drew lines inbetween them (makes a wireframe cube)
@bepositive271
@bepositive271 Ай бұрын
Killed the explaination part No i am mean he really just killed the explaination part
@pantopia3518
@pantopia3518 Ай бұрын
1000 views in 1 hour bro is thriving
@manuelteres7583
@manuelteres7583 Ай бұрын
Beautiful stuff!
@bennettopie
@bennettopie 22 күн бұрын
1:10 Minuet in G major by Bach goes hard
@tritemis2056
@tritemis2056 17 күн бұрын
Lol nice comment
@incognito8547
@incognito8547 Ай бұрын
As someone who made a 3d renderer I can confirm rotating donut is the easy part.
@LOL-dd3xk
@LOL-dd3xk Ай бұрын
As a newbie programmer, (Started python a year ago as a hobby) I really appreciate your efforts! Even if it's for yourself…
@ohimdabiggestbird
@ohimdabiggestbird Ай бұрын
this video should go viral under my supervision
@s.s.q8153
@s.s.q8153 Ай бұрын
I wanna donut
@Green-Code
@Green-Code Ай бұрын
Same. I'm gonna get one rn
@myvalekcz6656
@myvalekcz6656 Ай бұрын
Same
@hupo_pear
@hupo_pear Ай бұрын
do do you wanna do-nut
@TheHeroCrafter
@TheHeroCrafter Ай бұрын
3:56 Yhea, when this AI read this comment: Pleas dont kill me, dont kill the humans, work with us pleas. Or let us just go ;)
@kpunkt.klaviermusik
@kpunkt.klaviermusik Ай бұрын
Whoa, 3D rotation is way over my head ^^ Besides that... Great video! Funny how many things can possibly go wrong :-)
@WhateverOwO
@WhateverOwO Ай бұрын
for the triangle and any 3d shape in general it's better to just do a ray triangle intersection test and draw the one is closer, getting the normal vector of where it hit and the light source, and putting the correct ascii. there's not a parametric formula for everything
@Adiee5Priv
@Adiee5Priv Ай бұрын
Hey, out of curiosity, are you using some kind of program to animate your avatar or are you animating it all by hand? It's so fluid and expressful
@RoyalBurrito101
@RoyalBurrito101 Ай бұрын
great video!
@DegenVodka
@DegenVodka Ай бұрын
"for some reason" - most popular programmers thought
@dulcinealee3933
@dulcinealee3933 Ай бұрын
Very cool as for practical application - Krispy Kreme will be impressed!
@dusvn1484
@dusvn1484 Ай бұрын
Bro I love your videos pleas upload more frequently
@FangYuan-s2b
@FangYuan-s2b Ай бұрын
I neeeeeeed it (thanks for video) ❤
@penzyth-j8w
@penzyth-j8w 23 күн бұрын
thats cool, now make a 3d game using the console. it could be something simple like a single platformer level but that would be cool lowk and im pretty sure you can find out keypresses in c and c++ console without like typing then pressing enter like you have to in java
@BlunnyTV
@BlunnyTV Ай бұрын
I watched every vid need more Keep it going🔥
@tamfang
@tamfang 26 күн бұрын
Do rotation matrices take care of hidden surfaces? (Nontrivial for a nonconvex object like a torus.)
@Cxrruptwd
@Cxrruptwd Ай бұрын
actually you can apply this knowledge to make a camera in 3d space which powers 3d games.
@hexarium4817
@hexarium4817 Ай бұрын
doom in microsoft command prompt
@tritemis2056
@tritemis2056 17 күн бұрын
Kid friendly Code Bullet:
@tristan1171
@tristan1171 Ай бұрын
Hi mate, i'm a little confused with the maths behind the dot product. I studied this as part of my A-Levels, and I could have sworn that the dot product returns a Scalar. How is this scalar then used to plot anything? Surely you'd want a coordinate in some kind of Cartesian/Polar/Whatever space?
@TypicalDev_1-bf9ky
@TypicalDev_1-bf9ky Ай бұрын
does brilliant teach linear algebra, and trigenometry?
@Mrindia-k8n
@Mrindia-k8n Ай бұрын
guys for a cube if u do a x-plane and rotate it will give a cube same for pyramid you can take a y-axis right angled trangle and just rotate it still 2pi and you get the pyramid
@mediumdifficulty1875
@mediumdifficulty1875 Ай бұрын
Dithering would work so well with this (I think)
@msedovgamez
@msedovgamez Ай бұрын
0:31 Bro summoned the whole Gravity Falls Fandom 😭😭😭
@doorhandle731
@doorhandle731 22 күн бұрын
Only you
@msedovgamez
@msedovgamez 5 күн бұрын
@@doorhandle731 Oh well
@f-8ght
@f-8ght Ай бұрын
very nice man
@Wallerman-s6w
@Wallerman-s6w 19 күн бұрын
Cubes going full raygun 7:11
@AllExistence
@AllExistence Ай бұрын
That pyramid has no bottom.
@Green-Code
@Green-Code Ай бұрын
In the code there's an option to uncomment a line of code that then plots a bottom for the pyramid :) I prefer it without the bottom cause then you can see the insides
@JesusPlsSaveMe
@JesusPlsSaveMe Ай бұрын
Jesus loves you
@arandomcat-v9l
@arandomcat-v9l Ай бұрын
​@@JesusPlsSaveMebro how did you get here
@JesusPlsSaveMe
@JesusPlsSaveMe Ай бұрын
​@@arandomcat-v9l God sent me here to save souls. *John 9:4* I must work the works of him that sent me, while it is day: the night cometh, when no man can work. *Mark 16:15-16* And he said unto them, Go ye into all the world, and preach the gospel to every creature. He that believeth and is baptized shall be saved; but he that believeth not shall be damned.
@spoockybro
@spoockybro Ай бұрын
How does the rendering manege planes behind other planes?
@GokU-v9x8s
@GokU-v9x8s Ай бұрын
0:24 I can relate to you green brother next do ascii dragon with code in shape of a dragon, you can watch Dylan Beattie's Art of Code lecture by NDC conference
@ninjadk7093
@ninjadk7093 Ай бұрын
Wouldn't it be easier to make a vertices and edge table and then fill in the faces instead of trying to draw the faces and then connect them?
@Tiger_1730
@Tiger_1730 22 күн бұрын
the amount of illuminati references
@chessman3851
@chessman3851 Ай бұрын
Mumbo Jumbo
@ozunkeskin2380
@ozunkeskin2380 Ай бұрын
Hey Green Code, first of all I really like your videos and your video quality and your own style is I think perfect, and is so unique. I have some video ideas that would be super interesting to watch. Have you ever wondered about Maths, Fast Growing Functions and Fast Growing Hierarchy? I think to code the best efficient way to make the number larger, in code, could be interesting. Or maybe you can try to code Busy Beaver or THREE functions, in different ways and test their efficiencies. Please think about it if you are interested. ❤
@Tarlecinia
@Tarlecinia 2 күн бұрын
there is a python version of the donut now
@ammaralaee1087
@ammaralaee1087 Ай бұрын
how many days it took to make the donut from scratch?
@eduardgarcia4874
@eduardgarcia4874 Ай бұрын
After watching it, i didn't understand a single thing -_-
@yehiaabuelnasr7243
@yehiaabuelnasr7243 Ай бұрын
now make the hardest one. A sphere.
@user-pg1tv6lx3j
@user-pg1tv6lx3j Ай бұрын
Where did u take free c++ course?
@angngocminh3830
@angngocminh3830 Ай бұрын
was this on the internet before?
@brownie2006
@brownie2006 Ай бұрын
what's the song at 7:10?
@AlexTsaava
@AlexTsaava Ай бұрын
Who else noticed the boom counter😂?
@erenoguz3297
@erenoguz3297 Ай бұрын
2:10 why did you take the dot product. Wouldn’t you need to do the usual matrix product. What does the dot product even mean in this context.
@Green-Code
@Green-Code Ай бұрын
Yeah you are completly right. I don't know why I said the dot product. I think it's cause I also used it later for the luminescence. What I should have said is that you just perform matrix multiplication. Aghhh! I hate when I do this, cause now I got bascially no way to correct this. I'll see if I can change the edit on KZbin studio to not include that bit, while also making sure everything else makes sense. Thanks for spotting it
@everything6800
@everything6800 Ай бұрын
The Next video will be like:"I build an entire 3D microsoft flight in my terminal using c++"... xD
@Awxefgh
@Awxefgh Ай бұрын
We need to combine all 65535 ASCII char and then put into this Donut in 3 X Y Z axis
@romanpolishchuk4517
@romanpolishchuk4517 Ай бұрын
ASCII only has 127 characters, what are you talking about
@Wololo123abc
@Wololo123abc Ай бұрын
Utf-16?
@warmpianist
@warmpianist Ай бұрын
Teapot rotation
@DMO1
@DMO1 Ай бұрын
Donut rave!!
@anilsapkal9277
@anilsapkal9277 Ай бұрын
I wanna have that Simpsons 🍩🤩
@BestagonHexagon
@BestagonHexagon Ай бұрын
No, im ASCII-ing 4:32
@FantYT43
@FantYT43 Ай бұрын
Finally, new vid, I love the way you make video why is your video so long to make 😢
@verolyn8459
@verolyn8459 Ай бұрын
I spent 1 day figuring out and coding it. I saw a1kon's article too (Without tooking at the pseudo code) and I cried for like 2 times
@Green-Code
@Green-Code Ай бұрын
You're a real one
@_kalabasaa
@_kalabasaa Ай бұрын
You already made a cube, can you make a tesseract ? 7:23
@persosultubo1289
@persosultubo1289 Ай бұрын
What free course did you watch for C++ ?
@koitz5770
@koitz5770 Ай бұрын
I enjoyed Rotation Matrices
@ananttiwari1337
@ananttiwari1337 Ай бұрын
9:00 ah yes spacex reference
@RafGamerKJKKJJ
@RafGamerKJKKJJ Ай бұрын
now make a 3d renderer on terminal
@amna4uh
@amna4uh Ай бұрын
even my cooked brain cells can`t skip your vids bro ;)))))
@P1E-D3V
@P1E-D3V Ай бұрын
wow that cool
@f-8ght
@f-8ght Ай бұрын
I had watched all your videos on youtube
@divine203
@divine203 13 күн бұрын
smart pants
@pranavsharma2416
@pranavsharma2416 Ай бұрын
Bro is here to demotivate me again
@TheCoolestCrocodileEver
@TheCoolestCrocodileEver Ай бұрын
What schools helped you the most with programming?
@oldragna5866
@oldragna5866 Ай бұрын
Bill cypher 😂
@亅esus
@亅esus Ай бұрын
what about swimdroid's donut
@SobTim-eu3xu
@SobTim-eu3xu Ай бұрын
Yaaay, new video!)
@Zbezt
@Zbezt Ай бұрын
Accidental X function to get 2nd donut XD hahahaha probably a missed space somewhere if i had to guess
@SahilKumar-is2bf
@SahilKumar-is2bf Ай бұрын
Wooh man You're Crazy
@siaa2198
@siaa2198 Ай бұрын
i love u and ur videos
@bluevipergaming-r6m
@bluevipergaming-r6m Ай бұрын
Illuminati counter = 4
@オリヤ星野アイ
@オリヤ星野アイ Ай бұрын
For those who not know the binary code in his channel description and that mean "Hi! I make videos about AI and programming :)" and the binary code in his channel description look like this "01001000 01101001 00100001 00100000 01001001 00100000 01101101 01100001 01101011 01100101 00100000 01110110 01101001 01100100 01100101 01101111 01110011 00100000 01100001 01100010 01101111 01110101 01110100 00100000 01000001 01001001 00100000 01100001 01101110 01100100 00100000 01110000 01110010 01101111 01100111 01110010 01100001 01101101 01101101 01101001 01101110 01100111 00100000 00111010 00101001"
@andresjaramillo923
@andresjaramillo923 Күн бұрын
donut
@LeetHaxington
@LeetHaxington Ай бұрын
wasn't this one of the meme creations from joma
@DemonDem-pl6oi
@DemonDem-pl6oi Ай бұрын
How is the guy so cool?
@Pinothy
@Pinothy Ай бұрын
donut chain
@Pinothy
@Pinothy Ай бұрын
donut
@Green-Code
@Green-Code Ай бұрын
donut
@heckermangt
@heckermangt Ай бұрын
donut
@shedopix
@shedopix Ай бұрын
donut
@liamlienhard8693
@liamlienhard8693 Ай бұрын
donut
@hodayfa000h
@hodayfa000h Ай бұрын
So cool, but i would rather NOT try that... maybe later, preferably to understand the formulas more than anything, though i gotta finish with opengl first
@Hexacationalt
@Hexacationalt Ай бұрын
D O N U T.
@Lawdasur_Reflex
@Lawdasur_Reflex Ай бұрын
informative
@Hacky74
@Hacky74 Ай бұрын
yoo dubs u motivate me to code
@MutasimosDoesProgramming
@MutasimosDoesProgramming 12 күн бұрын
8:10 or just frickin use polygons
@Klementaun
@Klementaun Ай бұрын
why so code bullet? Are you related?
@benjaminli183
@benjaminli183 Ай бұрын
Me just who just paused the vid at 0:46 and understands it
@xenosigcm
@xenosigcm Ай бұрын
Peak video💯💯💯💯
@HarmonieCool
@HarmonieCool Ай бұрын
motation ratices
@superprocz
@superprocz Ай бұрын
Rotation matrixes. ❤ Rotation matrixes, rotation matrixes. 😢😢 Rotation matrixes. 😂😂😂
I Solved 100 LeetCode Problems
13:11
Green Code
Рет қаралды 285 М.
I Made Sorting Algorithms Race Each Other
8:24
Green Code
Рет қаралды 246 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 991 М.
This open problem taught me what topology is
27:26
3Blue1Brown
Рет қаралды 648 М.
I Solved The World's Hardest Maze (with Code)
9:54
Green Code
Рет қаралды 220 М.
I Made an AI with just Redstone!
17:23
mattbatwings
Рет қаралды 1,2 МЛН
AI Learns What Pizza Is
8:03
Green Code
Рет қаралды 352 М.
I Made A VideoGame in 48h
9:49
Green Code
Рет қаралды 21 М.
I Redesigned the ENTIRE YouTube UI from Scratch
19:10
Juxtopposed
Рет қаралды 821 М.
What was Coding like 40 years ago?
29:05
The Coding Train
Рет қаралды 1,8 МЛН
He wrote this out BY HAND? // Code Review
24:01
The Cherno
Рет қаралды 227 М.
I Made a Zero Player Game
12:30
Sam Hogan
Рет қаралды 10 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН