POV-Ray : Newsgroups : povray.binaries.images : Magnetism Server Time
5 Nov 2024 08:24:10 EST (-0500)
  Magnetism (Message 1 to 7 of 7)  
From: Tek
Subject: Magnetism
Date: 16 Sep 2005 02:54:20
Message: <432a6c1c@news.povray.org>
I had hoped to enter the current animation round... but I really haven't 
got the energy to put together a decent animation.

So instead, here's something for the current stills round. Magnetism - a 
rather obvious interpretation of the topic "Opposites".

The picture is a rather abstract representation of a magnetic field, 
based on no research whatsoever so any science buffs feel free to tell 
me what's wrong with it. The cylinders are randomly placed in space and 
oriented based on the average of vectors to the north and south poles, 
weighted by the inverse square law (which I'm assuming magnetism obeys, 
I really haven't researched it at all).

Anyways, here's the code:

#declare north = <-1,1,1>;
#declare south = <1,-1,-1>;

#local rs = seed(23);
#local c = 0;
#while ( c < 50000 )

	#local pos = <rand(rs),rand(rs),rand(rs)>*6-3;
	#local toNorth = north - pos;
	#local toSouth = south - pos;
	#local fieldDir = toNorth/pow(vdot(toNorth,toNorth),1.5);
	#local fieldDir =
		fieldDir - toSouth/pow(vdot(toSouth,toSouth),1.5);
	#local fieldDir = vnormalize(fieldDir);
	
	cylinder { pos-fieldDir*.06, pos+fieldDir*.06, .003 }
			
	#local c = c+1;
#end

Enjoy!

--
Tek
http://www.evilsuperbrain.com


Post a reply to this message


Attachments:
Download 'magnetism.jpg' (382 KB)

Preview of image 'magnetism.jpg'
magnetism.jpg


 

From: Manuel Kasten
Subject: Re: Magnetism
Date: 16 Sep 2005 05:05:47
Message: <432a8aeb$1@news.povray.org>
Hello,

> The picture is a rather abstract representation of a magnetic field, 
> based on no research whatsoever so any science buffs feel free to tell 
> me what's wrong with it. The cylinders are randomly placed in space and 
> oriented based on the average of vectors to the north and south poles, 
> weighted by the inverse square law (which I'm assuming magnetism obeys, 
> I really haven't researched it at all).

I first thought "There's something wrong, magnetic field lines don't 
cross each other" until I realized that this is a 3D image, and the 
field lines really don't cross. It's the perspective making it look like 
that.

You should make it somehow more obvious that this is 3D, although I 
don't have an idea how.

About the scientific part, I don't know any more than you do. It does 
look right, however.


Manuel


Post a reply to this message

From: Paolo Gibellini
Subject: Re: Magnetism
Date: 16 Sep 2005 07:32:38
Message: <432aad56$1@news.povray.org>
Interesting and cool.
Could be nice to see a color gradient from positive to negative pole.
;-)
Paolo

> So instead, here's something for the current stills round. Magnetism - a
> rather obvious interpretation of the topic "Opposites".


Post a reply to this message

From: LightBeam
Subject: Re: Magnetism
Date: 16 Sep 2005 07:36:17
Message: <432aae31$1@news.povray.org>
Interresting :-)


Post a reply to this message

From: Darren New
Subject: Re: Magnetism
Date: 16 Sep 2005 12:02:13
Message: <432aec85$1@news.povray.org>
Tek wrote:
> I had hoped to enter the current animation round... but I really haven't 
> got the energy to put together a decent animation.

This would likely be very cool in stereo.

-- 
   Darren New / San Diego, CA, USA (PST)
    "Rabbit beer, now with organic hops!"


Post a reply to this message

From: Tek
Subject: Re: Magnetism
Date: 16 Sep 2005 13:08:49
Message: <432afc21@news.povray.org>
I'm working on a new one with more colours that should make it easier to see 
the depth.

"Manuel Kasten" <kas### [at] gmxde> wrote in message 
news:432a8aeb$1@news.povray.org...
> Hello,
>
>> The picture is a rather abstract representation of a magnetic field, 
>> based on no research whatsoever so any science buffs feel free to tell me 
>> what's wrong with it. The cylinders are randomly placed in space and 
>> oriented based on the average of vectors to the north and south poles, 
>> weighted by the inverse square law (which I'm assuming magnetism obeys, I 
>> really haven't researched it at all).
>
> I first thought "There's something wrong, magnetic field lines don't cross 
> each other" until I realized that this is a 3D image, and the field lines 
> really don't cross. It's the perspective making it look like that.
>
> You should make it somehow more obvious that this is 3D, although I don't 
> have an idea how.
>
> About the scientific part, I don't know any more than you do. It does look 
> right, however.
>
>
> Manuel


Post a reply to this message

From: Tek
Subject: Re: Magnetism
Date: 16 Sep 2005 13:09:28
Message: <432afc48@news.povray.org>
I thought the same thing, so I rendered a new multi-coloured version, I'll 
post it here shortly...

"Paolo Gibellini" <p.g### [at] teinoscom> wrote in message 
news:432aad56$1@news.povray.org...
> Interesting and cool.
> Could be nice to see a color gradient from positive to negative pole.
> ;-)
> Paolo
>
>> So instead, here's something for the current stills round. Magnetism - a
>> rather obvious interpretation of the topic "Opposites".
>
>
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.