|
![](/i/fill.gif) |
make your own "My love is as big as space" Valentine's day card:
// PoVRay 3.6 Scene File " ... .pov"
// created by ...
// Date: ...
//--------------------------------------------------------------------------
#version 3.6;
global_settings { assumed_gamma 1.0 }
//--------------------------------------------------------------------------
#include "colors.inc"
#include "textures.inc"
#include "glass.inc"
#include "metals.inc"
#include "golds.inc"
#include "stones.inc"
#include "woods.inc"
#include "shapes.inc"
#include "shapes2.inc"
#include "functions.inc"
#include "math.inc"
#include "transforms.inc"
//--------------------------------------------------------------------------
// camera ------------------------------------------------------------------
#declare Camera_0 = camera {ultra_wide_angle angle 75 // front view
location <0.0 , 1.0 ,-24.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{< 1500,2500,-2500> color White}
// sky ---------------------------------------------------------------------
// STARFIELD
#declare star_count = 122000;
#declare star_scale = .2;
#include "GALAXY.SF"
#declare galaxy_seed = .5;
#declare star_count = 500;
#declare star_type = 3;
#declare star_colour = <1, .9, .7>;
#declare star_scale = .3;
#include "GALAXY.SF"
// PINK NEBULA
#declare galaxy_colour1 = <1.2, 1, 1.1>;
#declare galaxy_colour2 = <0, .3, 1>;
#declare galaxy_pattern_origin = x * 1;
#declare galaxy_turb_origin = x * -4;
#declare galaxy_object_name = "Nebula1"
#declare galaxy_object_scale = 1.75;
#declare galaxy_object_position = <-5, 5, 0>;
#declare galaxy_cluster_name = ""
#include "GALAXY.OBJ"
// BLUE NEBULA
#declare galaxy_colour1 = <.5, .9, 1.2>;
#declare galaxy_colour2 = <1, .3, .5>;
#declare galaxy_pattern_origin = x * -20;
#declare galaxy_object_name = "Galaxy3"
#declare galaxy_object_scale = 1.2;
#declare galaxy_object_position = <10, -12, 0>;
#include "GALAXY.OBJ"
//-----------------------------------------------
#declare heart =
isosurface {
function { f_heart( x,y,z, -0.15 )
}
threshold 0.0
accuracy 0.0001
max_gradient 100
contained_by {box {<-1.1,-1.1,-1.1>, < 1.1, 1.22, 1.1>}}
//open
texture {
pigment{color rgb Red}
//normal {bumps 0.5 scale 0.05}
finish {ambient 0.15 diffuse 0.85 phong 1 specular 0.3 }
}
scale 1.00
rotate <-90, 90, 0>
translate <-0, 0, 0>
} // end of isosurface ---------------------------------------------
#declare Random_1 = seed (71053); // Use: "rand(Random_1)"
#declare Random_2 = seed ( 1953); // Use: "rand(Random_2)"
#declare Random_3 = seed ( 153); // Use: "rand(Random_3)"
union{
// outer loop
#declare NrX = 0; // start x
#declare EndNrX = 5; // end x
#while (NrX< EndNrX)
// more inner loop
#declare NrY = 0; // start y
#declare EndNrY = 5; // end y
#while (NrY< EndNrY)
// innerst loop
#declare NrZ = 0; // start z
#declare EndNrZ = 8; // end z
#while (NrZ< EndNrZ)
object {heart
// translate<NrX*0.5 NrY*0.5 NrZ*0.5>}
translate< NrX*10 + 10*(-0.5+rand(Random_1)) ,
NrY*10 + 10*(-0.5+rand(Random_2)) ,
NrZ*10 + 10*(-0.5+rand(Random_3))
>
} // end of sphere
#declare NrZ = NrZ + 1; // next Nr z
#end // --------------- end of loop z
// end innerst loop
#declare NrY = NrY + 1; // next Nr y
#end // --------------- end of loop y
// end more inner loop
#declare NrX = NrX + 1; // next Nr x
#end // --------------- end of loop x
// end of outer loop
rotate<0,-30,0>
translate<0,-1,-0.5>} // end of union
Post a reply to this message
|
![](/i/fill.gif) |