2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

added povray example

This commit is contained in:
Martin Thoma 2012-08-30 14:56:42 +02:00
parent 4014cccca5
commit 84e7cc73c9
7 changed files with 144 additions and 9 deletions

31
povray/ellipsoid/Makefile Normal file
View file

@ -0,0 +1,31 @@
SOURCE = ellipsoid
DELAY = 80
DENSITY = 300
WIDTH = 500
make:
povray $(SOURCE).pov
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif:
pdfcrop $(SOURCE).pdf
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
make clean
png:
make
make svg
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
transparentGif:
convert $(SOURCE).pdf -transparent white result.gif
make clean
svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg

View file

@ -0,0 +1,24 @@
#include "colors.inc"
#include "stones.inc"
camera {
location <10, 10, 0>
look_at <0, 0, 0>
}
plane {
y, 0
pigment { checker color Gray color White }
}
sphere {
<0, 0, 0>, 4 // center and radius
pigment { color White }
texture {T_Stone1}
finish {
reflection 0.1
phong 0.3
}
}
light_source { <5, 10, 10> color White }
light_source { <10, 10, 5> color White }