Massive thanks to Moros1138 and his fantastic PGEtinker project. It's been a passion project of his for a while and its just brilliant - please give it a go at pgetinker.com, or indeed, play with the video code right now: pgetinker.com/s/OWNuhyU8IgX
Excellent video. Thank you so much! PGEtinker has been a passion project of mine and seeing it actually being used has been an emotional experience. So exciting!
I solved this problem many years ago (~2000), wrote a spirograph in BASIC for the UKNTS(УКНЦ), but there was no access to a computer, the program was written on paper. In 2004, I got a 486DX2-66, and I was finally able to run this program on QBASIC, and then rewrote it in Turbopascal. And then, already in our time, I rewrote it in UASM and OpenGL. In general, the task is not too difficult to learn.
The math around the spirographs I could see being useful for making little special effects or other sorts of fun mezmerizing things in a game. For example, in those vampire-survivor type games where you have lots of little weapons spiraling about hitting things automatically, defining their path in this way would be quite fun to watch.
@@javidx9 I think a good use case for it would be a loading animation for applications with fancy graphics, it is very mesmerizing, which is exactly what you want from a loading animation, perhaps also make it run from the user's cursor which would make it an interactive and mesmerizing loading animation. It could be far cooler than some spinning dots that most apps have.
I wear a Casio F-91W. I love how simple they are. I am also impressed at how accurate it is. It stays within a couple of seconds from my computer clock for months. It is far more accurate than any other electronic clock I have (that isn't synced to a time source of course).
Pen being outside the wheel breaks physics, no man has seen (but this one has). I did this simulation very slowly back in 1971, but only had a flat bed plotter and Dec PDP10 basic to play with, so it was quite slow. I did do a few colours. I just through out the old faded 2 or 3 foot plots I had tucked away a couple months ago.
Was thinking about doing this on an arduio with a tft screen. Then 1 day later your video pops up in my recommended videos. Thankyou for explaining how the calculations are done.
My Spirograph from the early 70s had a piece of cardboard and little push pins to hold the paper/outer gears (mine has two - yes, I still have it) and about ten smaller inner gears. I also have a Spirotot which was small and was a frame with self piercing paper holders and the frame contained the main/outer wheel and instead of gears used inner wheels (yes, still have it too). I also have my Mechanograph which allowed a user to pin paper and inner wheels and shapes to cardboard and use the wheels and shapes to draw around the inner shapes. There was one shape that was a human shape.
Around 40 years ago I coded up the drawing of hypotrochoids like these in BBC Basic. It's kind of funny to see so much resource used these days to achieve a similar result. And I still have my Spirograph set from around 1968. The box is somewhat degraded, however.
Nice graph, but the pen motion looks off and the code is indeed slightly mistaken. Around 15:00 the curve briefly shows retrograde motion when the pen is close to the ring gear when it obviously shouldn't. The error is in the ratio. The circumferences ratio is used, but that is not the ratio of angular velocities. That should equal ratio = Rfixed / Rmoving - 1 because the moving wheel is also making one full rotation inside the fixed wheel. This is easy to see when for instance Rfixed = ½Rmoving, then the inner wheel makes one anticlockwise rotation, not two, when it circles around once clockwise. Or, when Rmoving = Rfixed, then the moving wheel should not rotate at all, i.e. ratio=0. I invite you to try it. Otherwise pretty nevertheless!
Amazing video! I also find spirographs quite mesmerizing. In this scenario, where we have two circles, and one rolls around the other without slipping, the `ratio` calculation has to be corrected by subtracting 1.0f from it.
Although I am sure there was a bit of comic effect going on there, I can say from experience that going on holiday with young kids, if you are fairly sensible parents, means you can forget about going out in the evening or anything like that, your kid/s is/are hopefully in bed by 8 or 9 at the latest but then you have all evening to kill, and then at least one of you is too knackered for Rummy or Old Maid and so programming Spirograph in C++ it is.
Looks great, you should checkout a 'Complex Fourier series'. It provides the math to extend your Spirographs to include more circles, radius, and the spin (delta time) of individual circles. With that techinque you can actually draw pictures in an interesting way.
That’s fine. I can’t help but think your entire time on RUclips was a lead up to this. It’s a shame it’s out of reach for the Lynx, and I’ll have to revisit on the next platform!😅
13:45 Your moving gear is 'rotating' too fast because you didn't account for the sidereal effect. If the moving gear is exactly half the fixed gear, it rotates once per revolution (a pen at the edge traces a straight line). If it's 1/3rd, it rotates twice per revolution, etc.
Bro can you or someone else around here please give the link the c++ networking series part 5 I really like that one and your other videos as well in part 4 you said that there will be a part 5 but I can't find it in which u will show shooting players, I know it 3 yrs since now but plz
Hi. I was told that we released a video about the Spirograph at the same time. :) I just modified the Spirograph. I did multiple nesting. sin(x) + d * sin(k * x) + d * d * sin(k * k * x)... It s amazing! Java script programm: ruclips.net/video/JcvrrYigqa0/видео.htmlfeature=shared&t=599
Hlw sir....Can u make a window in console without gui which will respond to user on input(I want to learn how framework make a window from scratch)....please........
Massive thanks to Moros1138 and his fantastic PGEtinker project. It's been a passion project of his for a while and its just brilliant - please give it a go at pgetinker.com, or indeed, play with the video code right now: pgetinker.com/s/OWNuhyU8IgX
Excellent video. Thank you so much! PGEtinker has been a passion project of mine and seeing it actually being used has been an emotional experience. So exciting!
@@moros1138 I hope you feel a great sense of pride! You've really create something quite special 🙂
@@sakikogookheng Thank you very much!
I solved this problem many years ago (~2000), wrote a spirograph in BASIC for the UKNTS(УКНЦ), but there was no access to a computer, the program was written on paper. In 2004, I got a 486DX2-66, and I was finally able to run this program on QBASIC, and then rewrote it in Turbopascal. And then, already in our time, I rewrote it in UASM and OpenGL. In general, the task is not too difficult to learn.
Amazing, just played with it !
The math around the spirographs I could see being useful for making little special effects or other sorts of fun mezmerizing things in a game. For example, in those vampire-survivor type games where you have lots of little weapons spiraling about hitting things automatically, defining their path in this way would be quite fun to watch.
Hopefully it inspires someone with more application creativity than me lol 😂
@@javidx9 I think a good use case for it would be a loading animation for applications with fancy graphics, it is very mesmerizing, which is exactly what you want from a loading animation, perhaps also make it run from the user's cursor which would make it an interactive and mesmerizing loading animation. It could be far cooler than some spinning dots that most apps have.
I wear a Casio F-91W. I love how simple they are. I am also impressed at how accurate it is. It stays within a couple of seconds from my computer clock for months. It is far more accurate than any other electronic clock I have (that isn't synced to a time source of course).
I check your videos time to time and find inspiration. Your projects are always so interesting olc!
Pen being outside the wheel breaks physics, no man has seen (but this one has). I did this simulation very slowly back in 1971, but only had a flat bed plotter and Dec PDP10 basic to play with, so it was quite slow. I did do a few colours. I just through out the old faded 2 or 3 foot plots I had tucked away a couple months ago.
Was thinking about doing this on an arduio with a tft screen. Then 1 day later your video pops up in my recommended videos.
Thankyou for explaining how the calculations are done.
My Spirograph from the early 70s had a piece of cardboard and little push pins to hold the paper/outer gears (mine has two - yes, I still have it) and about ten smaller inner gears. I also have a Spirotot which was small and was a frame with self piercing paper holders and the frame contained the main/outer wheel and instead of gears used inner wheels (yes, still have it too). I also have my Mechanograph which allowed a user to pin paper and inner wheels and shapes to cardboard and use the wheels and shapes to draw around the inner shapes. There was one shape that was a human shape.
Around 40 years ago I coded up the drawing of hypotrochoids like these in BBC Basic. It's kind of funny to see so much resource used these days to achieve a similar result. And I still have my Spirograph set from around 1968. The box is somewhat degraded, however.
love your videos, keep it up!! hope you had a lovely holiday
Thanks, I did!
Nice graph, but the pen motion looks off and the code is indeed slightly mistaken. Around 15:00 the curve briefly shows retrograde motion when the pen is close to the ring gear when it obviously shouldn't. The error is in the ratio. The circumferences ratio is used, but that is not the ratio of angular velocities. That should equal
ratio = Rfixed / Rmoving - 1
because the moving wheel is also making one full rotation inside the fixed wheel.
This is easy to see when for instance Rfixed = ½Rmoving, then the inner wheel makes one anticlockwise rotation, not two, when it circles around once clockwise. Or, when Rmoving = Rfixed, then the moving wheel should not rotate at all, i.e. ratio=0.
I invite you to try it.
Otherwise pretty nevertheless!
Remined me of this: ruclips.net/video/FUHkTs-Ipfg/видео.htmlsi=fFqMN_EhEjyD5nNo
Neat! I remember being fascinated with spirographs as a kid
Nice video! This reminds me of the flight patterns used by enemies in Galaga
Amazing video! I also find spirographs quite mesmerizing. In this scenario, where we have two circles, and one rolls around the other without slipping, the `ratio` calculation has to be corrected by subtracting 1.0f from it.
That would honestly make a killer screen saver.
Awesome video, a beautifully broken down solution!
Thanks for sharing this with us!
Just at the end with the last circle and the colour changing, I was reminded of the Captain Blood "Hyperspace, activated".
I had to look up the reference, but see what you mean!
"I like this a lot". Mee too brother, ty
End result was very pretty. Nice video. I do question why vacations weren’t as fun at night though 😂
Although I am sure there was a bit of comic effect going on there, I can say from experience that going on holiday with young kids, if you are fairly sensible parents, means you can forget about going out in the evening or anything like that, your kid/s is/are hopefully in bed by 8 or 9 at the latest but then you have all evening to kill, and then at least one of you is too knackered for Rummy or Old Maid and so programming Spirograph in C++ it is.
The video was amazing! And I love your shirt :)
That is awesome!
Such a fun project, I'll have to implement a Spirograph builder in a future project myself. :)
Now I want to make a spirograph
I smiled when I’ve heard Conwy and not Conway.
Nice job, sir ;)
Very Nice!
love it in wales hope u had good holiday (:
Omg cant believe you went to Conwy on holiday, I live just down the road, what a small world, were you there for the pirate weekend?
Heh, actually I was staying in Llandudno (of course lol) as I do frequently, primary objectives were to run around the Orme, and family holiday.
Hi, I did that long time ago, back to 1994, in GWBasic with mechanic branch Cinematic with vectors and torsors(not tensors), very beautiful.
you welcome back
Thanks Motasam :D
Looks great, you should checkout a 'Complex Fourier series'. It provides the math to extend your Spirographs to include more circles, radius, and the spin (delta time) of individual circles. With that techinque you can actually draw pictures in an interesting way.
If you could decrease the size of the inner circle on every iteration, I could imagine you could draw spirals.
Great idea! Go and edit the tinker and see what happens!
I see we both wear the most common wristwatch known to man
Reliable, affordable, fashionable. Best watch ever
@@javidx9 It also has a rich history behind it too. Not bad for £10 on Amazon! (when it's on sale)
Good taste in dodgy shirts 👌
It's a cracker this one!
The worlds smallest house appears to be a 1 x 2 Lego brick :-)
The most satisfying case is when the ratio is golden
cool video!
Cheers Manuel!
I was indeed annoyed by you stoping the rainbow too soon.
hey, do you happen too know how does a 3d cad software work and how to make one? there is really a lack of content about cad
Nice shirt. I have the same one!
That’s fine. I can’t help but think your entire time on RUclips was a lead up to this. It’s a shame it’s out of reach for the Lynx, and I’ll have to revisit on the next platform!😅
good job moros!
Is that a metal box it comes in?!
Yes!
13:45 Your moving gear is 'rotating' too fast because you didn't account for the sidereal effect. If the moving gear is exactly half the fixed gear, it rotates once per revolution (a pen at the edge traces a straight line). If it's 1/3rd, it rotates twice per revolution, etc.
Bro can you or someone else around here please give the link the c++ networking series part 5 I really like that one and your other videos as well in part 4 you said that there will be a part 5 but I can't find it in which u will show shooting players, I know it 3 yrs since now but plz
10:40 looks like 3d donut
Great job, Moros. Respect. Take care.
Neat! 😎
Hi. I was told that we released a video about the Spirograph at the same time. :) I just modified the Spirograph. I did multiple nesting. sin(x) + d * sin(k * x) + d * d * sin(k * k * x)... It s amazing!
Java script programm:
ruclips.net/video/JcvrrYigqa0/видео.htmlfeature=shared&t=599
Nice, I watched the video and link to your Github ... HtmlVisualDemo.
Hey Mr. Try one of those riscv notebooks. They cost like 300 pounds
mouses and sheeps have different radiuses
Can you please please please do some videos in C#. I'm using unity and I think it would help in my game development.
thanks 🙏
how ya doin
Not bad thanks Obin!
Please make a second channel that's just you running this program to create pretty spirographs
you are Coding Train for C++
Hlw sir....Can u make a window in console without gui which will respond to user on input(I want to learn how framework make a window from scratch)....please........
E
Grow your beard please
That was a brilliant just brilliant way to show the power of PGETinker, thanks @Javidx9 . Johnnyg63
Very useful! Appreciate it!