POV-Ray : Newsgroups : povray.unofficial.patches : Hgpovray38, current state : Re: Hgpovray38, current state Server Time
28 Apr 2024 15:05:11 EDT (-0400)
  Re: Hgpovray38, current state  
From: Le Forgeron
Date: 25 Oct 2020 05:57:40
Message: <5f954c14$1@news.povray.org>
Le 25/10/2020 à 10:33, Le_Forgeron a écrit :
> Le 25/10/2020 à 02:35, Bald Eagle a écrit :
>>
>> "Mr" <nomail@nomail> wrote:
>>
>>>> Ok, happens also with latest head. I will have to search when it
>>>> started, not fun as I did not play with media.
>>
>>> maybe color models are to be suspected as so many  relatively recent changes
>>> happened ?
>>> (rgb > srgb rgbf rgbt RAL...)
>>
>> Works ok in (qtpovray)3.8, using #version 3.6 and #version 3.8
>>
>> Line 786 has a negative light source, so maybe scroll down to that section and
>> start commenting out some lights and see what happens.
>>
> 
> Negative light are honored, not the problem.
> 
>> after that is // submarine and media
>>
>> light in lines Line 73 & 74 has media_interaction off
>>
>> Other than that - no idea.
>>
>>
> 
> Commenting the media in the last union, get the same bad result as
> hgpovray38 with povray master 3.8;
> 

Ok, I can fix it... but I do not understand yet why it happened and how
it works.

diff --git a/source/core/render/tracepixel.cpp
b/source/core/render/tracepixel.cpp
index 6d661b07..50d420a1 100644
--- a/source/core/render/tracepixel.cpp
+++ b/source/core/render/tracepixel.cpp
@@ -235,7 +235,7 @@ void TracePixelCameraData::SetupCamera(const Camera&
cam)
     bool normalise = false;
     camera = cam;
     useFocalBlur = false;
-    //precomputeContainingInteriors = true;
+    precomputeContainingInteriors = true;
     cameraDirection = camera.Direction;
     cameraRight = camera.Right;
     cameraUp =  camera.Up;


Post a reply to this message

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