|
![](/i/fill.gif) |
Martin Magnusson nous illumina en ce 2008/04/25 04:01 -->
> I'm plotting a continuous function in 3D with df3 files and media, using
> a number of boxes with media. However, at the transition between
> media-filles boxes, there are small gaps. Can someone explain why?
>
> Attached is a rendition of two of the boxes. The df3 files have 10x10x10
> entries. Below is the upper plane of the lower box in text format:
>
> 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0
> 4 1 0 0 0 0 0 0 0 0
> 95 70 39 16 5 1 0 0 0 0
> 139 227 255 224 130 58 25 9 2 0
> 11 35 80 135 177 198 210 170 108 55
> 0 0 1 3 9 26 67 131 196 222
>
> And the lower plane of the upper box is:
>
> 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0
> 4 1 0 0 0 0 0 0 0 0
> 94 71 40 16 5 1 0 0 0 0
> 142 233 255 232 134 60 24 8 2 0
> 9 32 75 129 172 196 207 166 102 50
> 0 0 0 2 8 23 63 128 192 216
>
> As far as I can see, there should be a smooth transition between the two
> boxes. Can someone explain where the gap that shows in the image comes
> from? I have also attached a scene file that renders this image.
>
>
> ------------------------------------------------------------------------
>
Just use une single box twice as high and put the two media in it, translated as
needed. When you have more than one media in a container, they add toggether.
Your container and media become:
box{0,1 scale 2*z
hollow
pigment{ color rgbt 1 }
interior{
media{
emission 1
density{
density_file df3 "00001325.df3"
interpolate 0
translate z
}
}
media{
emission 1
density{
density_file df3 "00001325.df3"
interpolate 0
}
}
}
translate <4, 4, 3>
}
--
Alain
-------------------------------------------------
You know you've been raytracing too long when you resign the fact that printing
uses CMYK instead of RGB to one of those tests God gave to Job; otherwise life
would be too painful to go on.
-- Taps a.k.a. Tapio Vocadlo
Post a reply to this message
|
![](/i/fill.gif) |