Selaa lähdekoodia

improved sphere example

Martin Thoma 13 vuotta sitten
vanhempi
commit
0c52c4d941
3 muutettua tiedostoa jossa 7 lisäystä ja 5 poistoa
  1. 1 0
      README.md
  2. 3 2
      povray/ellipsoid/Makefile
  3. 3 3
      povray/ellipsoid/ellipsoid.pov

+ 1 - 0
README.md

@@ -28,3 +28,4 @@ some images here
 * [POV-Ray Documentation](http://www.povray.org/documentation/)
 * [POV-Ray Documentation](http://www.povray.org/documentation/)
 * [Ubuntuusers.de](http://wiki.ubuntuusers.de/POV-Ray) - German installation instructions
 * [Ubuntuusers.de](http://wiki.ubuntuusers.de/POV-Ray) - German installation instructions
 * [Many examples](http://www.f-lohmueller.de/)
 * [Many examples](http://www.f-lohmueller.de/)
+* [More examples with complete sources](http://www.ms.uky.edu/~lee/visual05/povray/povray.html)

+ 3 - 2
povray/ellipsoid/Makefile

@@ -1,10 +1,11 @@
 SOURCE = ellipsoid
 SOURCE = ellipsoid
 DELAY = 80
 DELAY = 80
 DENSITY = 300
 DENSITY = 300
-WIDTH = 500
+HEIGHT = 600
+WIDTH = 800
 
 
 make:
 make:
-	povray $(SOURCE).pov
+	povray $(SOURCE).pov Width=$(WIDTH) HEIGHT=$(HEIGHT) +O$(SOURCE).png +Q9 +A
 	make clean
 	make clean
 
 
 clean:
 clean:

+ 3 - 3
povray/ellipsoid/ellipsoid.pov

@@ -1,5 +1,5 @@
 #include "colors.inc"
 #include "colors.inc"
-#include "stones.inc"
+#include "stones.inc" // needed for texture T_Stone1
 
 
 camera {
 camera {
   location <10, 10, 0>
   location <10, 10, 0>
@@ -13,8 +13,8 @@ plane {
 
 
 sphere {
 sphere {
   <0, 0, 0>, 4  // center and radius
   <0, 0, 0>, 4  // center and radius
-  pigment { color White }
-  texture {T_Stone1}
+  scale<1,1,1.4> 
+  pigment { color Green transmit 0.5 }
   finish {
   finish {
     reflection 0.1
     reflection 0.1
     phong 0.3
     phong 0.3