|
|
guigui magicien wrote:
>
> hello , i want to render all example scenes.
>
> how can i make it automatiquely ?
>
I have a bash script for test rendering all 3.5 sample scenes (and
collection the warnings and errors), but it's really not very user
friendly. In case you want it anyway here is an excerpt from the Windows
version to show how it works.
> #!/bin/bash
>
> STAT_ALL=pov.out
> WARN_ALL=warn.out
> FAT_ALL=fat.out
> STAT_OUT=pov.1
> WARN_OUT=warn.1
> FAT_OUT=fat.1
>
> POVRAY="pvengine.exe /EXIT /RENDER"
> DIR=`pwd`
>
> cd $DIR
> cd camera/
>
> $POVRAY cylinder1.pov -ocylinder1.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
> $POVRAY cylinder2.pov -ocylinder2.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
> $POVRAY cylinder3.pov -ocylinder3.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
> $POVRAY cylinder4.pov -ocylinder4.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
> $POVRAY fisheye.pov -ofisheye.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
> $POVRAY focalblur.pov -ofocalblur.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
> $POVRAY normal.pov -onormal.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
> $POVRAY omnimax.pov -oomnimax.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
> $POVRAY orthographic.pov -oorthographic.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
> $POVRAY panoramic.pov -opanoramic.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
> $POVRAY perspective.pov -operspective.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
> $POVRAY shear.pov -oshear.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
> $POVRAY spherical.pov -ospherical.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
> $POVRAY ultra_wide_angle.pov -oultra_wide_angle.png -p +v -w320 -h240 -a
+gs$DIR/$STAT_OUT +gw$DIR/$WARN_OUT +gf$DIR/$FAT_OUT ; cat $DIR/$STAT_OUT >>
$DIR/$STAT_ALL ; cat $DIR/$STAT_OUT | grep Statistics >> $DIR/$WARN_ALL ; cat
$DIR/$WARN_OUT >> $DIR/$WARN_ALL ; cat $DIR/$FAT_OUT >> $DIR/$FAT_ALL
>
> cd $DIR
> cd incdemo/
Christoph
--
POV-Ray tutorials, IsoWood include,
TransSkin and more: http://www.tu-bs.de/~y0013390/
Last updated 02 Jun. 2002 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
|