POV-Ray : Newsgroups : povray.general : Materials before or after bounded_by? : Re: Materials before or after bounded_by? Server Time
16 May 2024 11:53:12 EDT (-0400)
  Re: Materials before or after bounded_by?  
From: Thomas de Groot
Date: 30 Jan 2016 02:57:49
Message: <56ac6cfd$1@news.povray.org>
On 29-1-2016 18:21, Mike Horvath wrote:
> On 1/29/2016 11:24 AM, clipka wrote:
>> Am 29.01.2016 um 11:49 schrieb Mike Horvath:
>>> On 1/29/2016 5:15 AM, clipka wrote:
>>>> Am 29.01.2016 um 10:31 schrieb Mike Horvath:
>>>>> On 1/29/2016 4:20 AM, Mike Horvath wrote:
>>>>>> Should the bounded_by statement be the very last statement in a CSG
>>>>>> block? Or is it okay to have textures/materials/etc. come after?
>>>>
>>>> It's totally irrelevant.
>>>>
>>>>> Also, is there any benefit to using bounded_by in the following case?
>>>>>
>>>>> difference
>>>>> {
>>>>>       object {MyObject1}
>>>>>       object {MyObject2}
>>>>>       bounded_by {MyObject1}
>>>>> }
>>>>>
>>>>> intersection
>>>>> {
>>>>>       object {MyObject1}
>>>>>       object {MyObject2}
>>>>>       bounded_by {MyObject1}
>>>>> }
>>>>
>>>> That depends.
>>>>
>>>> If MyObject1 is significantly easier to compute than MyObject2, then it
>>>> may indeed speed up rendering.
>>>
>>> What if they both happen to be spheres or cylinders? I.e. similar types
>>> of objects.
>>
>> In that case it would be useless at best, and may actually slow down
>> render times.
>>
>> To the best of my knowledge, that is. I still haven't spent enough time
>> studying the bounding mechanism to understand every detail of it.
>>
>
> I am also wondering if both objects are cylinders, whether there is a
> benefit to bound the CSG using a box.
>
>
> Mike

My guess is no. In general, I never use bounded_by; my experience 
(whatever that may be worth in this case) is that it slows the render.

-- 
Thomas


Post a reply to this message

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