|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
How do I do to tell POVray to perform scene file parsing only?
Thanks
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |