3D Rotation & Projection using Python / Pygame

  Рет қаралды 37,186

Yuta A.

Yuta A.

Күн бұрын

Пікірлер: 47
@yutaa.1904
@yutaa.1904 Ай бұрын
Hi everyone, Thank you all for the kind comments. I see all of them and appreciate every one. I never expected this video to reach so many people. If I didnt' respond to your question, it unfortunately means I don't know the answer and I don't want to invest the time to figure out the answer - sorry. Although the space is still very fascinating, Game development/math is no longer my main topic of interest since I started web development professionally. I originally decided to make the 3D projection video because there weren't a lot of videos on KZbin explaining both the math and the code behind it. Although I'd be happy to upload videos on web development, there is already so much content out there that it feels redundant. That said, I'm pretty curious about your guys' main topic of interest so it would help a lot if you could leave a comment here on what kind of content you'd like to see, if any. Depending on whether my knowledge/interest and your guys' interests align or not, I'll try coming up with another video idea for the future. Thank you all again
@lpi6298
@lpi6298 2 жыл бұрын
just what I was looking for. Very clear explanation. This guy deserves more recognition
@TheSecretDev
@TheSecretDev 2 жыл бұрын
The Time I spent trying to find a video like this that explains the maths behind it! EDIT: You need more subs this is AMASING
@kelpR
@kelpR Ай бұрын
genuinely one of the best tutorials ever thanks!
@enricopassoni1
@enricopassoni1 2 жыл бұрын
Very clear. Next step how to fill the polygons of the cube with a solid color or texture please
@Phostings1
@Phostings1 3 жыл бұрын
Oh wow, what a journey! I really enjoyed this video! Thanks for helping me understand how pygame generates 3D objects!
@yutaa.1904
@yutaa.1904 3 жыл бұрын
Thank you! I'm glad you enjoyed :)
@909crime
@909crime 2 жыл бұрын
Iv watched so many videos and this is the first one that I actually understood about 3d. Thank you seriously
@leobozkir5425
@leobozkir5425 Жыл бұрын
Great video! Just one correction for the newcomers: remove the key detection from the event loop and put it inside the main loop, so it doesn't depend on the amount of events coming in.
@LukeLane1984
@LukeLane1984 2 жыл бұрын
Good tutorial! Thanks! I was playing around with PyGame a little today, and I was wondering how to do something like this. I was already familiar with rotation matrices and matrix calculation in general, but wasn't sure how to actually code it in Python. This helped a lot! You, sir, have got yourself a subscriber!
@danhadland7087
@danhadland7087 3 ай бұрын
Finally understood matrices after this thank you
@oussamafqihberrada5111
@oussamafqihberrada5111 6 ай бұрын
Thank you, stranger on the internet!
@cosjfwhaaksemfwk
@cosjfwhaaksemfwk 2 ай бұрын
from korea, thank you soooo much!!!
@xlabc
@xlabc 10 ай бұрын
Incredibly useful 👍
@archyt88
@archyt88 Жыл бұрын
This is amazing video with great explanation math behind it, which is really important to understand. Thank you
@spacex6997
@spacex6997 6 ай бұрын
Very clear explanation. Very nice.
@BeBetter_-_
@BeBetter_-_ Жыл бұрын
me looking for hours finds this video and expirences joy
@ravethefox
@ravethefox 2 жыл бұрын
I havent tested your code but its calculated in the same way as many other python tutorials which cover up a fatal flaw by using a cube. The issue is that in certain conditions the polarity of the value of the z axis flips in all points which is invisible on a cube
@yutaa.1904
@yutaa.1904 2 жыл бұрын
Thanks for the heads up!
@ravethefox
@ravethefox 2 жыл бұрын
@@yutaa.1904 ive just tested your code and it suffers from the same issue and from my testing its not the rotation matrices but something after that im not sure what though. i printed the coords for a single point after all the rotations have been made and even if it is flipped the z axis keeps its polarity so im completely stumped. i can only assume the projection matrix is wrong but idk.
@ravethefox
@ravethefox 2 жыл бұрын
@@yutaa.1904 Im not sure yet but i think ive been having optical illusions
@treechickens1232
@treechickens1232 2 жыл бұрын
This is so cool and really well made :)
@konradLarsson
@konradLarsson 4 ай бұрын
this is really good thanks
@pancake891
@pancake891 Жыл бұрын
Omg yes thank you so much!!
@rupeshkanth
@rupeshkanth 2 жыл бұрын
Awesome.. I hope you will cover Quatrnions some day..
@Blinkers2007GameDev
@Blinkers2007GameDev 2 жыл бұрын
wow thank you your'e so awesome!!!!!! i've learnt a lot of you
@duqc
@duqc 2 жыл бұрын
Great video!
@Blinkers2007GameDev
@Blinkers2007GameDev 2 жыл бұрын
17:09 experiment with frames to understand the projection better. I did that on 1 frame, and could understand what was going on.
@nerdyturkey312
@nerdyturkey312 2 жыл бұрын
Cool 👍 Just subbed. I'm using pygame for dev tools and puzzles... When I get the time.
@jotdown2741
@jotdown2741 Жыл бұрын
How to rotate an object about its centroid Or how to rotate based on a arbitrary point
@hakankosebas2085
@hakankosebas2085 5 ай бұрын
loved it
@austineadah2843
@austineadah2843 2 жыл бұрын
Could you please do a video on gestener waves implementation in python?
@megauti
@megauti Жыл бұрын
You are great!
@Blinkers2007GameDev
@Blinkers2007GameDev 2 жыл бұрын
33 degrees sheesh!
@1979zeesh
@1979zeesh Жыл бұрын
This is awesome tutorial ive seen after a long time....i need some help: how i can modify the code to rotate this cube based on the values coming a accelerometer sensor? i get heading details from that sensor
@vigzihaman5205
@vigzihaman5205 Жыл бұрын
how can i see the position of the corner the cube in the same window
@dynast7550
@dynast7550 Жыл бұрын
how can i rotate cube based on mouse position
@Saw-qv3bl
@Saw-qv3bl 2 жыл бұрын
AMAZING but maybe you could have explained rotation a little more.
@Blinkers2007GameDev
@Blinkers2007GameDev 2 жыл бұрын
very useful video. Could you do one with OpenGL?
@culan_SCP
@culan_SCP Жыл бұрын
Its the same principle, just with the openGL code
@john5449
@john5449 Ай бұрын
could you please do a 200 subscribers video?
@finsheard8862
@finsheard8862 2 жыл бұрын
i keep getting the error 'object of type 'int' has no len()' for the variable b_rows = len(b). please could you explain how to fix that
@texrot9781
@texrot9781 2 жыл бұрын
did you solve it
@yutaa.1904
@yutaa.1904 2 жыл бұрын
Try and debug the line where you are calling the multiply_m function (specifically, the second argument that you are passing in). You should be passing in a 2d list, not an integer.
@penguinpersonplays7342
@penguinpersonplays7342 2 жыл бұрын
@@yutaa.1904 I got the same error and the issue is when drawing the points "point[0]" is an int so you are incorrect... I think, correct me if i'm wrong
@demaroaizenofe5694
@demaroaizenofe5694 Жыл бұрын
Voice Too Low
@davedave3631
@davedave3631 Жыл бұрын
Code Window was too zoomed out to see clearly. Did you expect people to be able to see what you’re typing?
Coding Challenge #112: 3D Rendering with Rotation and Projection
33:13
The Coding Train
Рет қаралды 206 М.
Let's code 3D Engine in Python from Scratch
14:55
Coder Space
Рет қаралды 399 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 45 МЛН
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,4 МЛН
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 64 МЛН
Rotations in 3D Graphics With Quaternions
8:23
Manifolds in Maryland
Рет қаралды 13 М.
Perspective Projection Matrix (Math for Game Developers)
29:13
The Math behind (most) 3D games - Perspective Projection
13:20
Brendan Galea
Рет қаралды 416 М.
Why 4d geometry makes me sad
29:42
3Blue1Brown
Рет қаралды 832 М.
I made Games with Python for 10 Years...
28:52
DaFluffyPotato
Рет қаралды 364 М.
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
I made a DONUT-SHAPED DONUT.C in PYTHON
5:40
Evan Zhou
Рет қаралды 207 М.
Professional 3D Plotting in Matplotlib
17:24
NeuralNine
Рет қаралды 121 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 45 МЛН