How to rotate any graph by any angle (Part 3)

Поділитися
Вставка

КОМЕНТАРІ • 167

  • @pseudonym8762
    @pseudonym8762 Рік тому +173

    WOOOOOOO PART 3 LETS GOOOOO

  • @leleep_
    @leleep_ Рік тому +91

    This is just like drawing a cube on a paper. We stretch one face of square linearly along the plane to make it a cube. This concept is interesting

  • @samylahlou
    @samylahlou Рік тому +95

    Instead of rotating the curve, you can make the POV change during time. Parametrize the path of the POV, deduce the equation of the plane onto which the projection will be done in terms of the coordinate of the POV and make a change of basis to get rid of the z coordinate. Sounds more difficult but is actually not that hard.

    • @slayvict
      @slayvict Рік тому

      I'm not sure, but I think moving pov away from the Z axis requires a lot more work. You need to use a perspective projection matrix, think about FOV. The camera is a vector and the direction the position looks is backwards, and a lot more complicated stuff. When I tried to code this using c# I messed up on so many levels that I gave up, I had a deadline for the project so I used an external library. I will definitely write proper poor 3d library only for sake of my linear algebra knowledge

    • @samylahlou
      @samylahlou Рік тому +1

      @@slayvict I don’t really know what a perspective projection Matrix is but if you have a POV that always look at the center of the 3D space, you can deduce the equation of the plane you project onto, the equation of the projection of the original 3D curve, the change of basis matrix only with the coordinate of the POV. Which means that if you parametrize the POV, you can actually do exactly as much as with a fixed point. I did this a few weeks ago and it worked perfectly.

    • @didodido883
      @didodido883 Рік тому +1

      ​​@@samylahlou Perspective projection matrix is simply division by z axis raised to some power like 0.4 to both x axis and y axis. it took me too long to realise this simple fact in making 4-cube.

  • @mr.biscuits2160
    @mr.biscuits2160 Рік тому +24

    NO WAY I WAS JUST DONE WATCHING PART 2. THIS MATERIAL IS PURELY BONKERS. Let's goooooo bean dude

  • @kappascopezz5122
    @kappascopezz5122 Рік тому +42

    To avoid the formulas becoming too unwieldy, I like to use shadertoy instead of desmos. Though that doesn't do as well with parametric equations

  • @Mr.Carrot
    @Mr.Carrot Рік тому +20

    This is why math is beautiful

  • @Hummus_Yummus
    @Hummus_Yummus Рік тому +10

    I saw the first two videos a few days ago and now I'm a desmos wizard.

  • @lMINERl
    @lMINERl Рік тому +30

    Okay that was beautiful 3 part series you easily earned the sub

  • @Jaun_
    @Jaun_ Рік тому +12

    This is answering a lot of long time questions I just never bothered to go look for - but so glad I found

  • @DadicekCz
    @DadicekCz Рік тому +12

    I love this series! And i love that it actually gives an insight into the concept of how 3D images on computers work!

  • @flugunfal
    @flugunfal Рік тому +18

    Your videos are amazing! Thank you for making them.

  • @suddeneevee9441
    @suddeneevee9441 Рік тому +6

    "Spiral vortex"
    So just an ordinairy spiral, but the radius is exponential?
    That ought to be an interesting projection :)

  • @jixpuzzle
    @jixpuzzle Рік тому +3

    Bro! Your channel is an absolute goldmine of youtube! Golden Content!!! Keep it up man:)

  • @afzal_amanullah
    @afzal_amanullah Рік тому +3

    1 step closer to creating doom in desmos.

  • @teamruddy611
    @teamruddy611 11 місяців тому +1

    As one of the few people who actaully drew 3D stuff in desmos this is easy.

  • @Shayos
    @Shayos Рік тому +1

    You are honestly just incredible

  • @reecec626
    @reecec626 Рік тому +1

    I love watching the number of subscribers grow!

  • @erazemburger1153
    @erazemburger1153 Рік тому +8

    God I love your content

  • @Longseax
    @Longseax Рік тому +1

    even with b1 i can understand you, such a good job!

  • @agargamer6759
    @agargamer6759 Рік тому +13

    Wow, that is a monster of an equation!

  • @yaghogrossi7947
    @yaghogrossi7947 Рік тому

    Bro, your vids are amazing. BONS PRA KRL. Keep on the awesome work!

  • @moppermop5287
    @moppermop5287 6 місяців тому

    The fact that Desmos now has a 3d version makes this video very useful.

  • @shashankjrao4148
    @shashankjrao4148 Рік тому +8

    Damn the subs be growing at 2k a day
    You deserve even more

  • @jujeep3204
    @jujeep3204 Рік тому +1

    Thank you a lot of knowledge, could you make a lot of math like this, I love you.

  • @lawrencechan6368
    @lawrencechan6368 Рік тому +4

    my favourite series :)

  • @michakochanski9240
    @michakochanski9240 Рік тому +4

    daily portion of desmos madness :D

  • @kono152
    @kono152 Рік тому

    you should make a series on transforming an axis into any curve, i did it for a parabola and it gave some pretty interesting results

  • @fckyu5440
    @fckyu5440 Рік тому +1

    Keep up the good work, Beanie!

  • @nirki
    @nirki Рік тому

    This is beautiful.

  • @teddyzhou2074
    @teddyzhou2074 Рік тому +5

    Great video❤, could you make a video about how to mirror any graph over any point or any line?

  • @TupperWallace
    @TupperWallace Рік тому +1

    Good job, and amusing persona

  • @Javie3
    @Javie3 Рік тому +3

    Weeeee, spining graphs!!

  • @MrGnome-ng6jv
    @MrGnome-ng6jv Рік тому +1

    you are an artist

  • @JLeoRV
    @JLeoRV Рік тому +1

    Beautiful.

  • @guigazalu
    @guigazalu Рік тому +1

    4D: maybe, there's a map editor for 4D miner, and you could use something like marching [hyper-]cubes to determine which blocks would make part of the mesh.

  • @HighKingTurgon
    @HighKingTurgon Рік тому

    Can't wait for Part 4

  • @mug6377
    @mug6377 Рік тому +2

    my brain exploded watching this video

  • @elhoplita69
    @elhoplita69 Рік тому +1

    This is gold!!

  • @WhyneedanAlias
    @WhyneedanAlias Рік тому +7

    Love it, before this video came out I decided to play around with 3D rotations because of the tease at the end of last video. I got it working using a rotation matrix and the formulae erre actually much simpler than yours, although I cannot as easily change the rotation axis. I'd probably have to rotate twice.
    Anyways earlier today I made an interactive program in desmos where you can move on the z axis to and from a unit sphere around the origin. You can change certain parameters like opacheness and auto rotation. Maybe I'll post it somewhere when I'm finished because I'm honestly a bit pround about it ^^'
    About the 4D case I think it would be quite similar if youuse the same formula to project it first from R⁴ to R³ and then to R². Maybe something like 30/30-w*[x,y,z,0] (w is the 4th coord) again and from there you have it in 3D again. Maybe I'll play around eith it tommorrow xD

    • @WhyneedanAlias
      @WhyneedanAlias Рік тому +1

      Update: So I tried the 4D thing and in theory it seems to work. I've succesfully created a grid of the "surface" of a hypersphere. But I am not happy with my projection algorithm 1/((d-z)*(d-w))*(x,y). It is simply the one for 3D applied twice and because of that it treats the z and w axis equal which I do not like. Moving 1 across the z axis looks the same as moving 1 across the w axis.
      Maybe I'll find a better formula
      Update: I made a Hypercube and I got it spinning and I actually got an animation similar to the one we all know where it turns inside out.
      I prijected it from 4d to 3d by first creating a point like a lightsource and then calculated it's 3d shadow on the x,y,z space. The difference to before was to make that point independent from the observer

    • @didodido883
      @didodido883 Рік тому

      ​@@WhyneedanAlias steal the code from here.
      ua-cam.com/video/4URVJ3D8e8k/v-deo.html

    • @didodido883
      @didodido883 Рік тому

      or i think source code is not being provided in that video.

    • @WhyneedanAlias
      @WhyneedanAlias Рік тому

      @@didodido883 It was still an interesting watch, so thank you.
      I think my formula actually works relatively fine. It would be p(x,y,z,w)=d2/(d2-w) * [x,y,z] to have it in 3D and then you can just use the method from the video to get in to 2D. At this step you can use the 2D rotation stuff from video one to rotate it around any plane like the x-w plane to get some cool effects.
      Edit: maybe I should add that d2 is just a constant referring to the 4D point from which to project to the x-y-z hyperplane. It has the coordinates (0,0,0,d2)

    • @parkergough9940
      @parkergough9940 Рік тому

      Sense you proj from 4 space, can you proj double rotation to 2 space with your formula?

  • @kelvin-6710
    @kelvin-6710 Рік тому

    Very educational.

  • @draido-dev
    @draido-dev Рік тому +4

    im waiting for part 4

  • @paulbloemen7256
    @paulbloemen7256 Рік тому

    An idea to spend a video on geometric algebra? It seems to do miracles on computer graphics.

  • @CreativeEQW
    @CreativeEQW Рік тому

    Matbatwings did method two in minecraft with redstone, such a cool creation

  • @user-kq3xn3jp7m
    @user-kq3xn3jp7m Рік тому +1

    this is gonna be fun

  • @Scrumtrulescent
    @Scrumtrulescent Рік тому +1

    Amazing!!!

  • @CorbeusUltra
    @CorbeusUltra Рік тому

    It would be nice to have a complete desmos tutorial, i dont even know how to do parametrics equations

  • @Witch_of_Pandemonium
    @Witch_of_Pandemonium Рік тому +3

    Nice it's finally here

  • @Siwdvi
    @Siwdvi Рік тому +4

    That man has a brain bigger than my mom

  • @niom9446
    @niom9446 2 місяці тому

    insane big pog content

  • @mohammadal-rafati9555
    @mohammadal-rafati9555 Рік тому +2

    Liked before watching

  • @fano72
    @fano72 24 дні тому

    You explained to Principe of Ray Tracing by the way!

  • @ArchDudeify
    @ArchDudeify Рік тому +2

    More please 🙇‍♂️

  • @lemonade1316
    @lemonade1316 Рік тому +2

    Ur awesome :)

  • @charlierd4860
    @charlierd4860 Рік тому

    Lets go🎉 episode 3

  • @vicr123
    @vicr123 Рік тому +1

    Your videos remind me a lot of a guy I used to watch called Sen Zen

  • @Dr.1.
    @Dr.1. Рік тому +1

    yoooooooooo this was soo cool

  • @ilyashick
    @ilyashick Рік тому +2

    gg my man jumped to 6k subs from 1.5k in 2 days

    • @tfg601
      @tfg601 Рік тому +1

      yeah everyone only subs to him for his content, not for anything else. They probably wanted to see this so they could copy him and brag about it.

  • @worldbfr3e263
    @worldbfr3e263 Рік тому +7

    At 20:00, would it be possible to have it spinning like it is now and simultaneously rotating along the line through itself like it was just before?

    • @javedansari-nb2pk
      @javedansari-nb2pk Рік тому +1

      Yes but you will have to use the rotating equation multiple times

    • @jimi02468
      @jimi02468 Рік тому

      Why not? From the last video I got the idea that you could have a graph rotating round a point which is already rotating around another point and even that would be rotating around a third point. All at the same time. Or whatever craziness.

  • @wilsonoliveira7447
    @wilsonoliveira7447 3 місяці тому

    It's very hard to follow. Anyway, you are very clever. It was a MBA cause?

  • @opiret44
    @opiret44 Рік тому +1

    "We're gonna go for the general case" after setting the viewing point (0,0,30) rather than generalizing it.

  • @brendandelear1145
    @brendandelear1145 Рік тому +1

    Woo hooo thank you!!!!

  • @lokwu9147
    @lokwu9147 Рік тому +1

    PART 3 LETS GOO

  • @wyboo2019
    @wyboo2019 Рік тому

    even easier easy way: rotate in geometric algebra, then the rotated function is just exp(-theta/2 B) v exp(theta/2 B) where B is a unit bivector representing the plane that the rotation is occurring in

  • @inverse_of_zero
    @inverse_of_zero Рік тому +1

    i see the mysterious youtube algorithm has caught you ;)

  • @Dr.1.
    @Dr.1. Рік тому

    you are awesome

  • @tom-on
    @tom-on 8 місяців тому

    bro is cracked at desmos

  • @weirdredstone42
    @weirdredstone42 Рік тому +2

    this is real cool

  • @worseize
    @worseize Рік тому

    Brilliant

  • @psychorangereng8315
    @psychorangereng8315 Рік тому

    Part 4!!! Plz

  • @tolgacetiner1243
    @tolgacetiner1243 Рік тому +1

    Thanks

  • @javedansari-nb2pk
    @javedansari-nb2pk Рік тому +4

    18:08 I tried in a different axis of rotation but forgot to normalise and crashed Desmos

  • @PacoCotero1221
    @PacoCotero1221 Рік тому +1

    🔥🔥🔥🔥🔥🗣️🗣️🗣️🗣️❗❗❗❗💯💯💯💯 Gatech quality

  • @Qreator06
    @Qreator06 Рік тому +2

    You just had to upload while I was recording, now I had to restart :(

  • @localidiot4078
    @localidiot4078 Рік тому +2

    I wonder if this could be simplified with vector multiplication instead of sin and cos.

    • @angeldude101
      @angeldude101 Рік тому +1

      Traditional linear algebra doesn't have vector multiplication beyond the dot and cross products, though those do respectively correspond to the cosine and sine functions. A true vector product, like the one from geometric algebra, would be akin to replacing cosine and sine with an exponential. In fact, in geometric algebra, rotating a vector v around an axis a by angle θ is done by exp(θa/2)*v*exp(-θa/2). (Why the /2? Because the coefficient is more related to the area of the circular sector than the arc length around it. Alternatively, it's quantum. Either way, quaternions work the exact same way.)

    • @localidiot4078
      @localidiot4078 Рік тому +1

      @@angeldude101 no shit! That's crazy. I just started learning about dot and cross products. The rabbit hole just keeps getting deeper

  • @zaptrap4802
    @zaptrap4802 Рік тому

    I'm assuming projection of 4D graphs would require the projection algorithm twice, right? The first projection would project the 4D graph onto a 3D surface, and the second projection would just be the same as shown in the video, to project the 3D projection onto a 2D surface. Sure, the first projection would be more complicated, and the entire graph function would look like a nightmare, but I guess that's doable?
    I'm not sure if Rodrigues' Rotation Formula works though, I still don't understand rotations in 4D...
    I haven't really thought about all this much, so what I just said may or may not be wrong, so if there's any smarter people here in the comments, it would be nice to share your insight.

  • @SpencerKelly42
    @SpencerKelly42 8 місяців тому

    no part 4? big sad 😭

  • @hifty7779
    @hifty7779 Рік тому +2

    Woooooot!

  • @crazytiger6
    @crazytiger6 Рік тому

    I don’t suppose there is a desmos link to this? Just type in some numbers and it does the rotation for me?
    That would be great

  • @kenhaley4
    @kenhaley4 Рік тому +1

    When I try to copy these equations into Desmos, I'm getting very choppy animation, instead of the nice smooth animation in the video. My computer's CPU is an Intel Core i7-6700, which isn't blazing, but seems fine for most things. Is that the problem, or am I doing something wrong?

  • @Kawasakillchess
    @Kawasakillchess 8 місяців тому

    Por qué no subes más videos? 😢

  • @vladyslavkryvoruchko
    @vladyslavkryvoruchko Рік тому

    Thanks to this mindblowing video I managed to make a square graph without infinite exponents.
    Here it is btw:
    |x-y|+|x+y|=1

  • @littlefish9825
    @littlefish9825 Рік тому

    Hey! You probably aren’t gonna read this, but I’m a fellow abuser of desmos. I would really love to show you some of the wacky stuff I’ve made in desmos, if you’re interested. I have a graph about a rhombicosidodecahedron, all 3-d rendered with multiple variable side lengths, and it’s kinda the coolest thing I’ve made in desmos. I’d give you a link, but I tried that last video and I think the algorithm thought I was a bot and deleted the comment. Love the videos, I was one of your first thousand subs (although I just subbed like 2 days ago). If you wanna see it, just give this a reply and I’ll give you the link ASAP.

  • @NukDokPlex
    @NukDokPlex 7 місяців тому

    UA-cam recomendations in 6am be like

  • @fernandojubany687
    @fernandojubany687 Рік тому

    Could you give me the matrix operations that produced graph of projection on 9:24 minutes of Part 3? Thanks

  • @hadar2win609
    @hadar2win609 Рік тому +1

    you should work for desmos

  • @pr0hobo
    @pr0hobo Рік тому +1

    what if you wanted the rotation axis to rotate around a different axis

  • @positivenozy6065
    @positivenozy6065 Рік тому

    jesse from breaking bad explaining maths (meths) yo

  • @codevector211
    @codevector211 Рік тому +3

    Could you link the working Desmos graph in the description, I can't figure out what's wrong with mine and the working one would help me find my problem.

    • @tfg601
      @tfg601 Рік тому +1

      it doesn't work for me :(

    • @zaptrap4802
      @zaptrap4802 Рік тому +2

      yes this would be so cool! I hope they get around to adding the link to the description.

    • @QP9237
      @QP9237 4 місяці тому

      Can we share links on youtube? I’ve tried before and it hasn’t let me before… I wouldn’t mind sharing a fully functional parametric 3D grapher I made on desmos.

    • @codevector211
      @codevector211 4 місяці тому

      @@QP9237 Yes you can! Just copy and paste the link...

    • @QP9237
      @QP9237 4 місяці тому

      @@codevector211So I just pasted the share link and posted the comment, but it doesn’t display as a comment when I reload the comments, so let me know if you can actually see the link.

  • @Dr.1.
    @Dr.1. Рік тому

    here we go...

  • @GodbornNoven
    @GodbornNoven Рік тому

    WOW!

  • @Red_Core13
    @Red_Core13 Рік тому

    what about if i waht to rotate points in 3D, and i can input XYZ as i want in that point?

  • @YawnGod
    @YawnGod Рік тому

    Game of Life.

  • @mathisalwaysright4048
    @mathisalwaysright4048 Рік тому

    What was the MOB function?

  • @martinjoster3282
    @martinjoster3282 Рік тому

    If we can project 3d onto 2d... maybe we can project 4d into 3d...?

  • @Aerobrake
    @Aerobrake Рік тому +1

    YEEEEES

  • @arkdotgif
    @arkdotgif Рік тому

    18:18 he sounds so fed up 💀

  • @Alnidru
    @Alnidru Рік тому

    Ok, now what about rotate a 4D graph in a 3D space?

  • @Aditya_196
    @Aditya_196 6 місяців тому +1

    😢 y did blud stopped making videos

  • @inspecteurthierryroland3690

    Yeeeeeeaaaaaaaaaaaaaaaaahhhh !!!! :D

  • @wigpiipgiw1582
    @wigpiipgiw1582 Рік тому

    Ayyyyyyyyyyy