File:Cataclysmic variable binary star 1 v 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: 638 KB, MIME type: image/png)

Captions

Captions

Cataclysmic variable binary star

Summary

[edit]
Description
English: Cataclysmic variable binary star
Date
Source Own work
Author Merikanto

POV-Ray 3.7 source code

// // cataclysmic variable // double star // // POV-Ray 3.7 source code // // 22.8.2023 v 0000.0001 //



  1. include "colors.inc"
  2. include "textures.inc"
  3. include "shapes.inc"
  4. include "shapesq.inc"


global_settings { assumed_gamma 1.0 }
background   { color rgb 0 }


camera  { 
location  <0.0, 5.0, -10>*0.33
//   location  <0.0, 3.0, 0>*1
 look_at   <0.0, 0.0, 0.0> 

}



// drop definition

  1. declare drop1 =

merge { object {

  Piriform
  sturm
 // rotate -90*z
 // translate 0.5*y
  
  scale <1.5, 1, 1>

}


object { sphere { 0,0.7 } translate x*1.25


}


}



  1. declare star1= object {

// sphere {0,1} object {drop1}


texture {

 //  pigment {color rgb <1,0.5,0>}
   
pigment {
   granite 
   scale 1/10
   color_map {
   [0 color rgb <1,0,0>]
    [1 color rgb <1,1/4,0>]
   }

}

   finish {ambient 6}
   }


//scale 3 }


  1. declare gasring1=object {torus {1, 0.5}


 texture {

// pigment {color rgb <0,0.5,0.5>}

pigment {     
 function { f_waves(x*10,0,z*10)*1
  • f_granite(x,0,z)
  • ((sin(sqrt( (x*x+z*z)*1 ) )+1)/2)*1


} // waves

   //ripples 
  // translate x*-1 
   //scale 0.02    

//sine_wave

   color_map {
   [0 color rgbt <1,1,0,0>]
    [1 color rgbt <1,1,1/2,1>]
   }

}


   finish {ambient 1}
   }
     scale y/20 
   scale 0.5
    translate x*-1

}


  1. declare gas_stream1= object {
 cylinder {<-0.55,0,0>,<1/2*0,0,0>,0.025} 


 texture {
  // pigment {color rgb <5,0.5,0.0>}
pigment {
    gradient x 
  // waves
   //ripples 
   translate x*-1 
   //scale 0.02 
   color_map {
   [0 color rgb <1,1,0>]
    [1 color rgb <1,1/4,0>]
   }

}


   finish {ambient 1}
   }
     translate x*0.1
       rotate y*-38
  translate z*-0.06

}


#declare star2= object {
sphere {0,0.1} 

//translate x*-1


texture {

   pigment {color rgb <1,1,1.2>*0.8}
   finish {ambient 1}
   }


}


#declare hot_spot1 = object {
sphere {0,0.03} 

//translate x*-0.37 //translate z*-0.36


texture {

// pigment {color rgb <1,1,1.2>*0.8}

      pigment {
   wrinkles    

// gradient x

  // waves
   //ripples 
   translate x*-1 
   scale 0.001 
   color_map {
   [0 color rgb <1,1,1>]
    [1 color rgb <1,1,1/2>]
   }

}

   finish {ambient 1}
   }


}


// surround of star 2

  1. declare surround1= object {
 sphere // transparent sphere containing media
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    { 

emission 0.1*<1,1,1>

  scattering { 3, 1/10 }


 density
      { spherical density_map
        { [0 rgb 0]
      //    [0.4 rgb <1,0,0>]
        //  [0.8 rgb <1,1,0>]
          [1 rgb <1,1,1/2>]
        }
      }
    }

}
} 

scale y/3

 translate x*-0.5

}


// surround of hot spot

  1. declare surround2= object {
 sphere // transparent sphere containing media
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    { 

emission 0.5*<1,1,1>

  scattering { 3, 1/2 }


 density
      { spherical density_map
        { [0 rgb 0]
      //    [0.4 rgb <1,0,0>]
        //  [0.8 rgb <1,1,0>]
          [1 rgb <1,1,1/2>]
        }
      }
    }

}
} 

//scale y/3 // translate x*-0.33 scale 0.15

     translate x*-0.4

translate z*-0.35

}

// surround of hot spot
  1. declare surround3= object {
 sphere // transparent sphere containing media
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    { 

emission <1,1,0>*0.01

  scattering { 3, 1/70 }


 density
      { spherical density_map
        { [0 rgb 0]
          [1 rgb <1,1/2,1/2>]
        }
      }
    }

}
} 

scale y/3

scale 20 

translate x*1

}


// star2

light_source {

   <-1,0,0>
   color rgb 1
   looks_like { object {star2 }}
        }

// hot spot

light_source {
   <0,0,0>
   color rgb 1
   looks_like { object {hot_spot1 }}
       translate x*-0.37

translate z*-0.36

        }



object { star1 }


object { gasring1}

object {gas_stream1}


object { surround1 scale 1.5 }

object { surround2 scale 1 }


object { surround3 scale 1 }


Old code

// // cataclysmic variable // double star // // POV-Ray 3.7 source code // // 22.8.2023 v 0000.0000 //

  1. include "colors.inc"
  2. include "textures.inc"
  3. include "shapes.inc"
  4. include "shapesq.inc"


global_settings { assumed_gamma 1.0 }
background   { color rgb 0 }


camera  { 
location  <0.0, 5.0, -10>*0.33
 //   location  <0.0, 5.0, 0>*1
 look_at   <0.0, 0.0, 0.0> 

}


// drop definition

  1. declare drop1 =

merge { object {

  Piriform
  sturm
 // rotate -90*z
 // translate 0.5*y
  
  scale <1.5, 1, 1>

}


object { sphere { 0,0.7 } translate x*1.25

}

}

  1. declare star1= object {

// sphere {0,1} object {drop1}

texture {

 //  pigment {color rgb <1,0.5,0>}
   
pigment {
   granite 
   scale 1/10
   color_map {
   [0 color rgb <1,0,0>]
    [1 color rgb <1,1/4,0>]
   }

}

   finish {ambient 6}
   }


//scale 3 }

  1. declare gasring1=object {torus {1, 0.5}
 texture {

// pigment {color rgb <0,0.5,0.5>}

pigment {     
 function { (sin(sqrt( (x*x+z*z)*1 ) )+1)/2 }

// waves

   //ripples 
  // translate x*-1 
   //scale 0.02 
   color_map {
   [0 color rgbt <1,1,0,0>]
    [1 color rgbt <1,1,1/2,1>]
   }

}


   finish {ambient 1}
   }
     scale y/20 
   scale 0.6
    translate x*-1

}


  1. declare gas_stream1= object {
 cylinder {<-0.55,0,0>,<1/2*0,0,0>,0.025} 
 texture {
  // pigment {color rgb <5,0.5,0.0>}
pigment {
    gradient x 
  // waves
   //ripples 
   translate x*-1 
   //scale 0.02 
   color_map {
   [0 color rgb <1,1,0>]
    [1 color rgb <1,1/4,0>]
   }

}

   finish {ambient 1}
   }
     translate x*0.1
       rotate y*-38
  translate z*-0.06

}

#declare star2= object {
sphere {0,0.1} 

//translate x*-1

texture {

   pigment {color rgb <1,1,1.2>*0.8}
   finish {ambient 1}
   }


}

#declare hot_spot1 = object {
sphere {0,0.03} 

//translate x*-0.37 //translate z*-0.36


texture {

// pigment {color rgb <1,1,1.2>*0.8}

      pigment {
   wrinkles    

// gradient x

  // waves
   //ripples 
   translate x*-1 
   scale 0.001 
   color_map {
   [0 color rgb <1,1,1>]
    [1 color rgb <1,1,1/2>]
   }

}

   finish {ambient 1}
   }


}

// surround of star 2

  1. declare surround1= object {
 sphere // transparent sphere containing media
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    { 

emission 0.1*<1,1,1>

  scattering { 3, 1/10 }


 density
      { spherical density_map
        { [0 rgb 0]
      //    [0.4 rgb <1,0,0>]
        //  [0.8 rgb <1,1,0>]
          [1 rgb <1,1,1/2>]
        }
      }
    }

}
} 

scale y/3

 translate x*-0.5

}


// surround of hot spot

  1. declare surround2= object {
 sphere // transparent sphere containing media
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    { 

emission 0.5*<1,1,1>

  scattering { 3, 1/2 }


 density
      { spherical density_map
        { [0 rgb 0]
      //    [0.4 rgb <1,0,0>]
        //  [0.8 rgb <1,1,0>]
          [1 rgb <1,1,1/2>]
        }
      }
    }

}
} 

//scale y/3 // translate x*-0.33 scale 0.15

     translate x*-0.4

translate z*-0.35

}

// surround of hot spot
  1. declare surround3= object {
 sphere // transparent sphere containing media
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    { 

emission <1,1,0>*0.01

  scattering { 3, 1/100 }


 density
      { spherical density_map
        { [0 rgb 0]
          [1 rgb <1,1/2,1/2>]
        }
      }
    }

}
} 

scale y/3

scale 20 

translate x*1

}

// star2

light_source {

   <-1,0,0>
   color rgb 1
   looks_like { object {star2 }}
        }

// hot spot

light_source {
   <0,0,0>
   color rgb 1
   looks_like { object {hot_spot1 }}
       translate x*-0.37

translate z*-0.36

        }

object { star1 }

//object { star2 }

object { gasring1}

object {gas_stream1}

//object { hot_spot1 }

object { surround1 scale 1.5 }

object { surround2 scale 1 }

object { surround3 scale 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
current10:07, 22 August 2023Thumbnail for version as of 10:07, 22 August 20231,600 × 1,200 (638 KB)Merikanto (talk | contribs)Update
09:12, 22 August 2023Thumbnail for version as of 09:12, 22 August 20231,600 × 1,200 (607 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata