From 32a4d4ae85948da5b014818199accb15895175c9 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 26 Sep 2010 13:01:01 -0300 Subject: [PATCH] Rendering improvements. http://downloads.qi-hardware.com/people/werner/tmp/main.png - solidify/Makefile: use povray +P, to keep showing the image when done - solidify/main.pov: moved lower light source from x- to x+ and lowered it a bit more - solidify/main.pov: doubled the intensity of the ambient light - solidify/main.pov: rotate the part in xy and add a thin red plane to help with assessing the accuracy of z0 inclination (the top of the battery cover turned out to be very difficult to get right with solidify alone) - solidify/main.pov: added a third view of the part --- solidify/Makefile | 2 +- solidify/main.pov | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/solidify/Makefile b/solidify/Makefile index a36925f..a2b790c 100644 --- a/solidify/Makefile +++ b/solidify/Makefile @@ -69,7 +69,7 @@ run: solidify ./solidify batcvr.sfy >batcvr.inc pov: - povray +A -W1280 -H1024 main.pov + povray +A +P -W1280 -H1024 main.pov disp: display main.png diff --git a/solidify/main.pov b/solidify/main.pov index 5c07a75..1f2bce3 100644 --- a/solidify/main.pov +++ b/solidify/main.pov @@ -22,7 +22,7 @@ light_source { } light_source { - <-100, -500, -10> + <100, -500, -50> color White } @@ -47,12 +47,14 @@ sphere { < 0, 0, 10>, 1 pigment { color Yellow } } phong 0.8 phong_size 100 metallic + ambient 0.2 } object { Part_batcvr pigment { rgbf <0.9, 0.9, 0.9, 0.2> } finish { Finish } + rotate <0, 0, 30> } object { @@ -62,3 +64,19 @@ object { translate <0, 0, 25> rotate <0, 20, 80> } + +object { + Part_batcvr + pigment { rgbf <0.8, 1, 1, 0.2> } + finish { Finish } + rotate <180, 0, 0> + translate <0, 0, 13> + rotate <0, 10, -140> + translate <60, 0, 0> +} + +object { + box { <-50, -50, -0.1> <0, 0, 0.1> } + pigment { rgb <1, 0.5, 0.5> } + finish { ambient rgb <1, 0, 0> } +}