POV-Ray : Newsgroups : povray.advanced-users : Slicing media - is it possible ? : Re: Slicing media - is it possible ? Server Time
28 Oct 2024 04:49:53 EDT (-0400)
  Re: Slicing media - is it possible ?  
From: yesbird
Date: 26 Sep 2024 16:25:51
Message: <66f5c34f@news.povray.org>
On 25/09/2024 18:58, Alain Martel wrote:
> I see that your code use intervals 60.
> That's REAL bad.
> This will render faster with better results :
>  
> #declare themedia = interior{
> media{
>      samples 100
>      // stating method 3 is not needed as it's the default
>      // ratio is not used with method 3
>      // confidence and variance are also not used
>      emission 1/20 //OK
>      absorption 1/1000 //OK
>      scattering {1, -0.3} //OK
>      density{
>          <density items>
>          // As interpolate 0 mean no interpolation,
>          // you can omit it
>          }
>      }
> }

Alan !
Many, many thanks for this correction - rendering now is really faster
with better quality. All your information about parameter's
interference is also very valuable - you saved a lot of time for me.
I like your deep and serious  approach.

> Then. Change your container as follow :
> difference{
>      box{    0, 1
>          translate -0.5
>          scale 200
>      }// NO pigment
>      box{    0, 1
>          translate -0.5
>          scale <100, 100, 201>//400 is uselessly large
>      }//still no pigment
>      hollow //apply to the difference as a whole
>      pigment{rgbf 1}
>      interior{ theinterior}
>      }
> 

Unfortunately here still no success (please see 1st attached image).
It looks like scaling / translation issue - I will try to fix it.

In any case slicing by orthogonal planes by changing the box size
(as on 2nd image) will be enough - CSG operations was only exercise for
me. And now I believe - the media is really tricky :)
--
YB


Post a reply to this message


Attachments:
Download 'dicom_diff.png' (328 KB) Download 'dicom_slice.png' (348 KB)

Preview of image 'dicom_diff.png'
dicom_diff.png

Preview of image 'dicom_slice.png'
dicom_slice.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.