File:Hearts and other objects 1 r 1.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(1,600 × 1,200 pixels, file size: 565 KB, MIME type: image/png)

Captions

Captions

Hearts and other objects

Summary

[edit]
Description
English: Hearts and other objects.
Date
Source Own work
Author Merikanto

POV-Ray source code

// hearts and other objects // POV-Ray 3.7 source code // // idea from Heidi //

  1. include "functions.inc"
#include "colors.inc"
  1. include "textures.inc"

//#include "metals.inc"

camera {

   location <0,0,-10>
   look_at 0
   angle 60

}


plane {

z,1000

//color rgb <0.5,0.5,1.2>

 pigment {

//ripples

 wrinkles  

octaves 60

   scale y/4

turbulence 0.5 scale 1000

color_map { [0 color <1,1,1> ] [1 color <0,0,1> ] }

} }


light_source { <1000,1000,-1000> color <1,1,1> }

  1. declare heart1=

isosurface{

function{

sqrt(pow(x*2.5,2)+z*z+pow(abs(y*1.1-0.8*sqrt(sqrt(z*z+pow(x/2,2)/(pow(abs(y+1.4),4)+0.001)))),2))-1

}
accuracy 0.005
max_gradient 5
contained_by{box{-1.4,1.4}}
texture{pigment{color red 1.4 green 0.0 blue 0 }finish{diffuse 1 specular 0.5 phong 1

phong_size 45}} }


  1. declare heart2=

isosurface{

function{

sqrt(pow(x*2.5,2)+z*z+pow(abs(y*1.1-0.8*sqrt(sqrt(z*z+pow(x/2,2)/(pow(abs(y+1.4),4)+0.001)))),2))-1

}
accuracy 0.005
max_gradient 5
contained_by{box{-1.4,1.4}}
//pigment { }
  

texture{ pigment{color Gold transmit 0.7 }}

interior{ior 1.5}

}

  1. declare cross1= union {
box {<-1,-2,-2>,<1,2,2> scale x*10 scale 0.1 }
box {<-2,-1,-2>,<2,1,2> scale y*20  translate y*-10 scale 0.1}

pigment { color Black} 
finish { phong 1 metallic specular 0.5}

}

object { heart1 scale 1 rotate x*10 rotate y*90

translate z*-1 
translate x*-1 
translate y*1.0

texture {

     pigment{color rgb <1, 0, 0>}
     finish {
       irid { 
           0.25 
           thickness 0.6
       }
       brilliance 1
       metallic
       specular 3
     }
   }

}

object { heart1 scale 0.5 rotate x*10 rotate y*90

 rotate z*-30
translate z*-1 
translate x*1 
translate y*1.0

texture {

     pigment{color rgb <1, 0, 0>}
     finish {
       irid { 
           0.25 
           thickness 0.6
       }
       brilliance 0.1
       metallic
       specular 3
     }
   }
       
 normal { granite 1 scale 0.1}

}

object { heart1 scale 0.5 rotate x*10 rotate y*90

translate z*-1 rotate y*-2
translate y*-1 

translate x*-1.5

texture {

     pigment{color rgb <1, 0, 0>}
     finish {
       irid { 
           0.25 
           thickness 0.6
       }
       brilliance 0
       metallic
       specular 3
     }
   }

}

object { heart1 scale 0.8 rotate x*10 rotate y*90 // rotate z*-30

 scale 1.75
  rotate z*180
rotate x*25
translate z*-1 
translate y*-1.5
translate x*0

/* texture {

     pigment{color rgb <1, 0, 0>}
     finish {
       irid { 
           0.25 
           thickness 0.6
       }
       brilliance 1
       metallic
       specular 3
     }
   }
 
  • /

}

object { cross1 scale 1/2 rotate x*20 rotate y*40}

  1. declare explocloud1=sphere { 0,2 hollow no_shadow
 texture { pigment { rgbt 1 } }
 interior {
   media { absorption 8 emission 8 method 3 samples 30,30 intervals 1
     density { spherical
       warp { turbulence .75*.3+.05 lambda 2.75 }
       density_map {
         [1-.99*.75 rgb <0,0,0>]
         [1-.99*.75 rgb <max(0,1-.75*1.5),max(0,1-.75*4.5),max(0,1-.75*6)>]
         [1 rgb <.75,.25,0>*10] }
     }
   }
  
   media { absorption 3 scattering { 1 .3 } method 3 samples 30,30 intervals 1
     density { spherical
       warp { turbulence .75*.3+.05 lambda 2.75 }
       density_map {
         [1-.99*.75 rgb 0]
         [1-.99*.75 rgb 1]
         [1-.49*.75 rgb 1]
         [1-.49*.75 rgb 0]
        }
     }
   }
 }

}


//object {explocloud1 scale 4 translate x*-2 translate z*4}

object {

sphere {0,1 scale y*0.3} texture { pigment {color <0,0,0>}

finish { metallic phong 1 specular 0.5 diffuse 0.5} }

rotate x*50 translate x*-4

}

 text {
   ttf "cyrvetic.ttf" "****" 0.33, 0   
//   texture { Gold}
 //  pigment { color rgb <1,0,0> }
 
//   pigment { BrightGold }  
texture {Gold_Nugget}
finish { metallic phong 1}
 translate <1,0,5>
 }

/*

  text {
   ttf "cyrvetic.ttf" " It is birthday !" 0.33, 0   
//   texture { Gold}
 //  pigment { color rgb <1,0,0> }
 
   pigment { Gold }  
finish { metallic phong 1}
 translate <-10,-5,15>
 }
 */

object { heart2 scale 0.8 rotate x*10 rotate y*90

 rotate z*-30
translate z*-1  rotate z*30
translate y*-1.5
translate x*2.5

}

   // fog

fog {

   fog_type   2
   distance   50
   color      White
   fog_offset -200
   fog_alt    -100
   turbulence 0.8

}


/* // sea plane { <0,-100,0>, 0 // hollow

   texture{
       pigment{
           rgb <.2,.2,.2>
       }
       finish {
           ambient 0.15
           diffuse 0.55
           brilliance 6.0
           phong 0.8
           phong_size 120
           reflection 0.4
       }
       normal { 
           bumps 0.75
           turbulence .05 
           scale <1,0.25,1> 
       }
   }

}

  • /

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:30, 2 July 2023Thumbnail for version as of 12:30, 2 July 20231,600 × 1,200 (565 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata