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.
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.
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
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
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
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. ❤
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
@@someoneiguessmeow 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.
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
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?
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
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 UA-cam studio to not include that bit, while also making sure everything else makes sense. Thanks for spotting it
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"
Go to brilliant.org/GreenCode/ to learn more about Computer Science with a free 30-day trial and 20% off the premium subscription!
@@ZapayaGuy hahahahahaha wtf this channel is for programming 😂
@@FangYuan-s2b I reported that comment
@@N3rd-s1h for what?
As a C++ Plus programmer, I can tell you that chat GPT does not help in C++
As a beginner C++ programmer I'm grateful for your advice and will account for this information in the future
@dylananderson20023 Yes, especially in the field of algorithms, which is my specialty
@@EmpinadoMaxbmdggTheSun I hope you are successful. But get ready to be greedy from now on
I use python and it is quite useful for python so it is possible it is just bad at c++
@@kautilyaconcepts yeah, I've seen many times that python and chat GPT are total bros, and c++ probably was just not invited to this party
I love how when he shows the code at 0:04, there's two long comments added to make the code a donut.
finally... code bullet but way cuter is back... welcome back king
huh
@victorfunnyman it's cute code bullet
you're saying that like code bullet isn't cute himself... 😔
@@lucidmime exactly what I though lmao
@lucidmime he's cute. but not nearly as cute as green code 🥰
Me seeing this video popping up in my recommended: Oh, hey he posted a video about a donut
fr
For the cube couldve just done:
Max(Max(|x|, |y|), |z|)
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.
How is this underrated, it's so cool that he barely did all shapes
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.
First time watching you and your video is just amazing! Thanks a lot for such great content. It was really interesting)
Little fix, it's not dot product, just normal matrix multiplication
4:15 ngl that is a pretty cool VHS effect it makes the rotating donut dramatic
I knew it! I remembered seeing this in the past. The glorious donut. 💀
i did something like the cube too, but instead calculated the cornors of the cube and drew lines inbetween them (makes a wireframe cube)
Beautiful stuff!
Killed the explaination part
No i am mean he really just killed the explaination part
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 ;)
cant wait for "I made a graphics compiler in c++"
Mom, can we have Code Bullet?
Mom: No, we have Code Bullet at home.
Code Bullet at home:
Cubes going full raygun 7:11
this video should go viral under my supervision
"You don't need maths for programming"
Yeah, then explain this
I neeeeeeed it (thanks for video) ❤
As a newbie programmer,
(Started python a year ago as a hobby)
I really appreciate your efforts!
Even if it's for yourself…
1:04 its because required libraries were not included
Whoa, 3D rotation is way over my head ^^
Besides that... Great video! Funny how many things can possibly go wrong :-)
Kid friendly Code Bullet:
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
1000 views in 1 hour bro is thriving
"for some reason" - most popular programmers thought
You go into detail about what ASCII characters are but barely go into detail about linear algebra math lol
As someone who made a 3d renderer I can confirm rotating donut is the easy part.
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
1:10 Minuet in G major by Bach goes hard
Lol nice comment
I watched every vid need more
Keep it going🔥
very nice man
great video!
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
Bro I love your videos pleas upload more frequently
the amount of illuminati references
even my cooked brain cells can`t skip your vids bro ;)))))
Dithering would work so well with this (I think)
Mumbo Jumbo
0:31 Bro summoned the whole Gravity Falls Fandom 😭😭😭
Only you
@@doorhandle731 Oh well
Very cool as for practical application - Krispy Kreme will be impressed!
actually you can apply this knowledge to make a camera in 3d space which powers 3d games.
doom in microsoft command prompt
The Next video will be like:"I build an entire 3D microsoft flight in my terminal using c++"... xD
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. ❤
I wanna donut
Same. I'm gonna get one rn
Same
do do you wanna do-nut
Yaaay, new video!)
That pyramid has no bottom.
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
Jesus loves you
@@JesusPlsSaveMebro how did you get here
@@someoneiguessmeow 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.
there is a python version of the donut now
Who else noticed the boom counter😂?
I had watched all your videos on youtube
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
Finally, new vid, I love the way you make video why is your video so long to make 😢
I enjoyed Rotation Matrices
Bro is here to demotivate me again
Teapot rotation
What schools helped you the most with programming?
Do rotation matrices take care of hidden surfaces? (Nontrivial for a nonconvex object like a torus.)
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?
i love u and ur videos
wow that cool
I wanna have that Simpsons 🍩🤩
Donut rave!!
Rotation matrixes. ❤ Rotation matrixes, rotation matrixes. 😢😢 Rotation matrixes. 😂😂😂
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
You're a real one
now make a 3d renderer on terminal
Wooh man You're Crazy
9:00 ah yes spacex reference
What free course did you watch for C++ ?
smart pants
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
How does the rendering manege planes behind other planes?
Accidental X function to get 2nd donut XD hahahaha probably a missed space somewhere if i had to guess
does brilliant teach linear algebra, and trigenometry?
what about swimdroid's donut
Peak video💯💯💯💯
u r crazy good at coding why does ur website look likes , wordpress
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?
Bill cypher 😂
how many days it took to make the donut from scratch?
You already made a cube, can you make a tesseract ? 7:23
No, im ASCII-ing 4:32
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
yoo dubs u motivate me to code
donut
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.
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 UA-cam studio to not include that bit, while also making sure everything else makes sense.
Thanks for spotting it
8:10 or just frickin use polygons
was this on the internet before?
How is the guy so cool?
informative
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"
What imports did u use? i am making a project similar to this, and i would like to know
Where did u take free c++ course?
hi green code love your vidioes from india
D O N U T.
donut chain
donut
donut
donut
donut
donut
Super
nice