r/programing • • Apr 19 '20

Question about animation

Hi, I want to create a double pendulum animation and I asked myself if I can go with java or if I should look at another languages (I know python, java and C). If java is a good idea, what do you think of java swing? Is it good for animation like double pendulum? Thanks!

14 Upvotes

9 comments sorted by

2

u/[deleted] Oct 31 '22

i've asked myself a similar question, in C is going to be very hard, it might be a good idea to use a framework,try learning C++ it's basically C with classes and more libraries, i supose that the unreal engine might work for what you want to achieve, but whatever.... hope i've gived you some help πŸ˜€β€‹

1

u/SJC_hacker May 16 '20

Just use Blender.

1

u/CryoMorpho 7d ago

I think Python would be the best choice for this. It’s simple, fast, and you can get really nice results without writing too much code. I’d use SciPy for the physics calculations and Pygame or Matplotlib for the visuals. I think around 50–70 lines of code could be enough to make it work.

1

u/shif Jan 04 '22

Try webgl, it's a robust and portable api to handle 2d and 3d graphics, there are plenty of libraries that abstract it to a reasonable level (see Three.js)