From: <eg...@us...> - 2007-09-23 13:24:37
|
Revision: 782 http://opengate.svn.sourceforge.net/opengate/?rev=782&view=rev Author: egore Date: 2007-09-23 06:24:39 -0700 (Sun, 23 Sep 2007) Log Message: ----------- move skybox stuff around Modified Paths: -------------- trunk/resources.cfg Added Paths: ----------- trunk/data/skybox/buildSkyBox.sh trunk/data/skybox/simpleSkybox.zip trunk/data/skybox/skybox1.pov trunk/data/skybox/skybox2.pov Removed Paths: ------------- trunk/data/povray/ trunk/data/simpleSkybox.zip Deleted: trunk/data/simpleSkybox.zip =================================================================== (Binary files differ) Copied: trunk/data/skybox/buildSkyBox.sh (from rev 779, trunk/data/povray/buildSkyBox.sh) =================================================================== --- trunk/data/skybox/buildSkyBox.sh (rev 0) +++ trunk/data/skybox/buildSkyBox.sh 2007-09-23 13:24:39 UTC (rev 782) @@ -0,0 +1,28 @@ +ALLPOVFILES='skybox1.pov skybox2.pov' + +#RESOLUTION=4096 +#RESOLUTION=2048 +#RESOLUTION=1024 +RESOLUTION=512 +for POVFILE in $ALLPOVFILES; do + OUT=${POVFILE%.pov} + OUTNAME=$OUT + + for i in 0 1 2 3 4 5; do + + case $i in + 0) EXTENSION="_fr";; # front + 1) EXTENSION="_rt";; # right + 2) EXTENSION="_bk";; # back + 3) EXTENSION="_lf";; # left + 4) EXTENSION="_up";; # up + 5) EXTENSION="_dn";; # down + esac + + povray -I $POVFILE -H$RESOLUTION -W$RESOLUTION +FT -D32 -O$OUTNAME$EXTENSION.tga -K$i + convert -quality 100 $OUTNAME$EXTENSION.tga $OUTNAME$EXTENSION.png + rm $OUTNAME$EXTENSION.tga + done +done +zip sykbox_$RESOLUTION.zip *.png +rm *.png Copied: trunk/data/skybox/simpleSkybox.zip (from rev 779, trunk/data/simpleSkybox.zip) =================================================================== (Binary files differ) Copied: trunk/data/skybox/skybox1.pov (from rev 779, trunk/data/povray/skybox1.pov) =================================================================== --- trunk/data/skybox/skybox1.pov (rev 0) +++ trunk/data/skybox/skybox1.pov 2007-09-23 13:24:39 UTC (rev 782) @@ -0,0 +1,58 @@ +// found here: http://www.ogre3d.org/wiki/index.php/POVRay_Skyboxes + +#include "colors.inc" + +camera { + location <0,0,0> + angle 90 + right <1,0,0> up <0,1,0> +// turn the cam based on the current frame=clock : [0-5] + #switch (clock) + #range (0,3) +// first 4 frames : turn from left to right + +rotate (90*clock)*y + #break + #case (4) + // look at the sky + rotate -90*x + #break + #case (5) + // look at the ground + rotate 90*x + #break + #end // End of conditional part +} + +background { color rgb <0,0,0> } +// light_source { <100, 100, -200> color White } + +sphere { < 0, 0, 0>, 2 + pigment { rgbt 1 } // surface of sphere is transparent + + interior { + media { + emission 0.02 + intervals 1 + samples 25 + method 3 + density { + spherical + ramp_wave + translate 1.0*y + // replace 1.0 = t by time for animation + warp { turbulence 1.5 } + translate -1.0*y + // replace -1.0 = -t by time for animation + color_map { + [0.0 color rgb <0, 0, 0>] + [0.1 color rgb <1, 0, 0>] + [0.5 color rgb <1, 1, 0>] + [1.0 color rgb <1, 1, 0>] + } + } + } + } + scale 25 + hollow +} Copied: trunk/data/skybox/skybox2.pov (from rev 779, trunk/data/povray/skybox2.pov) =================================================================== --- trunk/data/skybox/skybox2.pov (rev 0) +++ trunk/data/skybox/skybox2.pov 2007-09-23 13:24:39 UTC (rev 782) @@ -0,0 +1,89 @@ +// found here: http://www.ogre3d.org/wiki/index.php/POVRay_Skyboxes + +#include "colors.inc" + +camera { + location <0,0,0> + angle 90 + right <1,0,0> up <0,1,0> + // turn the cam based on the current frame=clock : [0-5] + #switch (clock) + #range (0,3) + // first 4 frames : turn from left to right + rotate (90*clock)*y + #break + #case (4) + // look at the sky + rotate -90*x + #break + #case (5) + // look at the ground + rotate 90*x + #break + #end // End of conditional part +} + +background { color rgb <0,0,0> } + +// light_source { <100, 100, -200> color White } +/* +/usr/share/povray-3.5/include/stars.inc + + sky_sphere { + pigment { + granite + color_map { + [ 0.000 0.270 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ] + [ 0.270 0.280 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ] + [ 0.280 0.470 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ] + [ 0.470 0.480 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ] + [ 0.480 0.680 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ] + [ 0.680 0.690 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ] + [ 0.690 0.880 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ] + [ 0.880 0.890 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ] + [ 0.890 1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ] + } + turbulence 1 + sine_wave + scale .5 + } + + } + */ + +sphere { < 0, 0, 0>, 2 + pigment { rgbt 1 } // surface of sphere is transparent + interior { + media { + emission 0.02 + intervals 1 + samples 25 + method 3 + density { + spherical + ramp_wave + translate 1.0*y // replace 1.0 = t by time for animation + warp { turbulence 2.5 } + translate -1.0*y // replace -1.0 = -t by time for animation + color_map { + [0.0 color rgb <0, 0, 0> * 0.5] + [0.1 color rgb <0, 1, 0> * 0.5] + [0.5 color rgb <1, 1, 0> * 0.5] + [1.0 color rgb <1, 0, 0> * 0.5] + } + } + density { + spherical + ramp_wave + color_map { + [0.0 color rgb 1] + [0.2 color rgb 1] + [0.3 color rgb 0] + [1.0 color rgb 0] + } + } + } + } + scale 25 + hollow +} Modified: trunk/resources.cfg =================================================================== --- trunk/resources.cfg 2007-09-23 13:20:00 UTC (rev 781) +++ trunk/resources.cfg 2007-09-23 13:24:39 UTC (rev 782) @@ -29,7 +29,7 @@ FileSystem=./data/gui/schemes FileSystem=./data/gui/looknfeel -Zip=./data/simpleSkybox.zip +Zip=./data/skybox/simpleSkybox.zip Zip=./data/fonts.zip FileSystem=./data/MediaFromOgre This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |