POV-Ray : Newsgroups : povray.text.scene-files : rheotomic surfaces flowlines test Server Time
31 Oct 2024 10:22:25 EDT (-0400)
  rheotomic surfaces flowlines test (Message 1 to 4 of 4)  
From: posfan12
Subject: rheotomic surfaces flowlines test
Date: 30 Aug 2013 00:30:01
Message: <web.52201f695b856a4e41a177270@news.povray.org>
I adapted the code found here:

http://www.openprocessing.org/sketch/17344


Now, how do I make it so that the charges are located in arbitrary places
instead of arranged around the origin in a circle?


Post a reply to this message


Attachments:
Download 'flowlines_test.pov.txt' (3 KB)

From: posfan12
Subject: Re: rheotomic surfaces flowlines test
Date: 30 Aug 2013 01:30:09
Message: <web.52202dd37c5b939641a177270@news.povray.org>
Forgot to mention that there's another applet that does closer to what I want,
but it works on a per-pixel coloring basis, I think, instead of by plotting
points or lines.

http://www.openprocessing.org/sketch/34033

Not much use to me. :(


Mike



"posfan12" <nomail@nomail> wrote:
> I adapted the code found here:
>
> http://www.openprocessing.org/sketch/17344
>
>
> Now, how do I make it so that the charges are located in arbitrary places
> instead of arranged around the origin in a circle?


Post a reply to this message

From: posfan12
Subject: Re: rheotomic surfaces flowlines test
Date: 30 Aug 2013 03:20:02
Message: <web.5220477f7c5b939641a177270@news.povray.org>
I think I've simplified the attached code as much as I can, removing variables
that aren't important as far as I can tell. What remains is a mystery to me. For
instance, I have the following questions:

1. Why is the shape rotated slightly around the z-axis?
2. How were the equations placing the charges inside and outside chosen?
3. When rendering the lines as well as the points, why do the first and last
lines skip across half the scene and connect to each other?

I'm stumped.


"posfan12" <nomail@nomail> wrote:
> I adapted the code found here:
>
> http://www.openprocessing.org/sketch/17344
>
>
> Now, how do I make it so that the charges are located in arbitrary places
> instead of arranged around the origin in a circle?


Post a reply to this message


Attachments:
Download 'flowlines_test.pov.txt' (4 KB)

From: posfan12
Subject: Re: rheotomic surfaces flowlines test
Date: 3 Sep 2013 23:30:01
Message: <web.5226a8327c5b93966c400f6f0@news.povray.org>
The original Processing (Java) code:

http://www.openprocessing.org/sketch/17344

My POVray code is attached.

I tried to convert between the two langauges as closely as I could, However the
results are different: in the POVray version there are lines that criss-cross,
marring the scene. You can see here:

http://i421.photobucket.com/albums/pp292/SharkD2161/Support/flowlines_test_lines_zps3d7bbcf0.png

My suspicion is that there is a difference between how POVray and Java handle
trigonometric (sin, cos, tan, etc.) function when the input is greater than 2 *
pi.

That's just a hunch, though, and I may be completely wrong.


Post a reply to this message


Attachments:
Download 'flowlines_test_lines.pov.txt' (4 KB)

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