Hello! More than a year ago I started learning Python. Soon after I created this channel to motivate myself and others to learn Python and create cool projects. 3D ASCII spinning Donut project was one of the first projects I created and now, after a year, I finally did a detailed tutorial based on the original Donut C code created by Andy Sloane. Hope you will like it!
@NoName-vo5wb
Жыл бұрын
Making this for my programming project. Wish me luck!
@giovannicode9393
Жыл бұрын
Good luck :)
@anthonystam6867
2 жыл бұрын
Thank you! Great tutorial
@giovannicode9393
2 жыл бұрын
Glad it was helpful!
@SpyderGamer
Жыл бұрын
Thanks for the tutorial!
@AvinashSingh-xb7fb
2 жыл бұрын
Do you have any documention that shows how the formula/s used in the blog is linked to which block of code? in terms of the rotation matrix
@giovannicode9393
2 жыл бұрын
Hi, sorry I don't have any seperate documentation. All information is in the blog. Check my video '15:06 | Rotation' part and blog at the same time. For rotation we use A and B variables (A - rotation about x-axis and B - rotation about z-axis). First, we precompute cos and sin for A and B (in the blog: " // precompute sines and cosines of A and B float cosA = cos(A), sinA = sin(A); float cosB = cos(B), sinB = sin(B);". Next, we need to update the 3D coordinates after rotation by adding the rotation matrices (in the blog: "// final 3D (x,y,z) coordinate after rotations, directly from // our math above float x = circlex*(cosB*cosphi + sinA*sinB*sinphi) - circley*cosA*sinB; float y = circlex*(sinB*cosphi - sinA*cosB*sinphi) + circley*cosA*cosB; float z = K2 + cosA*circlex*sinphi + circley*sinA;"). Be aware that these formulas are already a product of the rotation matrices so check the blog for the 'untouched' rotation matrices. And we finish by incrementing A and B to have the rotation. Hope it will help you.
@alien_X1
2 жыл бұрын
Math is so hard really bring some easy tutorials sir in python or etc
@thusharafernando759
2 жыл бұрын
thank you so much
@YourAverageYoutubeCommentor
2 ай бұрын
great explanation! The Indian accent faces some competition, however.
@madhavmittal2905
16 күн бұрын
In what universe is this accent even remotely indian
@YourAverageYoutubeCommentor
15 күн бұрын
@@madhavmittal2905 this universe
@o_master362
Жыл бұрын
Can someone teach how to do this in Processing (not the output)?
@SG2005-n8o
2 жыл бұрын
When i press run it shows me an error that there is no module named 'pygame'. What should i do?
@giovannicode9393
2 жыл бұрын
Hi. Make sure you installed Pygame module.
@stavros222
2 жыл бұрын
go on the computer terminal and write pip install pygame
@DRedGuia
2 ай бұрын
Bruh, half of the video was about how bad python coders are. Wtf It supposed to run in terminal.
Пікірлер: 18