POVRay 渲染脚本
我必须为作业制作一个简单的动画,并且无法访问 POVRay GUI(我相信这可能会使动画变得更加简单)。 所以我想做的是在一台大学机器上过夜渲染多个图像。
问题是,渲染图像后,命令行会要求您单击渲染窗口以“退出”。我昨晚尝试运行以下脚本,它似乎在第一张图像后停止了。我只能假设这是因为上述问题。
#!/bin/bash
for i in {1..16}
do
povray picture$i.pov +FN
done
有人对如何让它继续渲染所有 16 张图像有什么建议吗?
I have to make a simple animation for an assignment and don't have access to the POVRay GUI (which I believe can possibly make animations much more simple).
So what I want to do is render multiple images overnight on one of the uni machines.
The problem is that once an image is rendered, the command line asks you to click on the render window to "exit". I tried running the following script last night and it seemed to stop after the first image. I can only assume it's because of the aforementioned issue.
#!/bin/bash
for i in {1..16}
do
povray picture$i.pov +FN
done
Anyone have any suggestions about how to make it keep rendering all 16 images?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一种想法是在后台运行所有命令 (
povray ... &
),然后在早上自己点击 GUI 窗口。一个更简洁的解决方案(如果存在)是找到一种方法来告诉 povray 以批处理模式运行并且不需要用户交互。快速浏览一下他们网站上的文档表明
-P
可能是一个有用的添加开关。One idea is to run all the commands in the background (
povray ... &
) and go click on the GUI windows yourself in the morning.A cleaner solution if it exists is to find a way to tell
povray
to run in batch mode and not require user interaction. A quick glance through the documentation from their website suggests that-P
may be a useful switch to add.