POV-Ray : Newsgroups : povray.newusers : How to make a simple CSG "readable" by humans : Re: How to make a simple CSG "readable" by humans Server Time
2 Jun 2024 11:23:36 EDT (-0400)
  Re: How to make a simple CSG "readable" by humans  
From: Stephen
Date: 5 Sep 2012 15:34:16
Message: <5047a938$1@news.povray.org>
On 05/09/2012 10:50 AM, bugbear wrote:
> I'm using vim and the command line on Linux to render (I will
> eventually be doing a permuted batch run of my POV for various
> parameters)
>
> Can you tell me the textual equivalent of the menu command you suggest?

Sorry, no I can't. I use Window$

But here is one of the basics scenes that you can paste into your scene. 
Comment out the cameras if required.

// PoVRay 3.7 Scene File " ... .pov"
// author:  ...
// date:    ...
//--------------------------------------------------------------------------
#version 3.7;
global_settings{ assumed_gamma 1.0 }
#default{ finish{ ambient 0.1 diffuse 0.9 }}
//-------------------------------------------------------------------------- 



#include "colors.inc"


//--------------------------------------------------------------------------
// camera ------------------------------------------------------------------
#declare Camera_0 = camera {perspective angle 75               // front view
                             location  <0.0 , 1.0 ,-3.0>
                             right     x*image_width/image_height
                             look_at   <0.0 , 1.0 , 0.0>}
#declare Camera_1 = camera {/*ultra_wide_angle*/ angle 90   // diagonal view
                             location  <2.0 , 2.5 ,-3.0>
                             right     x*image_width/image_height
                             look_at   <0.0 , 1.0 , 0.0>}
#declare Camera_2 = camera {/*ultra_wide_angle*/ angle 90  //right side view
                             location  <3.0 , 1.0 , 0.0>
                             right     x*image_width/image_height
                             look_at   <0.0 , 1.0 , 0.0>}
#declare Camera_3 = camera {/*ultra_wide_angle*/ angle 90        // top view
                             location  <0.0 , 3.0 ,-0.001>
                             right     x*image_width/image_height
                             look_at   <0.0 , 1.0 , 0.0>}
camera{Camera_0}
// sun 
----------------------------------------------------------------------
light_source{< 3000,3000,-3000> color White}
// sky 
----------------------------------------------------------------------
sky_sphere { pigment { gradient <0,1,0>
                        color_map { [0.00 rgb <0.6,0.7,1.0>]
                                    [0.35 rgb <0.1,0.0,0.8>]
                                    [0.65 rgb <0.1,0.0,0.8>]
                                    [1.00 rgb <0.6,0.7,1.0>]
                                  }
                        scale 2
                      } // end of pigment
            } //end of skysphere
// ground 
-------------------------------------------------------------------
plane{ <0,1,0>, 0
        texture{ pigment{ checker color rgb<1,1,1>*1.2 color 
rgb<0.25,0.15,0.1>*0}
               //normal { bumps 0.75 scale 0.025}
                 finish { phong 0.1}
               } // end of texture
      } // end of plane
//---------------------------------------------------------------------------
//---------------------------- objects in scene ----------------------------
//---------------------------------------------------------------------------

/*

// sample sphere
sphere { <0,0,0>, 1.00
          texture { Polished_Chrome
                    //pigment{ color Red } // rgb< 1, 0.0, 0.0>}
                    //finish { phong 1 reflection {0.40 metallic 0.5}}
                  } // end of texture

           scale<1,1,1>  rotate<0,0,0>  translate<0,1.35,0>
        }  // end of sphere -----------------------------------

*/


-- 
Regards
     Stephen


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.