POV-Ray : Newsgroups : povray.programming : Photon problem Server Time
3 Jul 2024 05:33:46 EDT (-0400)
  Photon problem (Message 1 to 1 of 1)  
From: Massimo Valentini
Subject: Photon problem
Date: 15 May 2003 06:56:37
Message: <3ec37265@news.povray.org>
The following patch partially fixes the problem reported in 
povray.binaries.images in the thread: 

Photon problem 
(first post 2003-05-13 by Gilles Tran).

HTH Massimo


--- - 2003-05-15 12:30:22.000000000 +0200
+++ obj/photons.cpp 2003-05-15 12:13:26.000000000 +0200
@@ -1086,7 +1086,9 @@
           // compute the length of "v" if we're going to use it
           if (Light->Light_Type == CYLINDER_SOURCE)
           {
-            VLength(dist_of_initial_from_center,v);
+            VECTOR initial_from_center;
+            VSub(initial_from_center, Ray.Initial, Light->Center);
+            VLength(dist_of_initial_from_center, initial_from_center);
           }
         }
         else


Post a reply to this message

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