Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Electric fields
Index -> Programming, C++ -> C++ Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Homer_simpson




PostPosted: Mon Apr 19, 2010 12:03 am   Post subject: Electric fields

its a c++ version of the turing one i made earlier. added potential contour maps in this one and you can allow charge to move in the field.
its not finished so you can't add or remove charges.
here are the controls:
f to show forcefield directions
v to show voltage potential contour maps
c to change contour map color scheme
, and . to increase and decrease the contour map resolution
[ and ] to increase and decrease the efield resolution
- and + increase or decrease one of the charges
a to animate the system
r to create a random field of 4 charges
mouse click relocates one of the charges.

i'll upload a more complete version later.

you should adjust the resolution for your system so it runs smoothly.
try animate on the original field setup.



EFields.zip
 Description:

Download
 Filename:  EFields.zip
 Filesize:  80.89 KB
 Downloaded:  355 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
SNIPERDUDE




PostPosted: Mon Apr 19, 2010 1:19 pm   Post subject: RE:Electric fields

Pressing 'R' while on animated voltage map beats my lava lamp hands-down.

Awesome project, +bits
Prince Pwn




PostPosted: Fri Jul 23, 2010 1:56 am   Post subject: RE:Electric fields

How can you create something this awesome? You must have 1337 skillz.
Kharybdis




PostPosted: Fri Jul 23, 2010 6:25 am   Post subject: Re: RE:Electric fields

Prince Pwn @ Fri Jul 23, 2010 1:56 am wrote:
How can you create something this awesome? You must have 1337 skillz.


math and physics, yah?
Homer_simpson




PostPosted: Fri Sep 17, 2010 10:58 am   Post subject: Re: Electric fields

I didn't think this was worth starting another thread since its an update... added gui so i think its pretty self explanatory...


eflds.zip
 Description:

Download
 Filename:  eflds.zip
 Filesize:  702.03 KB
 Downloaded:  269 Time(s)


eflds.zip
 Description:

Download
 Filename:  eflds.zip
 Filesize:  702.03 KB
 Downloaded:  306 Time(s)

Insectoid




PostPosted: Fri Sep 17, 2010 6:06 pm   Post subject: RE:Electric fields

Would you be able to provide source or at the least compile a mac version? I see you're using DLLs in there, dunno how hard it would be to port that to Mac.
Homer_simpson




PostPosted: Sun Sep 19, 2010 6:12 pm   Post subject: Re: Electric fields

ok heres the source code,
I used devc++ from bloodshed, you need to install glut and freetype from their upgrade server to be able to compile. sorry for the semi messy code. let me know if u have any questions, hopefully i can answer them.
note i did not write the freetype library



efields source.zip
 Description:

Download
 Filename:  efields source.zip
 Filesize:  288.47 KB
 Downloaded:  388 Time(s)

Display posts from previous:   
   Index -> Programming, C++ -> C++ Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: