POV-Ray : Newsgroups : povray.advanced-users : Radiosity : Re: Radiosity Server Time
29 Jul 2024 00:32:32 EDT (-0400)
  Re: Radiosity  
From: Mike Andrews
Date: 24 Jun 2003 13:10:01
Message: <web.3ef884b34485a7259735c0c0@news.povray.org>
Warp wrote:
>squidian <squ### [at] localhostlocaldomain> wrote:
>>  Tried that with 3.1. 3.1 uses noise as an input. Each frame uses a
>> different noise making a mess like leaving jitter on. Doesn't work.
>
>  You really don't have the slightest clue about what you are talking about,
>do you?
>
>#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
>-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
>

Sorry Warp, I believe he does have a valid point, even if he is not
expressing himself very well.

In render.cpp, function Start_Tracing_Radiosity_Preview(), line about 1022:

  while ((skip >= 2) && (skip >= EndPixelSize))
  {
    /* for each pass */

    jitter_range  = 3;
    jitter_offset = skip / 2 - 1;       /* add a very small amount of jitter
*/

    if ( skip <= 8 ) Smooth_Preview = 1;

    for (Current_Line_Number = opts.First_Line; Current_Line_Number <
opts.Last_Line; Current_Line_Number += skip)
    {
      check_stats(Current_Line_Number, 1, skip);

      Do_Cooperate(0);

      for (x = opts.First_Column; x < opts.Last_Column; x += skip)
      {
        Check_User_Abort(false);

        offset_x = jitter_offset + (POV_RAND() % jitter_range);
        offset_y = jitter_offset + (POV_RAND() % jitter_range);

        /* don't use focal blur for radiosity preview! */
        save_use_blur = Focal_Blur_Is_Used;
        Focal_Blur_Is_Used = false;
        trace_pixel(x + offset_x, Current_Line_Number + offset_y, Colour);

Thus random noise is introduced into the radiosity trace. And it is
different for each frame of an animation. Some scenes show it more than
others, but it is there.

When I compile custom versions I always remove this jitter ...

Mike Andrews.


Post a reply to this message

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