943,861 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 430
  • Python RSS
May 14th, 2009
0

Can python do an animation containing 10,000 2d disks?

Expand Post »
I am considering using python to write a simulation program to display the motions of about 10,000 2d disks. The program doesn't need to calculate the positions of disks. It just reads the result file and displays disks on the screen. I wonder whether python has this ability for rendering so many disks together within one frame. I want to add that fictitious time may not be in accordance with virtual time. For example, the program may spend 10 seconds on displaying what happens within 0.1 second. In other words, I want to see a slow motion of what is happening.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
xsxcn is offline Offline
1 posts
since May 2009
May 14th, 2009
0

Re: Can python do an animation containing 10,000 2d disks?

That sounds like it would be a lot for python to handle.
Personally I'd use something like c++ for this kind of program but if you really want to use python you should have a look at the pygame modules http://www.pygame.org
Last edited by _Nestor; May 14th, 2009 at 11:53 am.
Reputation Points: 28
Solved Threads: 4
Light Poster
_Nestor is offline Offline
43 posts
since Apr 2008
May 14th, 2009
0

Re: Can python do an animation containing 10,000 2d disks?

The Python module pygame is a wrapper for SDL which in turn is written in C++. So there is a good chance that pygame can handle the task without resorting to using C++ directly.
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
May 14th, 2009
1

Re: Can python do an animation containing 10,000 2d disks?

Reputation Points: 23
Solved Threads: 4
Newbie Poster
targ is offline Offline
12 posts
since Apr 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: python-how do i create an .exe,
Next Thread in Python Forum Timeline: How improve code speed





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC