|
|
> Hi there,
>
> I have a legcy rendering code which is based on povray 3.6. Now I have a bunch
> of input data to be used together with one .pov file. In every single rendering
> process, one data will be read by a simple program and copyed to, let's say
> currentData.txt, and this file will be read as an input data and rendered by
> this modified povray program. It works fine if I just want to render every frame
> manually. So I wrote a simple code and try to automate the rendering task.
>
> Every time an image is finished rendering, the GUI is closed and re-opened as
> expected. But the problem is that I have to press the "run" button to render it
> again.
>
> Does anyone know how to avoid this manual intervention and let it render images
> automatically?
>
> Thanks.
>
> Regards,
> Xiao
>
>
Be sure to add /run in your script on the line that invoque POV-Ray.
You should use an INI file instead of calling POV-Ray directly.
That ini file will provide the name of the file to be rendered,
optionaly, the resolution to be used and other options, like the data
source.
Another option is to use the animation feature.
It work great if you can batch create your currentData files before you
start the rendering. You want files named somewhat like this:
Data00001.txt, Data00002.txt, Data00003.txt,...
Next, in your scene, use string manipulation to construct the name
needed for the current frame.
#declare InputFileName= concat("Data", str(frame_number,
Using read and write, the current render can read your data and write
your currentData.txt file for the next frame.
The animation can be initiated from the ini file or using command line
options.
Files based on version 3.6 will render fine with version 3.7 with the
following changes:
The default image format is now PNG
In radiosity scenes, ambient is disabled. Use emission in your finish
instead if you want the texture to glow.
It is recomended to use assumed_gamma 1.
Post a reply to this message
|
|