POV-Ray : Newsgroups : povray.general : Object clipping issue : Re: Object clipping issue Server Time
23 Apr 2024 15:03:02 EDT (-0400)
  Re: Object clipping issue  
From: Alain
Date: 20 Feb 2019 14:57:31
Message: <5c6db12b$1@news.povray.org>
Le 19-02-19 à 00:23, Mike Horvath a écrit :
> On 2/18/2019 7:55 AM, Mike Horvath wrote:
>> Better if I should attach the whole scene, no?
>>
>>
>> Mike
> 
> Performance is really poor in this scene. Each 600x600px frame of my 
> test animation takes about 5 minutes to render on my machine. I am doing 
> 120 frames. I guess I need to add some `bounded_by` statements in there 
> somewhere...
> 
> 
> Mike


In this case, you have a difference of cylinders intersected by some 
planes. Each block may end up with a bounding box large enough to 
contain the whole outer cylinder. This is a case where manually bounding 
with a tight box or a sphere can help.

Do a test with only a small subset of the blocks, using only the 
difference and intersection, where each part is paired with a box made 
from the max_extent() and min_extent() for that block.
If there is much unused space, then, you may try using some manual bounding.

This may be your critical part :
intersection{
	plane {+x, -Muns_gap_width rotate +y * Muns_slice_angle/2}
	plane {-x, -Muns_gap_width rotate -y * Muns_slice_angle/2}
	difference{
		cylinder{-y*(1/2 -Muns_gap_width),+y*(1/2-Muns_gap_width),Muns_param_C 
+ (1/2 - Muns_gap_width)}
		cylinder{-y*(1/2),+y*(1/2),Muns_param_C -(1/2 -Muns_gap_width)}
		}
	translate	+y * Muns_param_V
	rotate		+y * Muns_param_h
	}


Post a reply to this message

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