Perhaps you can consider doing something like:
http://bugman123.com/Physics/index.html
https://nylander.wordpress.com/category/physics/magnetism/
I don't immediately see any POV-Ray code, but perhaps you can decipher the
Mathematica code to get an idea of what he's doing.
Maybe what you're running into with your scene is similar to
http://www.econym.demon.co.uk/holetut/
where there are an astronomical number of ray intersection tests that need to be
done.
See one of Mike's solutions - defining a single object as an isosurface.
http://www.econym.demon.co.uk/holetut/holes2.htm
Perhaps you can use a similar solution by taking advantage of variable
substitution in the isosurface to create "copies" of your torus while having the
isosurface still be a single object:
http://www.econym.demon.co.uk/isotut/substitute.htm
(see near the bottom where he uses the mod() operator.
I hope maybe this helps some.
Post a reply to this message
|