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

Reply

Join Date: May 2009
Posts: 1
Reputation: xsxcn is an unknown quantity at this point 
Solved Threads: 0
xsxcn xsxcn is offline Offline
Newbie Poster

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

 
0
  #1
May 14th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 38
Reputation: _Nestor is an unknown quantity at this point 
Solved Threads: 4
_Nestor _Nestor is offline Offline
Light Poster

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

 
0
  #2
May 14th, 2009
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 10:53 am.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,667
Reputation: vegaseat is a glorious beacon of light vegaseat is a glorious beacon of light vegaseat is a glorious beacon of light vegaseat is a glorious beacon of light vegaseat is a glorious beacon of light 
Solved Threads: 1093
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

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

 
0
  #3
May 14th, 2009
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.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 12
Reputation: targ is an unknown quantity at this point 
Solved Threads: 4
targ targ is offline Offline
Newbie Poster

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

 
1
  #4
May 14th, 2009
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 342 | Replies: 3
Thread Tools Search this Thread



Tag cloud for Python
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC