[Xbubble-commits] xbubble/data/themes/fancy/script Makefile,NONE,1.1 bub.inc,NONE,1.1 bub.ini,NONE,1.1 bub_black.pov,NONE,1.1 bub_blue.pov,NONE,1.1 bub_brown.pov,NONE,1.1 bub_green.pov,NONE,1.1 bub_magenta.pov,NONE,1.1 bub_red.pov,NONE,1.1 bub_white.pov,NONE,1.1 bub_yellow.pov,NONE,1.1 bubex.ini,NONE,1.1 bubex_black.pov,NONE,1.1 bubex_blue.pov,NONE,1.1 bubex_brown.pov,NONE,1.1 bubex_green.pov,NONE,1.1 bubex_magenta.pov,NONE,1.1 bubex_red.pov,NONE,1.1 bubex_white.pov,NONE,1.1 bubex_yellow.pov,NONE,1.1 frame.inc,NONE,1.1 frame_1p.ini,NONE,1.1 frame_2p.ini,NONE,1.1 frame_bsd_launch.ini,NONE,1.1 frame_ch_att.ini,NONE,1.1 frame_chain.ini,NONE,1.1 frame_gears.ini,NONE,1.1 frame_launcher.ini,NONE,1.1 frame_top.ini,NONE,1.1 frame_tux_wheel.ini,NONE,1.1 frame_wheel.ini,NONE,1.1
Martin Quinson
xbubble-devel@lists.alioth.debian.org
Mon, 06 Dec 2004 08:04:33 +0000
Update of /cvsroot/xbubble/xbubble/data/themes/fancy/script
In directory haydn:/tmp/cvs-serv22285
Added Files:
Makefile bub.inc bub.ini bub_black.pov bub_blue.pov
bub_brown.pov bub_green.pov bub_magenta.pov bub_red.pov
bub_white.pov bub_yellow.pov bubex.ini bubex_black.pov
bubex_blue.pov bubex_brown.pov bubex_green.pov
bubex_magenta.pov bubex_red.pov bubex_white.pov
bubex_yellow.pov frame.inc frame_1p.ini frame_2p.ini
frame_bsd_launch.ini frame_ch_att.ini frame_chain.ini
frame_gears.ini frame_launcher.ini frame_top.ini
frame_tux_wheel.ini frame_wheel.ini
Log Message:
Import from savanah
--- NEW FILE: bub.inc ---
#include "colors.inc"
camera {
angle 10
location <0, 0, -16>
look_at <0, 0, 0>
}
light_source { <-4, 4, -4> color White }
background { color rgb <0.7, 0.7, 0.7> }
#declare bub =
object {
difference {
sphere { <0, 0, 0>, 1 }
sphere { <0, 0, 0>, 0.9 }
}
finish {
specular 1
roughness 0.003
ambient 0.1
diffuse 1
refraction 1
reflection 0.05
ior 1
}
}
#declare rd = -4*clock;
#declare rd2 = 1.5 + 2*clock;
#declare bubex =
#if (clock < 0)
intersection {
blob {
threshold 0.5
#declare cnt = 0;
#while (cnt < 8)
sphere { <rd2, 0, 0>, rd, 1 rotate (45*cnt)*y }
#declare cnt = cnt + 1;
#end
#declare cnt = 0;
#while (cnt < 4)
sphere { <rd2, 0, 0>, rd, 1 rotate 45*z rotate (22.5*90*cnt)*y }
sphere { <rd2, 0, 0>, rd, 1 rotate -45*z rotate (22.5+90*cnt)*y }
#declare cnt = cnt + 1;
#end
sphere { <0, rd2, 0>, rd, 1 }
sphere { <0, -rd2, 0>, rd, 1 }
}
difference {
sphere { <0, 0, 0>, rd2 }
sphere { <0, 0, 0>, rd2-0.1 }
}
rotate 60*x
rotate 30*z
finish {
specular 1
roughness 0.003
ambient 0.1
diffuse 1
refraction 1
reflection 0.2
ior 1
}
}
#else
sphere { <0, 0, 0>, 0 }
#end
#declare p_black = pigment { color rgbf <0.3, 0.3, 0.4, 0.8> }
#declare p_blue = pigment { color rgbf <0, 0, 1, 0.8> }
#declare p_green = pigment { color rgbf <0, 1, 0, 0.8> }
#declare p_orange = pigment { color rgbf <1, 0.8, 0, 0.8> }
#declare p_purple = pigment { color rgbf <1, 0, 1, 0.8> }
#declare p_red = pigment { color rgbf <1, 0, 0, 0.8> }
#declare p_white = pigment { color rgbf <1, 1, 1, 0.8> }
#declare p_yellow = pigment { color rgbf <1, 1, 0, 0.8> }
#declare rd = 0.6;
#declare sr = rd * sqrt(1/2);
#declare o_black =
object {
cylinder { <0, -sr, 0>, <0, sr, 0>, sr }
finish { ambient 0.5 }
pigment { White }
rotate clock*180*z
rotate clock*360*x
}
#declare rd = 0.6;
#declare sh = 0.1;
#declare sr = sqrt(rd*rd - sh*sh);
#declare tp = sin(pi/5) / (1 + cos(pi/5));
#declare sr2 = sr*tp*sqrt(1+tan(pi/5)*tan(pi/5)) / (tp + tan(pi/5));
#declare o_blue =
object {
prism {
linear_sweep linear_spline -sh, sh, 11,
<sr, 0>,
<cos(pi/5)*sr2, sin(pi/5)*sr2>, <cos(2*pi/5)*sr, sin(2*pi/5)*sr>,
<cos(3*pi/5)*sr2, sin(3*pi/5)*sr2>, <cos(4*pi/5)*sr, sin(4*pi/5)*sr>,
<-sr2, 0>,
<cos(4*pi/5)*sr, -sin(4*pi/5)*sr>, <cos(3*pi/5)*sr2, -sin(3*pi/5)*sr2>,
<cos(2*pi/5)*sr, -sin(2*pi/5)*sr>, <cos(pi/5)*sr2, -sin(pi/5)*sr2>,
<sr, 0>
}
finish { ambient 0.5 }
pigment { White }
rotate clock*72*y
rotate clock*360*x
}
#declare rd = 0.6;
#declare sc = rd * pow(1/3, 1/3);
#declare o_green =
box {
<-sc, -sc, -sc>, <sc, sc, sc>
finish { ambient 0.5 }
pigment { White }
rotate clock*90*y
rotate clock*360*x
}
#declare rd = 0.6;
#declare sh = 0.1;
#declare sr = sqrt(rd*rd - sh*sh);
#declare o_orange =
object {
difference {
cylinder { <0, -sh, 0>, <0, sh, 0>, sr }
cylinder { <sr/2, -2*sh, 0>, <sr/2, 2*sh, 0>, sr }
}
finish { ambient 0.5 }
pigment { White }
rotate clock*360*y
rotate clock*180*x
}
#declare rd = 0.6;
#declare sh = 0.1;
#declare sr = sqrt(rd*rd - sh*sh) / 2;
#declare eps = 0.01;
#declare sr2 = sqrt((sr-eps)*(sr-eps) + 8*sr*sr);
#declare sx = ((3*sr*sr + sr*sr2) / sr2 - eps) / (1 + (sr*sr)/(sr2/sr2));
#declare sy = sqrt(sr2*sr2 - sx*sx);
#declare o_purple =
object {
union {
cylinder { <sr-eps, -sh, -sr>, <sr-eps, sh, -sr>, sr }
cylinder { <-sr+eps, -sh, -sr>, <-sr+eps, sh, -sr>, sr }
prism {
linear_sweep linear_spline -sh, sh, 6,
<0, 2*sr>, <-sx, 2*sr-sy>, <-2*sr+eps, -sr>,
<2*sr-eps, -sr>, <sx, 2*sr-sy>, <0, 2*sr>
}
}
finish { ambient 0.5 }
pigment { White }
rotate clock*180*z
rotate clock*360*x
}
#declare rd = 0.6;
#declare sh = rd / 3;
#declare sr = sqrt(rd*rd - sh*sh);
#declare o_red =
object {
prism {
conic_sweep linear_spline 0, 1, 4,
<sr, 0>, <cos(2*pi/3)*sr, sin(2*pi/3)*sr>,
<cos(2*pi/3)*sr, -sin(2*pi/3)*sr>, <sr, 0>
scale <1, rd+sh, 1>
translate <0, -rd, 0>
}
finish { ambient 0.5 }
pigment { White }
rotate clock*120*y
rotate clock*360*x
}
#declare rd = 0.6;
#declare sr = rd * sqrt(1/2);
#declare o_white =
object {
cone { <0, -sr, 0>, sr, <0, sr, 0>, 0 }
finish { ambient 0.5 }
pigment { White }
rotate clock*360*z
rotate clock*360*x
}
#declare rd = 0.6;
#declare sx = 2*rd/3 * cos(clock*pi);
#declare sy = rd/3 * sin(clock*pi);
#declare o_yellow =
object {
blob {
threshold 0.5
sphere { <sx, sy, 0>, rd, 1 }
sphere { <-sx, -sy, 0>, rd, 1 }
}
finish { ambient 0.5 }
pigment { White }
rotate clock*180*y
}
--- NEW FILE: frame_tux_wheel.ini ---
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3
Sampling_Method=2
Output_File_Name=frame_tux_wheel_.tga
Initial_Frame=1
Final_Frame=80
Initial_Clock=0
Final_Clock=5
Cyclic_Animation=off
Pause_when_Done=off
--- NEW FILE: bub_red.pov ---
#include "bub.inc"
object { bub pigment { p_red } }
object { o_red }
--- NEW FILE: bub_brown.pov ---
#include "bub.inc"
object { bub pigment { p_orange } }
object { o_orange }
--- NEW FILE: bub_blue.pov ---
#include "bub.inc"
object { bub pigment { p_blue } }
object { o_blue }
--- NEW FILE: bub_yellow.pov ---
#include "bub.inc"
object { bub pigment { p_yellow } }
object { o_yellow }
--- NEW FILE: frame_1p.ini ---
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3
Sampling_Method=2
Output_File_Name=frame_1p_0.tga
Initial_Frame=1
Final_Frame=1
Initial_Clock=0
Final_Clock=0
Cyclic_Animation=off
Pause_when_Done=off
--- NEW FILE: frame_gears.ini ---
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3
Sampling_Method=2
Output_File_Name=frame_gears_.tga
Initial_Frame=1
Final_Frame=40
Initial_Clock=0
Final_Clock=1
Cyclic_Animation=on
Pause_when_Done=off
--- NEW FILE: bubex_magenta.pov ---
#include "bub.inc"
object { bubex pigment { p_purple } }
object { o_purple pigment { rgb <1, 0, 1> } }
--- NEW FILE: bubex_red.pov ---
#include "bub.inc"
object { bubex pigment { p_red } }
object { o_red pigment { rgb <1, 0, 0> } }
--- NEW FILE: frame_chain.ini ---
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3
Sampling_Method=2
Output_File_Name=frame_chain_.tga
Initial_Frame=1
Final_Frame=16
Initial_Clock=0
Final_Clock=1
Cyclic_Animation=on
Pause_when_Done=off
--- NEW FILE: frame_wheel.ini ---
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3
Sampling_Method=2
Output_File_Name=frame_wheel_.tga
Initial_Frame=1
Final_Frame=16
Initial_Clock=0
Final_Clock=0.2
Cyclic_Animation=on
Pause_when_Done=off
--- NEW FILE: frame_ch_att.ini ---
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3
Sampling_Method=2
Output_File_Name=frame_ch_att_.tga
Initial_Frame=1
Final_Frame=16
Initial_Clock=0
Final_Clock=1
Cyclic_Animation=on
Pause_when_Done=off
--- NEW FILE: frame_top.ini ---
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3
Sampling_Method=2
Output_File_Name=frame_top_0.tga
Initial_Frame=1
Final_Frame=1
Initial_Clock=0
Final_Clock=0
Cyclic_Animation=off
Pause_when_Done=off
--- NEW FILE: bub_white.pov ---
#include "bub.inc"
object { bub pigment { p_white } }
object { o_white }
--- NEW FILE: bub_magenta.pov ---
#include "bub.inc"
object { bub pigment { p_purple } }
object { o_purple }
--- NEW FILE: frame_launcher.ini ---
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3
Sampling_Method=2
Output_File_Name=frame_launcher_.tga
Initial_Frame=1
Final_Frame=45
Initial_Clock=-0.5
Final_Clock=0.5
Cyclic_Animation=off
Pause_when_Done=off
--- NEW FILE: bub_green.pov ---
#include "bub.inc"
object { bub pigment { p_green } }
object { o_green }
--- NEW FILE: frame_2p.ini ---
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3
Sampling_Method=2
Output_File_Name=frame_2p_0.tga
Initial_Frame=1
Final_Frame=1
Initial_Clock=0
Final_Clock=0
Cyclic_Animation=off
Pause_when_Done=off
--- NEW FILE: bub.ini ---
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3
Sampling_Method=2
Initial_Frame=1
Final_Frame=24
Initial_Clock=0
Final_Clock=1
Cyclic_Animation=on
Pause_when_Done=off
--- NEW FILE: bubex_black.pov ---
#include "bub.inc"
object { bubex pigment { p_black } }
object { o_black pigment { rgb <0.7, 0.7, 0.7> } }
--- NEW FILE: bub_black.pov ---
#include "bub.inc"
object { bub pigment { p_black } }
object { o_black }
--- NEW FILE: bubex_blue.pov ---
#include "bub.inc"
object { bubex pigment { p_blue } }
object { o_blue pigment { rgb <0, 0, 1> } }
--- NEW FILE: Makefile ---
.PHONY: all bub bubex clean
bub_src:= $(wildcard bub_*.pov)
bub_png:= $(subst .pov,_01.png,$(bub_src))
bubex_src:= $(wildcard bubex_*.pov)
bubex_png:= $(subst .pov,_01.png,$(bubex_src))
bub:
all: bub bubex
crop: all
for i in bub*.png ; do \
cp $$i $$i.bak ; \
echo $$i; \
convert -crop 100x100+16 -scale 95x95 $$i.bak $$i; \
done
bub: $(bub_png)
bubex: $(bubex_png)
$(bub_png): %_01.png: %.pov bub.ini bub.inc
povray +UA bub.ini +I$< +O$(subst .pov,_.png,$<) +W132 +H100
$(bubex_png): %_01.png: %.pov bubex.ini bub.inc
povray +UA bubex.ini +I$< +O$(subst .pov,_.png,$<) +W132 +H100
clean:
rm -f bub*.png *~ \#*\# *.BAK
--- NEW FILE: bubex_yellow.pov ---
#include "bub.inc"
object { bubex pigment { p_yellow } }
object { o_yellow pigment { rgb <1, 1, 0> } }
--- NEW FILE: bubex.ini ---
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3
Sampling_Method=2
Initial_Frame=1
Final_Frame=30
Initial_Clock=-0.25
Final_Clock=1
Cyclic_Animation=on
Pause_when_Done=off
--- NEW FILE: bubex_white.pov ---
#include "bub.inc"
object { bubex pigment { p_white } }
object { o_white pigment { rgb <1, 1, 1> } }
--- NEW FILE: bubex_brown.pov ---
#include "bub.inc"
object { bubex pigment { p_orange } }
object { o_orange pigment { rgb <1, 0.8, 0> } }
--- NEW FILE: frame_bsd_launch.ini ---
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3
Sampling_Method=2
Output_File_Name=frame_bsd_launch_.tga
Initial_Frame=1
Final_Frame=88
Initial_Clock=0
Final_Clock=5.5
Cyclic_Animation=off
Pause_when_Done=off
--- NEW FILE: bubex_green.pov ---
#include "bub.inc"
object { bubex pigment { p_green } }
object { o_green pigment { rgb <0, 1, 0> } }
--- NEW FILE: frame.inc ---
#include "colors.inc"
#include "metals.inc"
light_source { <-40, 0, -250> color White }
light_source { <100, -100, -100> color White }
#declare board_1p =
object {
difference {
box { <-20000, -20000, -0.1>, <20000, 10000, 0> }
box { <-51, -155, -1>, <51, 1, 1> }
}
finish { F_MetalA }
pigment { P_Chrome2 }
}
#declare board_2p =
object {
difference {
[...2360 lines suppressed...]
translate (-60+dist)*x
#break
#case (7)
#declare dist = 8*(9*sin(pi/6) + 2*sin(pi/8) + 2*sin(pi/12));
translate (-60+dist)*x
#break
#case (8)
#declare dist = 8*(9*sin(pi/6) + 2*sin(pi/8) + 2*sin(pi/12));
translate (-60+dist)*x
#break
#case (9)
#declare dist = 8*(9*sin(pi/6) + 2*sin(pi/8) + 2*sin(pi/12));
translate (-60+dist)*x
#break
#end
}
#end