|
|
Couldn't find a solution to this problem by changing media parameters so I
wonder if it's possible to remove these specks at all or if there's a bug in the
media code.
For now I only found box and boxed pattern to be the worst but I've seen it to a
lesser degree using sphere and spherical, also very much less using torus and
toroidal warp.
The rendering shown here was post-processed just to overlay a 10% transparent
image from the intersection of the 2 boxes and how the specks mainly align with
those mutual lines. However, 4 specks don't appear to coincide with intersecting
surfaces (lower right).
/* test boxed pattern media bright specks */
//cmd:+oc:\renderings\testmediaspecks
//cmd:+oc:\renderings\testmediaspecksintersect
#version 3.7;
camera {
location -x*4 look_at 0
up y
right image_width/image_height*x
//angle 30
}
// try with and without this scene container (camera inside)
box{-9,9 hollow pigment{rgb 0.1}} // specks much more apparent
#local Intersect=no; // check how boxes intersect?
#if(Intersect=yes) intersection{ #end
#for(It,0,1,1) // create multiple boxes
box
{
-1, 1
hollow on
pigment
{
rgbt 1
}
interior
{
media
{
//method 1
//intervals 30
//confidence 0.9
//variance 1/128
//ratio 0.5
//jitter 0.9
//aa_threshold 0.1
//aa_level 3
//samples 33
emission <0.1,0.1,0.8>
//absorption 1
density
{
boxed // box pattern centered on <0,0,0>
density_map
{
[0 rgb 1] [0.1 rgb 0] [1 rgb 0]
}
//scale 1.01
}
}
}
rotate <30,30,30>*It
translate -<1,1,1>*It/2+<1,1,1>*It/2
}
#end
#if(Intersect=yes) } #end
/* END TEST MEDIA SPECKS */
Post a reply to this message
Attachments:
Download 'test_media-specks_intersect.jpg' (28 KB)
Preview of image 'test_media-specks_intersect.jpg'
|
|