POV-Ray : Newsgroups : povray.advanced-users : Can PovRay pre-parse a file and then render from this file Server Time
9 Nov 2024 08:32:19 EST (-0500)
  Can PovRay pre-parse a file and then render from this file (Message 1 to 5 of 5)  
From: James Orr
Subject: Can PovRay pre-parse a file and then render from this file
Date: 26 Nov 2002 23:37:31
Message: <3de44c0b@news.povray.org>
I have implemented a distributed renderer using the PovRay engine. I have
only gotten a 67% (best) (%60 worst so far 16 min vs. 40 min. The ideal max
is 80%) speed improvement on 5 nodes. One of the major wastes of time is
that each node parses the data and the parsing time of the image is
non-trivial. Also the image is split into more chunks than nodes for load
balancing reasons (So if there are 100 chunks time parse time which is
static, you see the problem). Also I have access to a lot more nodes and I
would like to use them  but the benefit of them is going to decrease unless
I can get rid of the parse time (as chunk size goes down (aka more
chunks/nodes) parse time has more of effect).

So what I need is a way to parse once (by the master node) and render from
the pre-parsed file.
    A) Has any one created a way to extract/read pre-parsed data?
    B) Know how to do it with no or about 2 days of coding?

Any help is appreciated!!

-James


Post a reply to this message

From: Christopher James Huff
Subject: Re: Can PovRay pre-parse a file and then render from this file
Date: 26 Nov 2002 23:50:59
Message: <chrishuff-F77A36.23481326112002@netplex.aussie.org>
In article <3de44c0b@news.povray.org>, "James Orr" <no### [at] ocom> wrote:

> So what I need is a way to parse once (by the master node) and render from
> the pre-parsed file.
>     A) Has any one created a way to extract/read pre-parsed data?
>     B) Know how to do it with no or about 2 days of coding?

It is not possible. Or rather, there are too many dynamic structures, it 
would be a huge amount of work to write code to serialize and 
reconstruct all of them, especially since they were never designed to 
allow this. There is no "pre-parse" stage, most of the scene is created 
as the file is parsed, except for things like radiosity and photons 
which are computed immediately after parsing. The best solution for 
anything based on POV is to have each node parse the scene.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: James Orr
Subject: Re: Can PovRay pre-parse a file and then render from this file
Date: 27 Nov 2002 10:19:45
Message: <3de4e291$1@news.povray.org>
Dam, that is not the answer I wanted to hear :)! Currently each node does
parse the scene before rendering it.
Thanks for the answer!

-James

"Christopher James Huff" <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...
> In article <3de44c0b@news.povray.org>, "James Orr" <no### [at] ocom> wrote:
>
> > So what I need is a way to parse once (by the master node) and render
from
> > the pre-parsed file.
> >     A) Has any one created a way to extract/read pre-parsed data?
> >     B) Know how to do it with no or about 2 days of coding?
>
> It is not possible. Or rather, there are too many dynamic structures, it
> would be a huge amount of work to write code to serialize and
> reconstruct all of them, especially since they were never designed to
> allow this. There is no "pre-parse" stage, most of the scene is created
> as the file is parsed, except for things like radiosity and photons
> which are computed immediately after parsing. The best solution for
> anything based on POV is to have each node parse the scene.
>
> --
> Christopher James Huff <cja### [at] earthlinknet>
> http://home.earthlink.net/~cjameshuff/
> POV-Ray TAG: chr### [at] tagpovrayorg
> http://tag.povray.org/


Post a reply to this message

From: Peter Popov
Subject: Re: Can PovRay pre-parse a file and then render from this file
Date: 27 Nov 2002 15:26:39
Message: <uaaauukvee3a5u5ugrcicr9gjdgccn544j@4ax.com>
James,

sorry I pop up like that as my question is completely off-topic in
this thread, but could you please re-post your bug report, this time
with a valid email address, so that the bug report moderator can
contact you back? Thanks.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: James Orr
Subject: Re: Can PovRay pre-parse a file and then render from this file
Date: 27 Nov 2002 16:16:20
Message: <3de53624$1@news.povray.org>
I will repost it later today when I get home (the message is stored on my
home machine).

"Peter Popov" <pet### [at] vipbg> wrote in message
news:uaaauukvee3a5u5ugrcicr9gjdgccn544j@4ax.com...
> James,
>
> sorry I pop up like that as my question is completely off-topic in
> this thread, but could you please re-post your bug report, this time
> with a valid email address, so that the bug report moderator can
> contact you back? Thanks.
>
>
> Peter Popov ICQ : 15002700
> Personal e-mail : pet### [at] vipbg
> TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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