Old 1st November 2003, 17:19   #1
skupers
Senior Member
 
skupers's Avatar
 
Join Date: Aug 2002
Location: the Netherlands
Posts: 207
Send a message via AIM to skupers
Lightbulb Electromagnetic Demo (for AVS2.70)

This demo uses global vars to simulate the movement of a charged particle in promixity to two other particles: a postively charged one and negatively charged one.

In this preset, the positive one is red and the negative one is green. Using vector addition the white particle is moved around. I also made three scopes which draw the different components of the vector.

Everything in the preset is customizable in the first 'control scope': the movement of the two charged particles, their charge and the charge of the white particle.

You'll also need Texer II.

The next challenge will be to make this work in 3d.
Attached Files
File Type: zip skupers - electromagnetic field demo.zip (884 Bytes, 140 views)
skupers is offline   Reply With Quote
Old 1st November 2003, 17:41   #2
NemoOrange
Senior Member
 
NemoOrange's Avatar
 
Join Date: Jan 2003
Location: Philadelphia, USA
Posts: 135
Send a message via AIM to NemoOrange
Neat stuff, but why does the white particle sometimes just automatically shift to another location?
NemoOrange is offline   Reply With Quote
Old 1st November 2003, 17:42   #3
NemoOrange
Senior Member
 
NemoOrange's Avatar
 
Join Date: Jan 2003
Location: Philadelphia, USA
Posts: 135
Send a message via AIM to NemoOrange
oh, I guess once it reaches the green particle, it resets.
NemoOrange is offline   Reply With Quote
Old 1st November 2003, 21:03   #4
skupers
Senior Member
 
skupers's Avatar
 
Join Date: Aug 2002
Location: the Netherlands
Posts: 207
Send a message via AIM to skupers
Yes, because otherwise the next frame c1a and c2a will be divided by 0 and then the scope goes crazy.
skupers is offline   Reply With Quote
Old 2nd November 2003, 10:12   #5
horse-fly
Account Closed
 
horse-fly's Avatar
 
Join Date: Apr 2001
Posts: 2,360
i don't understand what exactly i am looking at... what is the white dot doing in accordance to red and green?

edit: oh... ok i get it
horse-fly is offline   Reply With Quote
Old 2nd November 2003, 11:34   #6
Deamon
Major Dude
 
Deamon's Avatar
 
Join Date: Nov 2002
Location: Arnhem, the Netherlands
Posts: 927
Nice coding job.

.:HyperNation @ winamp:. .:DeviantArt:.
Thermal is now available for download at DeviantArt.
Deamon is offline   Reply With Quote
Old 2nd November 2003, 19:05   #7
gaekwad2
Foorum King
 
gaekwad2's Avatar
 
Join Date: Jul 2003
Location: bar2000
Posts: 11,457
Couldn't you make it so that when the white particle hits the green one it gets a negative charge and thus gets attracted to the red particle, then you wouldn't have to reset it.
gaekwad2 is offline   Reply With Quote
Old 2nd November 2003, 20:30   #8
Deamon
Major Dude
 
Deamon's Avatar
 
Join Date: Nov 2002
Location: Arnhem, the Netherlands
Posts: 927
or that is explodes I like explosions.

.:HyperNation @ winamp:. .:DeviantArt:.
Thermal is now available for download at DeviantArt.
Deamon is offline   Reply With Quote
Old 2nd November 2003, 20:58   #9
horse-fly
Account Closed
 
horse-fly's Avatar
 
Join Date: Apr 2001
Posts: 2,360
hooray for explosions that don't makes sense
horse-fly is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > AVS > AVS Presets

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump