|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |