Python 3D Graphics Tutorial 4: Understanding 3D Graphic Parameters

  Рет қаралды 15,089

Paul McWhorter

2 жыл бұрын

You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:
www.patreon.com/PaulMcWhorter
In this video we show step-by-step instructions on how to understand and use parameters in 3D design and modeling in vpython, (visual python), and how to bring your models to life. I do not assume you are an expert, so these lessons are designed for complete beginners.
#Python
#Lessons
#Programming

Пікірлер: 160
@dryym2957
@dryym2957 2 жыл бұрын
I came here from Arduino videos and I cannot express how grateful I am for everything you're doing Mr. Paul McWhorter. You produce high quality content that I couldn't find anywhere else. Thank you!
@maku5289
@maku5289 Жыл бұрын
Had fun with the kids yesterday building a robot (with box) in the room and having the sphere turn around it. Since teaching the kids is the reason I grind these lessons, I want to thank you for it all. Only the beginning, can't wait for us to build mini robots and play with the arduino eventually. Have a great day sir! 💥☕
@hanshearth7745
@hanshearth7745 3 жыл бұрын
Already made an appointment on my calendar, not that I would need one because I am subscribed and part of the notification squad. Can't wait till Paul does a Data Analysis Python tutorial, solely on libraries like scipy, numpy, pandas :) Will become a Patreon supporter when I get my first paycheck!
@soundarrajankannan7692
@soundarrajankannan7692 2 жыл бұрын
I am Legend. I just followed your 1D animation. Then just extended to 2D like carrom Board. Then finally I did 3D. Just with two extra "if" statements and eight new variables. All thanks to you Paul. Great Tutorials. I really appreciate your effort and being consistent.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Fantastic!
@vaughntaylor2855
@vaughntaylor2855 2 жыл бұрын
Got it! Legendary, Great Lesson Paul!!
@MichaelDeCiantis-yw9qy
@MichaelDeCiantis-yw9qy 5 ай бұрын
I AM LEGEND!! I somehow managed to complete this with only one error, switching a < and > for the if statement for the z direction. This was so satisfying to complete and watch, thanks so much for the great lesson Mr. McWhorter!!
@johnhansen4794
@johnhansen4794 3 жыл бұрын
First one was excellent. I saw the '3D Graphics..' in title and was like; _Already?..._ lol. Best wishes and keep up the awesome.
@petefontana1958
@petefontana1958 2 жыл бұрын
Another great lesson.
@thenugget3671
@thenugget3671 2 жыл бұрын
Catching up with both your series, all amazing!
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Have fun!
@D3Labs_TheCreator
@D3Labs_TheCreator 3 жыл бұрын
I look forward to this video!
@colepdx187
@colepdx187 2 жыл бұрын
That last homework assignment was a good challenge. I learned a lot. Ready for more. :)
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Excellent!
@leeg.1402
@leeg.1402 2 жыл бұрын
Thanks for another great lesson. Appreciate your efforts Paul!
@leeg.1402
@leeg.1402 2 жыл бұрын
Took a little while, but I AM LEGEND!! Thanks again. Paul.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Good job
@snigdhasingh3263
@snigdhasingh3263 2 жыл бұрын
Have been watching your videos from the last 4 days and am so grateful I found your channel I wish you were one of my college professors
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Welcome!!
@alfredcalleja450
@alfredcalleja450 11 ай бұрын
Hi Paul, "I am Legend"! I got the homework right first time and it's a work of art. I removed the right hand wall so I could get a bird's eye view of the ball bouncing off all the internal walls (even though the front and right hand walls were not there. Thanks again for a great tutorial.
@paulmcwhorter
@paulmcwhorter 11 ай бұрын
LEGEND!
@NOS187
@NOS187 2 жыл бұрын
Commenting during the intro to help the youtube algorithm out :) To simplify the quotes in my IF statement. I created a new VAR roomEdge=(roomWidth/2)-(mRadius)-(wallThickness/2) Then my if statement just got adjusted to: if(xPos>roomEdge or xPos
@cbrombaugh
@cbrombaugh 2 жыл бұрын
I AM LEGEND! This is neat stuff. Thanks for your great lessons, Paul!
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
My pleasure!
@mehdikrishanbutan
@mehdikrishanbutan 2 жыл бұрын
It sounds great 💞💞💞💕💕💕👍👍👍😂😂😂
@jacksupple1704
@jacksupple1704 3 жыл бұрын
EXCITING!!!!
@JackVersey
@JackVersey 2 ай бұрын
I completely get the addition of the two variables for 'perfect bouncing' in one dimension, however for all three, I found it simpler to include more of the original parameters in the conditionals (after all the new parameters were based on the existing ones...: for i in range(0, 3): # shifts the ball incrementally pos[i] = pos[i] + delta[i] # in all three dimensions if (pos[0] >= (width/2 - rad - thickness/2) or pos[0] = (height/2 - rad - thickness/2) or pos[1] = (depth/2 - rad - thickness/2) or pos[2]
@kevinflanigan8653
@kevinflanigan8653 2 жыл бұрын
Great lesson. Instead of adding the extra variables, I just changed the "if" statement to: "if xPos>((roomWidth/2)-(wallThickness/2)-(marble.radius)) or xPos
@PeterBeens
@PeterBeens 2 жыл бұрын
That was my approach as well. Much simpler, IMO.
@aman-sood
@aman-sood 2 жыл бұрын
Well, what if you want to check the conditions over and over again? Not that you would want to in this particular program but if you have to, it would become very tedious very quickly to write the expression over and over again. Hence, it is better to simply use parameters.
@starRunnerX
@starRunnerX 2 жыл бұрын
Same
@karthikpatil2838
@karthikpatil2838 Жыл бұрын
You are legend ❤️
@johnplowright6421
@johnplowright6421 2 жыл бұрын
Oh my word, I wasn't sure about this to start with but I took my homework a little further and had the user input the room dims to start with then the ball bounces around on a diagonal path with different rates for x and y, very hypnotic to watch, or I'm easily pleased but the nett result is this is great fun.
@mikew877
@mikew877 2 жыл бұрын
Got It! Fun stuff
@ToniHayek
@ToniHayek 2 жыл бұрын
Thank you Paul, it was fun but no secret word at end I solve it with modifiying 1 line : if (xPos>(roomWidth/2)-wallThickness-mRadius or xPos
@BadReligi0nFan69
@BadReligi0nFan69 8 ай бұрын
You know -- oddly enough -- I found the visual graphics of this relatively easier to learn than the syntax stuff. Maybe cause you can see visually the logic unfold for what you are programming. Thank you! No scholastic background in computer programming -- did STEM for Molecular Biology. Greatly appreciate these lessons!
@justmc62
@justmc62 Жыл бұрын
I am LEGEND.. Here is my solution to homework assignment given in Lesson 3 .. I created a new variable called 'ballTravel' .... ballTravel = (roomWidth / 2) - (wallThickness / 2) - (mRadius). Used it in the 'while' loop. . Looks good here. Thanks again Paul for a great lesson mRadius = 0.5 wallThickness = 0.1 roomWidth = 15 roomDepth = 5 roomHeight = 10 floor = box( pos=vector(0, -roomHeight / 2, 0), color=color.white, size=vector(roomWidth, wallThickness, roomDepth), ) ceiling = box( pos=vector(0, roomHeight / 2, 0), color=color.white, size=vector(roomWidth, wallThickness, roomDepth), ) rSide = box( pos=vector(roomWidth / 2, 0, 0), color=color.white, size=vector(wallThickness, roomHeight, roomDepth), ) lSide = box( pos=vector(-roomWidth / 2, 0, 0), color=color.white, size=vector(wallThickness, roomHeight, roomDepth), ) back = box( pos=vector(0, 0, -roomDepth / 2), color=color.white, size=vector(roomWidth, roomHeight, wallThickness), ) marble = sphere(color=color.red, radius=mRadius) deltaX = 0.1 xPos = 0 ballTravel = (roomWidth / 2) - (wallThickness / 2) - (mRadius) while True: rate(30) xPos = xPos + deltaX if xPos > ballTravel or xPos < -ballTravel: deltaX = deltaX * (-1) marble.pos = vector(xPos, 0, 0)
@paulmcwhorter
@paulmcwhorter Жыл бұрын
LEGEND!
@neilausten9404
@neilausten9404 2 жыл бұрын
Also doing your AI course where we installed multiple interpreters. Couldn't work out for a moment why my vpython wouldn't run. Then penny dropped - was still in the venv for python 3.6.
@edgarpanunciolobitana4217
@edgarpanunciolobitana4217 2 жыл бұрын
nice parameter Sir Paul
@wendygrant2735
@wendygrant2735 2 жыл бұрын
As a professional cad designer this is a piece of cake, so sure I'm legend. I did put in a 'glass' in the front so we can see the ball bouncing and yet the box is closed. from vpython import * from time import * mRadius=1 wallThickness=.2 roomWidth=15 roomDepth=20 roomHeight=5.5 floor=box(pos=vector(0,-roomHeight/2,0),color=color.red,size=vector(roomWidth,wallThickness,roomDepth)) ceiling=box(pos=vector(0,roomHeight/2,0),color=color.red,size=vector(roomWidth,wallThickness,roomDepth)) leftwall=box(pos=vector(-roomWidth/2,0,0),color=color.red,size=vector(wallThickness,roomHeight,roomDepth)) rightwall=box(pos=vector(roomWidth/2,0,0),color=color.red,size=vector(wallThickness,roomHeight,roomDepth)) backwall=box(pos=vector(0,0,-roomDepth/2),color=color.red,size=vector(roomWidth,roomHeight,wallThickness)) frontwall=box(pos=vector(0,0,roomDepth/2),color=color.white,opacity=0.15,size=vector(roomWidth,roomHeight,wallThickness)) marble=sphere(radius=mRadius,color=color.blue) deltaX=.1 deltaY=.1 deltaZ=.1 xPos=0 yPos=0 zPos=0 while True: rate(40) xPos=xPos+deltaX if xPos>=((roomWidth/2)-(mRadius)-(wallThickness/2)) or xPos=((roomHeight/2)-(mRadius)-(wallThickness/2)) or yPos=((roomDepth/2)-(mRadius)-(wallThickness/2)) or zPos
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
OK, did not know you were a CAD designer. Then, this should make perfect sense. Electronic folks, on the other hand, intrinsically think in 2D so become confused on things like this, or really struggle with things like fusion 360. I will be starting a fusion 360 series soon, and hope to help struggling electronic types along the path to the world of 3D
@tiberiumihaescu7348
@tiberiumihaescu7348 2 жыл бұрын
Legend!
@CK-sv8fc
@CK-sv8fc 2 жыл бұрын
I am legend!!! Looks like the DVD icon when bouncing in the TV screen but 3D because it has depth!! I wasn't sure at first because the ball only moved in z-axis but after an hour of head banging I got it right
@renikuntashravya5081
@renikuntashravya5081 3 жыл бұрын
U r a good tutor !!i like all of ur vedios
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Glad you like them!
@makergc3d
@makergc3d 7 ай бұрын
FULCWL-created 3 classes, each with a method with rate as the object. Ball remained stationary. Now to learn what knowledge from prior lessons needs to be incorporated and why.
@horamflyers3839
@horamflyers3839 2 жыл бұрын
Hi Paul Thanks for the tutorials. I believed I had correctly done the homework and it looked good on the screen. Then I saw your solution and realised I had not allowed for the edge of the wall. When the wall thickness is increased to 1 the ball clearly is penetrating to its centre. Must try harder.
@freedomer342
@freedomer342 7 ай бұрын
something that really tripped me up on this was watching where to put your "-' negative sign at.
@opalprestonshirley1700
@opalprestonshirley1700 2 жыл бұрын
Came close but no cigar. Your explanation helps clear the clouds, just have to keep doing. See you tomorrow.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Opal, it is just like X, exactly . . . you just have to do the exact same thing in y and z.
@opalprestonshirley1700
@opalprestonshirley1700 2 жыл бұрын
@@paulmcwhorter Thanks, Paul.
@floridian080
@floridian080 2 жыл бұрын
Fun lesson. I am legend!
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Yes you are!
@railcat7083
@railcat7083 2 жыл бұрын
Legendary bounce...
@excelconcepts1014
@excelconcepts1014 2 жыл бұрын
A simple coordinate geometry and 3D geometry is applied. But one must make sure to clear basic concepts of vectors while working on these projects.
@lokey2100
@lokey2100 2 жыл бұрын
Since mradius is a parameter, you can also use "if xpos > (roomwidth/2)-mradius or xpos < (-roomwidth/2)+mradius"
@anvithavinod3713
@anvithavinod3713 7 ай бұрын
but of you dont account for wall thickness then i think you shall notice that the ball enters through half of the wall thickness as well yea?
@jeas29
@jeas29 2 жыл бұрын
Great tutorial, thanks. I love coding *and* watching silly cats videos ;-)
@antrikshfulwani7087
@antrikshfulwani7087 Жыл бұрын
I AM LEGEND! I did my homework, and out of curiosity, I made a room with a functioning door, I added some furniture like a bed and a closet(With functioning doors). Thank you for another amazing tutorial! Edit: The bed part was extremely hard.
@paulmcwhorter
@paulmcwhorter Жыл бұрын
LEGEND!
@kennethlandis8037
@kennethlandis8037 2 жыл бұрын
You're over thinking the wall bounce. You already have bounce defined by the room width. Therefore, the bounce occurs when the center of the ball hits the edge of the wall. So it's just a matter of subtracting the ball radius in the if statement if(xpos>rwidth/2-mradius or xpos
@ritwikkaushik4026
@ritwikkaushik4026 2 жыл бұрын
After creating 6 new variables task is done,I M legend!!
@manuelaviles1534
@manuelaviles1534 Жыл бұрын
¡Gracias!
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Really appreciate that!
@jonathanlanders9406
@jonathanlanders9406 Жыл бұрын
I AM LEGENDARY! Like some other commentors, I fixed the bouncing marble running through the wall in lesson 2. I fixed it with parameters in lesson 3.
@paulmcwhorter
@paulmcwhorter Жыл бұрын
LEGEND!
@ritwikkaushik4026
@ritwikkaushik4026 2 жыл бұрын
Sir are your new jetson nano lessons are coming ,if yes when?
@jamesd4846
@jamesd4846 9 ай бұрын
I am legend. Varying each of the delta values by small amounts makes it much more interesting. 😉
@paulmcwhorter
@paulmcwhorter 9 ай бұрын
LEGEND!
@rickbonari4493
@rickbonari4493 2 жыл бұрын
Hello Paul, Excellent lesson and I love your use of math equations to explain what needs to be accomplished !!!! Excellent teacher !!!!!! The best !!!!! I did have one question. When you changed to a bigger box and a bigger marble something about the box doesn't look right. Either both the floor and ceiling looked too short or both of the walls needed to be moved in. It looks like a box with a notch in the four corners. Should this be? Is not what I would have expected. Thanks again for your great lessons !!!! Rick
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
It is doing what we say if you think about it. It is aligning the center of the wall to the position. You would have to modify wall position by half the thickness of the wall.
@peterkarlsson7801
@peterkarlsson7801 2 жыл бұрын
This is something you have to think about when you're building "real" boxes.
@jeas29
@jeas29 2 жыл бұрын
For a better result, you can just set 'size=vector(roomWidth+wallThickness, wallThickness, roomDepth)' for the floor and the ceiling.
@prot0form775
@prot0form775 2 жыл бұрын
why is it that when deltax is changed to 0.5 the marble goes through the wall slightly? I can't find a solution to this, the velocity of the ball shouldn't affect whether the conditionals are met or not...
@bassman2162
@bassman2162 2 жыл бұрын
In the lesson I put a comment about making the ball bounce back when it touched the was rather then halfway through, but I have to admit that I did not account for the thickness of the wall. with the code I showed if you made the wall thickness 3, my ball would enter the wall. As you said, as coders we need to test under different conditions, especially the extremes. Fixed solution below.: if (xPos+wallThickness/2 >= (roomWidth/2-mRadius) or xPos-wallThickness/2
@jan10n
@jan10n Жыл бұрын
It's much easier to visualise when you write: xPos + mRadius > (roomWidth - wallThickness) / 2 ^ marble part ^ wall part
@martinnielsen565
@martinnielsen565 2 жыл бұрын
I AM LEGEND TOO! Very learningfull. But please close room corners by adding wall thickness to wall width, length and depth. :)
@harshpatel631
@harshpatel631 2 жыл бұрын
Hey Paul, will you please create lessons for coding an arduino in Python. Thank You!
@pokerface68
@pokerface68 2 жыл бұрын
I got mine to work but I guess I did not fully paramaterize everything, I just changed my if statement to: "if xPos > (roomWidth - wallThickness) / 2 - mRadius or xPos < (-roomWidth + wallThickness) / 2 + mRadius:" which worked and used less variables/parameters. I guess I am not really sure why having additional variables is better than just changing the if statement. I will try to do the homework using your parameters method to get the ball bouncing in 3 dimensions and see where that gets me!
@johnplowright6421
@johnplowright6421 2 жыл бұрын
After a little confusion with why the ball was not moving in the Z direction realised I forgot to add ZPos variable to my ball.position vector, correcting mistakes is best way to learn
@change4432
@change4432 2 жыл бұрын
Please read : the distance between the left wall and right wall is 10 instead of 5,i apologize
@John-vw1wj
@John-vw1wj 2 жыл бұрын
I am Legend. The result is almost as good as a fish tank, with one big round fish. Hours of fun, well maybe a few mins :)
@theotherjimmyray7507
@theotherjimmyray7507 2 жыл бұрын
here is what i did to get the marble to stay inside the walls. travel=(roomwidth/2)-mRadius-wallThickness/4 if(xPos>travel) or (xPos
@aladdinsamaddin2915
@aladdinsamaddin2915 2 жыл бұрын
Pls advises me what exercise's book could pay to enhance me?
@ernestomendoza4862
@ernestomendoza4862 2 жыл бұрын
I am a legend!
@jeffthulin4535
@jeffthulin4535 2 жыл бұрын
Here is my solution: if xPos>((roomWidth/2)-(wallThickness/2)-(mRadius)) or xPos
@user-sz1jj6bj1d
@user-sz1jj6bj1d 6 ай бұрын
Efficient coding would have the left and right marble edge and the left and right wall edge defined only once OUTSIDE the loop since they do not change
@trickman01
@trickman01 2 жыл бұрын
I am legend!
@eyobdesalgn5984
@eyobdesalgn5984 2 жыл бұрын
how do we use threads in vpython?
@martinlewis645
@martinlewis645 2 жыл бұрын
@LEECHINLEONG0705
@LEECHINLEONG0705 2 жыл бұрын
Good
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
So nice
@LEECHINLEONG0705
@LEECHINLEONG0705 2 жыл бұрын
@@paulmcwhorter 👍
@ericjames9440
@ericjames9440 2 жыл бұрын
I can't find a setting to make the marble move. Maybe my laptop is too old and doesn't have the graphic card to run this program. The program loads and runs okay. In the prior lesson the marble moved but it wasn't smooth. Suggestions? I'm dead in the water right now
@Vbeck56
@Vbeck56 2 жыл бұрын
change the rate to 50 or 100, I have a high end graphics card and 10 was really choppy
@zaiko1
@zaiko1 2 жыл бұрын
I'm legend 😎 My if statement looks a little bit different My logic was If xPos>((roomW/2)-(mRadius+(wallT/2))) or xPos
@wutmahotel9679
@wutmahotel9679 5 ай бұрын
I’m legend!
@paulmcwhorter
@paulmcwhorter 5 ай бұрын
LEGEND!
@charizardx7316
@charizardx7316 3 жыл бұрын
Hey Paul!!! Can I ask you a favor, can you also make a tutorial for c++ please.
@codecage9333
@codecage9333 2 жыл бұрын
@Ahnaf Rahman - Paul isn't a fan of C in any flavor, so isn't likely to do a series using that, even though that is what gets used on the Arduino side of things. I took multiple C courses while in college and even had a 'note' added to my degree about my excellent record in C, but now I'm way past that and see no reason to use C when I have Python available.
@Joel-pl6lh
@Joel-pl6lh 2 жыл бұрын
Arduino use C/C++, you can learn a lot with his new arduino serie
@bryankohn9660
@bryankohn9660 2 жыл бұрын
I am legend. No cheap lawn chairs for me this week.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Good job
@change4432
@change4432 2 жыл бұрын
I think the calculation is a bit messy, the distance between the left wall and right wall is 5. So, in this case i think we should not consider the wall thickness. I think we should consider the center of the marble and the center of the left and right wall will coincide, so the marble will travel 0.75 less than half of the distance between the edges of the left and right wall. Therefore, the calculation or the code should read like this: If( xPos >(4.25) orxPos
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Use parameters man, not constants. Go watch the next few lessons. YOu are doing the hard way.
@brianwhitaker6608
@brianwhitaker6608 2 жыл бұрын
I did that too when I did the homework. However, you do need to parameterize because if you change the wall thickness or marble radius the marble will not reverse at the right position. I didn't realize the error until I saw Paul's solution. Lesson learned, testing the program is important.
@AudhumblaLab
@AudhumblaLab 10 ай бұрын
I'm a legend. I used already defined parameter: if x_pos > room_width/2-(m_radius + wall_thickness / 2), oo I have not defined new parameters.
@wayneswan3092
@wayneswan3092 2 жыл бұрын
I am legend-ish I know there's got to be a better way, but I divided room width by 2 and then added the marble radius to the wall thickness and then subtracted the sum of each from each other... like this....( roomWidth/2)-(wallthickness+mRadius) or ( roomWidth/2)+(wallthickness+mRadius) BUT, I'm betting you're about to show us a better way.
@wayneswan3092
@wayneswan3092 2 жыл бұрын
your way worked better. mine didn't 'stay symmetrical to the changes.
@Bubby9767
@Bubby9767 Жыл бұрын
I could mess with this stuff all day, My wife is starting to get upset. lol
@websnuzy6240
@websnuzy6240 9 ай бұрын
I am ledgend!
@paulmcwhorter
@paulmcwhorter 9 ай бұрын
LEGEND!
@RobVollmar
@RobVollmar 2 жыл бұрын
Verily, I say unto thee: BOOM!
@vandanasrivastava2028
@vandanasrivastava2028 2 жыл бұрын
I am a legend
@_The_Unreal_
@_The_Unreal_ 2 жыл бұрын
I am the legend
@babali7588
@babali7588 2 ай бұрын
Increase the rate to 100 that will make you happier :)
@edgarpanunciolobitana4217
@edgarpanunciolobitana4217 2 жыл бұрын
mine is roomWidth/2-mRadius that's all
@neilausten9404
@neilausten9404 2 жыл бұрын
Folded. Tried to extrapolate from X but using 3 if statements just won't work for me. Await your method
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Think through it. Maybe just do only y instead of x. Then do x and y. Then Maybe you will see where to go.
@neilausten9404
@neilausten9404 2 жыл бұрын
@@paulmcwhorter Got them all going separately, just can't join them. Tried using if and elif, no success, have to await your solution.
@hezekiahfreeze6454
@hezekiahfreeze6454 Жыл бұрын
I AM LEGEND
@endangeredgamer3618
@endangeredgamer3618 3 жыл бұрын
I guess that you had entered the wrong DATE OF PREMIERE. it says that it will premiere on august 4th...
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
No, the first video in my python class is released this coming Wednesday. Then one video a week will be released. So this is like the 25th one in the series and will be released in August
@endangeredgamer3618
@endangeredgamer3618 3 жыл бұрын
@@paulmcwhorter Ohk it's kinda confusing...
@codecage9333
@codecage9333 2 жыл бұрын
Not confusing at all if you follow along and watch on the premiere date!
@johnnyjohn6645
@johnnyjohn6645 2 жыл бұрын
this is the only channel i turn my addblock off
@kevingriffin55
@kevingriffin55 2 жыл бұрын
I am LEGEND
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Yes you are!
@bigbogeyface
@bigbogeyface 2 жыл бұрын
I am legend 👍
@codecage9333
@codecage9333 2 жыл бұрын
@Big Bogey Face - Meaning you have completed the homework? I hit a brick wall! And so did my bouncing ball. I can't seem to move in the Z plane at all. Any hints on knocking that brick wall over? 😒
@bigbogeyface
@bigbogeyface 2 жыл бұрын
@@codecage9333 You can do it 💪 I totally believe in you 👍 The easiest way is to go back to how you had the code last week when it just moved on the X axis, notice the 5 things that make that happen: deltaX, xPos, While: xPos, if, ball 👍 (This one is special) 🤫😉 Good luck dude 🤙
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
I enjoy hearing people are struggling a little. I want homework to be doable but challenging. Good luck!
@codecage9333
@codecage9333 2 жыл бұрын
@@paulmcwhorter While it took we awhile to see the forest for the trees, it turned out to be a fat finger typo!
@bigbogeyface
@bigbogeyface Жыл бұрын
@@paulmcwhorter kzfaq.info/get/bejne/bragjZd7s7DIlmQ.html Photon Travelling in real time to The Moon 🌚 and back 🌎 🙂👍
@brianwhitaker6608
@brianwhitaker6608 2 жыл бұрын
I am Legend! I modified the parameters a bit so the outside corners are square. Took me a few tries to figure out how to give it a push in the 'Z' direction, it was really obvious, just didn't see it at first :) Here is a video of it working. kzfaq.info/get/bejne/edqVg9J11L3Hn2w.html
@zaqk2
@zaqk2 2 жыл бұрын
I am legend B)
@MrElFRanz
@MrElFRanz 2 жыл бұрын
Hello Paul, This is the KZfaq address of my homework: kzfaq.info/get/bejne/q9l8l5R2ua7Mj4U.html My computer is very slow, this makes the image jumpy, and it was difficult to move the image on the browser precisely. Opacity of the walls is 0.2, so the movements in the z axis can be seen better.
@techodisha4836
@techodisha4836 2 жыл бұрын
22:44 thara bhai joginder🤣🤣🤣🤣
@davedave3631
@davedave3631 Жыл бұрын
Who’s the Huckleberry? You’re the Huckleberry and, judging from the background photo, it looks like Jim might be your son-in-law.
@edgarpanunciolobitana4217
@edgarpanunciolobitana4217 2 жыл бұрын
for thin wall only haha sorry
@amimulahsan1289
@amimulahsan1289 3 жыл бұрын
Are you serious? It's in August. Really? Who would wait that long?
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Typical ungrateful critic. I release one python video a week. The last one was yesterday, and the next one will be next week. I premake videos so you will have new content coming out each week. The videos are free, and I ask for nothing. Yet you complain. I strongly suggest you go over to a place like udemy and pay for your content as the freely given stuff does not meet your standards. Rude comments like this make me think I should have just charged for all the content I have produced.
@ArtificialDevLabs
@ArtificialDevLabs 3 жыл бұрын
@@paulmcwhorter Do not let that one guy get to you he is not worth it. There is so many people who are very grateful for your videos and that you share them with us for free. Keep up the amazing work and focus on the people who are grateful not the ungrateful ones.
@satyananda4389
@satyananda4389 3 жыл бұрын
Keep going on Mr Paul, i really like your content ;)
@akosslemmer4603
@akosslemmer4603 3 жыл бұрын
@@paulmcwhorter Sir, I'm sure you know this already, but the overwhelming majority of your viewer base is the exact opposite of this douche. People who are just tuning in, and are afraid to comment exist as well, and they are just as grateful as the next person who is commenting on each video. You are changing lives, and leaving a huge positive footprint on this world by doing so. The like minded people like you are whom I can't thank enough.
@akosslemmer4603
@akosslemmer4603 3 жыл бұрын
I don't get the point of your comment. If you are not willing to wait that long, then you are certainly not eager to watch this video, and to learn from it. So why comment? You are just being an entitled douchebag, noone is forcing you to like, or even watch/wait for these content what so ever.
@bscott8787
@bscott8787 2 жыл бұрын
Thank, Paul. I'm having a blast with your tutorials and am excited to see how to relate this to the real world. There was one parameter change that caused the ball to protrude the wall - I'm wondering if this happens with yours also. I increased DeltaX to 1 in order to speed up the ball movement; this caused the issue. I realize now that I could increase the velocity of the ball by increasing the rate(), but why do you think DeltaX would cause this anomaly?
@halvlitern1617
@halvlitern1617 2 жыл бұрын
I think increasing DeltaX will cause the ball to jump further per tick. Therefore it will not change direction until after the tick, hence protruding the wall. One could say by increasing the rate() you get a more "accurate", tracing movement of the ball.
@aman-sood
@aman-sood 2 жыл бұрын
I am legend!
@lemonlover5011
@lemonlover5011 Жыл бұрын
I AM LEGEND
@lemonlover5011
@lemonlover5011 Жыл бұрын
I AM LEGEND