POV-Ray : Newsgroups : povray.general : Continue trace... Insight please Server Time
19 Nov 2024 07:37:58 EST (-0500)
  Continue trace... Insight please (Message 1 to 10 of 17)  
Goto Latest 10 Messages Next 7 Messages >>>
From: Tim Nikias
Subject: Continue trace... Insight please
Date: 1 May 2002 07:48:53
Message: <3CCFD5F5.EE9B7695@gmx.de>
I was wondering:
How does POV-Ray know where to continue a trace?
I've looked through the rerun INIs and the pvengine.ini,
but to no avail. Does POV-Ray just look at the image
already traced, or what?

I'm just wondering because I have a major trace going
on, and wanted to use a second instance of POV to
work on some other stuff. But if I cannot get POV
to afterwords continue the major trace (cause I
reboot every now and then to clean the RAM and
SWAP-File) for sure, the risk is to high.

I'm not sure, Thorsten, Christoph? Anybody know
how to make sure it will work (like copying a bunch
of files, which I later replace), or does POV save the
Data somewhere only when the trace is being ended?

Ah, just a bunch of questions. I'll just hope that someone
can give me a working example, I don't want to ruin
anything, because the major trace is under time-pressure...

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Continue trace... Insight please
Date: 1 May 2002 07:57:14
Message: <3ccfd81a@news.povray.org>
In article <3CCFD5F5.EE9B7695@gmx.de> , Tim Nikias <tim### [at] gmxde>  wrote:

> How does POV-Ray know where to continue a trace?
> I've looked through the rerun INIs and the pvengine.ini,
> but to no avail. Does POV-Ray just look at the image
> already traced, or what?

Yes, it looks at the image file.  How exactly it is done depends to some
extend on the image format used.  Also note that continue trace is not
supported for all image formats as noted in the docs somewhere.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Tim Nikias
Subject: Re: Continue trace... Insight please
Date: 1 May 2002 09:31:32
Message: <3CCFEE01.ED9DD119@gmx.de>
Hm. So, is it for BMP? I couldn't find that,
just this:
"Some image formats (namely TGA and PNG) also
store information about where the file started..."

The image is already tracing a couple a days, and it looks
like another one to go, but I'm getting impatient on other
projects... I didn't use the Create_Ini option, so
I guess that's too late now, right?

Another thing: The render-menu has this rerun-entry.
I can select which files to rerun, and if I want to
continue the latest file.
If I use a second instance of POV, I gather that
POV will overwrite the "last scene traced" info.
Any way to restore POV to think that another file
needs to be continued? Continue did work for
BMP until now, so I guess the problem is just
to have POV think which file to continue.

Thanks for your help!

Thorsten Froehlich wrote:

> Yes, it looks at the image file.  How exactly it is done depends to some
> extend on the image format used.  Also note that continue trace is not
> supported for all image formats as noted in the docs somewhere.

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde


Post a reply to this message

From: Y Tanabe
Subject: Re: Continue trace... Insight please
Date: 1 May 2002 10:01:47
Message: <3CCFF54F.3802D455@kh.rim.or.jp>
Dear

You must check a povray.c.

Y.Tanabe
Kobe,Japan

***********************************************
 #ifdef df3OuputPatch
   // disable continue trace if df3 output selected
   if(opts.OutputFormat == 'd' || opts.OutputFormat == 'D')
   {
     if(opts.Options & CONTINUE_TRACE)
     {
        Warning(0.0,"Disabling continue-trace");
        opts.Options &= ~CONTINUE_TRACE;
     }
   }
 #endif
***********************************************
   if((opts.Options & DISKWRITE) && (opts.Options & CONTINUE_TRACE))
   {
     Read_Rendered_Part(Actual_Output_Name);

     if(opts.Last_Line > Frame.Screen_Height)
        opts.Last_Line = Frame.Screen_Height;

     if(opts.Last_Column > Frame.Screen_Width)
        opts.Last_Column = Frame.Screen_Width;
   }
*******************************************************

    if(opts.Options & CONTINUE_TRACE)
    {
      Stage = STAGE_CONTINUING;

     
if(Open_File(Output_File_Handle,Actual_Output_Name,&Frame.Screen_Width,&Frame.Screen_Height,Buffer_Size,READ_MODE)
!= 1)
      {
        Close_File(Output_File_Handle);

        Warning(0,"\nError opening continue trace output file.\n");
        Warning(0,"Opening new output file %s.\n",Actual_Output_Name);

        /* Turn off continue trace */

        opts.Options &= ~CONTINUE_TRACE;

       
if(Open_File(Output_File_Handle,Actual_Output_Name,&Frame.Screen_Width,&Frame.Screen_Height,Buffer_Size,WRITE_MODE)
!= 1)
        {
          Error("Error opening output file.");
        }
       // CHANGEFILETYPE
      }
    }
    else
    {
     
if(Open_File(Output_File_Handle,Actual_Output_Name,&Frame.Screen_Width,&Frame.Screen_Height,Buffer_Size,WRITE_MODE)
!= 1)
      {
        Error("Error opening output file.");
      }
      //CHANGEFILETYPE
    }
**********************************************************


Tim Nikias wrote:

> Hm. So, is it for BMP? I couldn't find that,
> just this:
> "Some image formats (namely TGA and PNG) also
> store information about where the file started..."
>
> The image is already tracing a couple a days, and it looks
> like another one to go, but I'm getting impatient on other
> projects... I didn't use the Create_Ini option, so
> I guess that's too late now, right?
>
> Another thing: The render-menu has this rerun-entry.
> I can select which files to rerun, and if I want to
> continue the latest file.
> If I use a second instance of POV, I gather that
> POV will overwrite the "last scene traced" info.
> Any way to restore POV to think that another file
> needs to be continued? Continue did work for
> BMP until now, so I guess the problem is just
> to have POV think which file to continue.
>
> Thanks for your help!
>
> Thorsten Froehlich wrote:
>
> > Yes, it looks at the image file.  How exactly it is done depends to some
> > extend on the image format used.  Also note that continue trace is not
> > supported for all image formats as noted in the docs somewhere.
>
> --
> Tim Nikias
> Homepage: http://www.digitaltwilight.de/no_lights/index.html
> Email: Tim### [at] gmxde


Post a reply to this message

From: Tim Nikias
Subject: Re: Continue trace... Insight please
Date: 1 May 2002 10:36:58
Message: <3CCFFD59.6FD0403E@gmx.de>
Hm. povray.c?

You're talking about source-code there.
Though its nice of you to comment on that,
but I was merely asking where POV-Ray
saves its knowledge which file it has
traced recently, so that I can overwrite
newer data to use an other image to
check for continue-trace.

But someone will probably learn something
from that, though its not me! ;-)

"Y.Tanabe" wrote:

> Dear
>
> You must check a povray.c.
>
> Y.Tanabe
> Kobe,Japan
>
> ***********************************************
>  #ifdef df3OuputPatch
>    // disable continue trace if df3 output selected
>    if(opts.OutputFormat == 'd' || opts.OutputFormat == 'D')
>    {
>      if(opts.Options & CONTINUE_TRACE)
>      {
>         Warning(0.0,"Disabling continue-trace");
>         opts.Options &= ~CONTINUE_TRACE;
>      }
>    }
>  #endif
> ***********************************************
>    if((opts.Options & DISKWRITE) && (opts.Options & CONTINUE_TRACE))
>    {
>      Read_Rendered_Part(Actual_Output_Name);
>
>      if(opts.Last_Line > Frame.Screen_Height)
>         opts.Last_Line = Frame.Screen_Height;
>
>      if(opts.Last_Column > Frame.Screen_Width)
>         opts.Last_Column = Frame.Screen_Width;
>    }
> *******************************************************
>
>     if(opts.Options & CONTINUE_TRACE)
>     {
>       Stage = STAGE_CONTINUING;
>
>      
if(Open_File(Output_File_Handle,Actual_Output_Name,&Frame.Screen_Width,&Frame.Screen_Height,Buffer_Size,READ_MODE)
!= 1)
>       {
>         Close_File(Output_File_Handle);
>
>         Warning(0,"\nError opening continue trace output file.\n");
>         Warning(0,"Opening new output file %s.\n",Actual_Output_Name);
>
>         /* Turn off continue trace */
>
>         opts.Options &= ~CONTINUE_TRACE;
>
>        
if(Open_File(Output_File_Handle,Actual_Output_Name,&Frame.Screen_Width,&Frame.Screen_Height,Buffer_Size,WRITE_MODE)
!= 1)
>         {
>           Error("Error opening output file.");
>         }
>        // CHANGEFILETYPE
>       }
>     }
>     else
>     {
>      
if(Open_File(Output_File_Handle,Actual_Output_Name,&Frame.Screen_Width,&Frame.Screen_Height,Buffer_Size,WRITE_MODE)
!= 1)
>       {
>         Error("Error opening output file.");
>       }
>       //CHANGEFILETYPE
>     }
> **********************************************************
>

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Continue trace... Insight please
Date: 1 May 2002 11:08:06
Message: <3cd004d6@news.povray.org>
In article <3CCFFD59.6FD0403E@gmx.de> , Tim Nikias <tim### [at] gmxde>  wrote:

> Though its nice of you to comment on that,
> but I was merely asking where POV-Ray
> saves its knowledge which file it has
> traced recently,

Read about the "Resuming Options" in the documentation.  It has nothing to do
with the information stored by the GUI frontend for your convenience.  You can
always use the direct command line option to continue any file at any time as
long as it is one of the supported formats.  BMP is one of them.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Tim Nikias
Subject: Re: Continue trace... Insight please
Date: 1 May 2002 12:13:45
Message: <3CD01407.72E4782B@gmx.de>
I searched for "continue" (as in continue trace), didn't
think about "resume"...

Thank you very much!

Thorsten Froehlich wrote:

> Read about the "Resuming Options" in the documentation.  It has nothing to do
> with the information stored by the GUI frontend for your convenience.  You can
> always use the direct command line option to continue any file at any time as
> long as it is one of the supported formats.  BMP is one of them.
>
>     Thorsten

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde


Post a reply to this message

From: Chris Cason
Subject: Re: Continue trace... Insight please
Date: 1 May 2002 12:18:41
Message: <3cd01561@news.povray.org>
"Tim Nikias" <tim### [at] gmxde> wrote in message news:3CCFEE01.ED9DD119@gmx.de...
> Hm. So, is it for BMP? I couldn't find that,

Yes. When the BMP is created, a 'magic number' is written to the start of each
line. The continue trace code uses that to determine if the line has been over-
written by the renderer yet.

-- Chris


Post a reply to this message

From: Tim Nikias
Subject: Re: Continue trace... Insight please
Date: 1 May 2002 19:45:41
Message: <3CD07DF5.2A84B88A@gmx.de>
So, if I actually just copy the image, do all kinds of different work,
then let POV-Ray use a given INI-File to check for the
copied image with a given scene-file, it will go on from there?

Coool. Way cool.

Chris Cason wrote:

>
> Yes. When the BMP is created, a 'magic number' is written to the start of each
> line. The continue trace code uses that to determine if the line has been over-
> written by the renderer yet.
>
> -- Chris

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde


Post a reply to this message

From: Chris Cason
Subject: Re: Continue trace... Insight please
Date: 2 May 2002 03:46:36
Message: <3cd0eedc@news.povray.org>
"Tim Nikias" <tim### [at] gmxde> wrote in message news:3CD07DF5.2A84B88A@gmx.de...

> So, if I actually just copy the image, do all kinds of different work,
> then let POV-Ray use a given INI-File to check for the copied image
> with a given scene-file, it will go on from there?

provided you are using the same height and width, yes.

-- Chris


Post a reply to this message

Goto Latest 10 Messages Next 7 Messages >>>

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