POV-Ray : Newsgroups : povray.general : Scene parsing only? Server Time
8 Aug 2024 14:22:24 EDT (-0400)
  Scene parsing only? (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: Gigi Giorgi
Subject: Scene parsing only?
Date: 22 Dec 2000 05:49:57
Message: <3A433005.561D4151@to.alespazio.it>
How do I do to tell POVray to perform scene file parsing only?
Thanks


Post a reply to this message

From: Warp
Subject: Re: Scene parsing only?
Date: 22 Dec 2000 07:54:26
Message: <3a434f01@news.povray.org>
Gigi Giorgi <plg### [at] toalespazioit> wrote:
: How do I do to tell POVray to perform scene file parsing only?

  There's no direct way of doing this currently.

  I have wanted this feature long ago to automatically check the validity
of student-submitted povray files.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Wlodzimierz ABX Skiba
Subject: Re: Scene parsing only?
Date: 22 Dec 2000 08:55:06
Message: <3a435d3a@news.povray.org>
Gigi Giorgi wrote in message <3A433005.561D4151@to.alespazio.it>...
> How do I do to tell POVray to perform scene file parsing only?
> Thanks


there is no switch but in example put this at end of your scene file

"no error but parsing finished succesfully :-)"

ABX


Post a reply to this message

From: Chris Huff
Subject: Re: Scene parsing only?
Date: 22 Dec 2000 10:19:32
Message: <chrishuff-EC9500.10204322122000@news.povray.org>
In article <3A433005.561D4151@to.alespazio.it>, Gigi Giorgi 
<plg### [at] toalespazioit> wrote:

> How do I do to tell POVray to perform scene file parsing only?

Just put:
#error "Scene file done parsing"
As the very last line of your scene. Comment it out when you want to 
actually render something.

BTW, why do you want to only parse the file?

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Josh English
Subject: Re: Scene parsing only?
Date: 22 Dec 2000 11:32:35
Message: <3A43824B.EA039730@spiritone.com>
Gigi Giorgi wrote:

> How do I do to tell POVray to perform scene file parsing only?
> Thanks

I just tell POV-Ray to render it to an 8 by 8 image, and the rendering
portion doesn't take very long unless it's an incredibly complicated
scene, I also tell POV-Ray not to display the image as it's rendering to
speed things up even further.


--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message

From: Matt Giwer
Subject: Re: Scene parsing only?
Date: 22 Dec 2000 19:31:13
Message: <3A43F252.4E5BCC21@ij.net>
Gigi Giorgi wrote:
> 
> How do I do to tell POVray to perform scene file parsing only?
> Thanks

	In the ini file add a line
+X100 

100 being the number pixels it will render before checking for an
interupt. 

-- 
Israel is a foreign nation. Anyone supporting it is like 
the Irish supporting the IRA. 
	-- The Iron Webmaster, 250


Post a reply to this message

From: Pete
Subject: Re: Scene parsing only?
Date: 23 Dec 2000 21:58:05
Message: <197.392T1691T8255160PeterC@nym.alias.net>
Warp wrote:

>  I have wanted this feature long ago to automatically check the validity
>of student-submitted povray files.

        Classwork in povray?  Cool.  I went to the wrong college.

Pete


Post a reply to this message

From: Warp
Subject: Re: Scene parsing only?
Date: 24 Dec 2000 12:05:47
Message: <3a462ceb@news.povray.org>
Gigi Giorgi <plg### [at] toalespazioit> wrote:
: How do I do to tell POVray to perform scene file parsing only?

  By the way, this is a more difficult issue than it may first seem.

  What does "parsing" mean?

  I can think of four stages in the rendering process:

  1. Syntactical correctness. This means that the the file is just
syntactically correct, that is, it doesn't have any malformed expression
(invalid keywords, invalid use of operators, etc etc).

  2. Semantical correctness. The file may be syntactically correct, but
it can be semantically incorrect (for example trying to store an object
inside an array of floats is a semantical error although the syntax is
perfectly ok).

  3. Scene correctness. Even when a source code is syntactically and
semantically correct, the scene produced by it may be invalid. An extremely
simple example is a scene without objects. Another example is a camera placed
in the wrong place (in the y-axis by default, if I remember correctly).

  4. Rendering correctness. Although this happens more rarely, there are
cases where the incorrectness of a scene happens only at rendering time
(eg. "Too many nested refracting objects" and I-stack overflows).

  So which one of those you want?
  Syntactical correctness is fast to check, but it doesn't tell if the scene
is valid or not.
  Semantical correctness can be very slow (if the scene is slow to
parse) since POV-Ray would have to actually parse the entire scene in
order to be sure that there are no semantical errors (that is, go
through all the loops, evaluate all macros and so on). If the parsing
of the scene takes hours, then checking the semantical correctness of
the scene takes this same amount of time. There's no way of checking the
semantical correctness of the scene other than parsing the scene.
  If the code makes one million loops, the POV-Ray has to parse all those
million of loops to check the semantical correctness. There's no way around
it.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Andrea Ryan
Subject: Re: Scene parsing only?
Date: 27 Dec 2000 19:17:26
Message: <3A4A814D.195E161A@global2000.net>
I think that he wants to parse the scene file and save the results to
render the scene later.  Maybe the file could be translated into a
format that can be parsed faster.
Brendan

Chris Huff wrote:

> In article <3A433005.561D4151@to.alespazio.it>, Gigi Giorgi
> <plg### [at] toalespazioit> wrote:
>
> > How do I do to tell POVray to perform scene file parsing only?
>
> Just put:
> #error "Scene file done parsing"
> As the very last line of your scene. Comment it out when you want to
> actually render something.
>
> BTW, why do you want to only parse the file?
>
> --
> Christopher James Huff
> Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
> TAG: chr### [at] tagpovrayorg, http://tag.povray.org/
>
> <><


Post a reply to this message

From: Chris Huff
Subject: Re: Scene parsing only?
Date: 27 Dec 2000 21:17:22
Message: <chrishuff-34C047.21184127122000@news.povray.org>
In article <3A4A814D.195E161A@global2000.net>, Andrea Ryan 
<ary### [at] global2000net> wrote:

> I think that he wants to parse the scene file and save the results to
> render the scene later.  Maybe the file could be translated into a
> format that can be parsed faster.

I see...no, that is not possible. A patch to do that would be a major 
effort requiring a lot of work to make sure all the needed data is saved 
to the file, and would only significantly speed up certain computation 
intensive scenes. The POB patch did something similar, but is 
unsupported and only available for an old version of POV-Ray.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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