|
|
"COMPATT" <com### [at] hotmailcom> wrote:
> Even when I use an accuracy of 0.0001 I continue to get moire patterns at the
> "terminator" of my planet when the light rays would be striking at a very low
> angle to the isosurface I am not getting a max gradient error but I am using a
> very high resolution greyscale topographic image map any ideas on how to make
> them go away completely? I am not interested in using a mesh instead I would
> like to do this just using the image map as an isosurface function. Not sure
> what to include in this post to help you help me so please let me know what
> other info will be helpful
Thank You So Much jr, Alain, & Bald Eagle for your rapid responses. It turns out
in my trying to "simplify" my scene file so I could share it with you that the
Moire Pattern has nothing to do with the image map as I get it even when my
isosurface is a smooth sphere. please see sample code below:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#version 3.7;
global_settings{ assumed_gamma 1.0 }
#default{ finish{ ambient 0.0 diffuse 1.0 }}
#include "colors.inc"
#include "shapes.inc"
#declare scaleFactor = 1.00e-1;
#declare planetRadius = scaleFactor * 6356.7523; //in kilometers
#declare maxHeightAboveSea = scaleFactor * 8.849868; //in kilometers
light_source {
0*x
color rgb <1,1,1>
translate <-20*planetRadius, 40*planetRadius, -20*planetRadius>
}
camera {
location <0.0, 0.0, -2.25*planetRadius>
look_at <0.0, 0.0, 0.0>
right x*image_width/image_height
}
#declare isoSmooth = isosurface {
function {f_sphere(x, y, z, planetRadius)}
contained_by { sphere { 0, planetRadius+maxHeightAboveSea} }
threshold 0.0
accuracy 0.1
max_gradient 1.1
max_trace 1
}
object{
isoSmooth
pigment {White}
}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
jr - regardless of where I look at the sphere with the camera the Moire patterns
always show up at the "terminator" where the sphere will be going into darkness
Alain - I am not sure where to specify the anti-alising on the scene file is
that a command line or ini file setting?
Bald Eagle - could not figure out how to specify sturm for an isosurface
I am posting an image generated by the code above in povray.binaries.images with
the name [Moire patterns when trying to create isosurface sphere as Alain
suggested I hope this helps clarify the issue for all of us
Post a reply to this message
|
|