Jump to content

File:Cepheid animation 5 rend 1.gif

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia
Cepheid_animation_5_rend_1.gif (500 × 500 pixels, file size: 3.52 MB, MIME type: image/gif, looped, 100 frames, 5.0 s)

Summary

Description
English: Cepheid animation (or W Wirginis of RR Lyrae animation)
Date
Source Own work
Author Merikanto

POV-Ray 3.7 source code

Ini

[Animation] +W500 +H500 ; Initial_Frame = 1 Final_Frame = 100 Initial_Clock =0 Final_Clock = 99.0

Pov

// // pulsating star , cepheid w virginis or RR lyr star // pov-ray 3.7 source // 9.1.2022 0000.0003 //


  1. include "colors.inc"

camera{

 location <0,0,-40>
 look_at <0,0,0> 
   right x
   up y

}

//#declare color_6800k=<0.954,0.697,1>; //#declare color_5500k=<1,0.709,0.816>;

  1. declare color_5500k=<248,255,183>/255;
#declare color_6800k=<201,226,255>/255; 
  1. declare colora=color_6800k;
  2. declare colorb=color_5500k;


  1. declare fnum=clock;

//#declare fnum=0;


  1. declare animax1=100;
  2. declare degrad=(2*pi)/animax1;
  3. declare fii= degrad*fnum;

//#debug str(fii);

  1. declare sinfii=sin(fii);
  2. declare cosfii=cos(fii);
  3. declare one_minus_cosfii=1-cosfii;
  1. declare kosu1=(cosfii--1)/4;
  2. declare kosu2=(cosfii--1)/2;

//#declare starcolor1=<0.8+(cosfii*0.19),0.5+cosfii*0.48,0>;

//#declare starcolor1=<1,kosu1,0>;

//#declare starcolor1=<1,1+kosu1*0.1,0.5+kosu1/2>; //#declare starcolor1=<1.2,1.2*kosu1,1*kosu1> *<1,1,0.8>;

//#declare starcolor1=colorb;

  1. declare starcolor1=(1-kosu2)*(colorb-colora)+colora;


//#declare starcolor1=<1.2,1.2,1*(kosu1)>;

//#declare starcolor1=<2/2+1*(kosu1/4),1/3,1/3>;

//#declare starcolor2=starcolor1*0.8; //#declare starcolor3=starcolor1*0.99;


  1. declare starcolor2=starcolor1;
  2. declare starcolor3=starcolor1;


//#declare starcolor2=<1.1+0.3*cosfii,cosfii*1.1,cosfii>;

  1. declare stara1=sphere{
 <0,0,0>,10
 texture{
   pigment{
     //  color rgb starcolor1
       granite  
         phase clock*5
       scale 1
     //  scale (2+0.5*cos(fii))  
       pigment_map {
           [0 color starcolor2]
           [1 color starcolor3]
       }   // pig map
   } // pigment
  
      finish{
       // ambient 1    
        ambient (1+kosu2)
    }
  }



 texture {
       pigment{
       wrinkles
     //  granite  
        phase clock
      // scale 6
       color_map {
           [0 color rgbt <0,0,0,1>]
           [0.8 color rgbt <0,0,0,1>] 
           [0.7 color rgbt <1,1,1,0.95>]
           [1 color rgbt <1,1,1,0.5>]
       
       }
    }  
   }
   

// object scale

// scale 0.75+(one_minus_cosfii*0.25)

   scale 0.8+(one_minus_cosfii*0.4)

}


  1. declare fadi1=4*(1+kosu1);


union {


object {

 sphere {0,11/100 }
 pigment { 
   wrinkles 

//agate

// granite  


   scale 1/1000 
  // scale 0.5*100
            color_map {
           [0 color rgb 0]
           [0.55 color rgb 0]
          [0.55 color rgbt 1]  
           [1 color rgbt 1]
    }
   }  
 
}
 

  

light_source { <0,0,0>, 1 looks_like { stara1 } fade_distance fadi1 fade_power 4

}


/* light_source {

<0,0,0>, 1   

spotlight point_at <0,0,-100> radius 60 falloff 70

fade_distance fadi1*10

fade_power 2

}

 */

}

media { absorption 0.0000000001

//scattering {3,10/1000000000*starcolor3 extinction 0.00000000000001}

 scattering {3,6/10000000*starcolor3 extinction 0.00000000000001}
  
density {
    granite 
          scale 1/10
    color_map {
                 [0 color rgbt 0]
        //   [0.55 color rgb 0]
       //   [0.55 color rgbt 1]  
           [1 color rgbt 1]

}

   }        

}

Python

    1. calculate color from temperature
    2. python 3 code

import numpy as np import matplotlib.pyplot as plt import math import Color_Match as cm

  1. tcolor1=6800

tcolor1=5500

sv = cm.sense_vector(cm.planck_spectrum(tcolor1)) relative_intensities = cm.rgb_composition(623e-9, 528e-9, 470e-9, sv) full_brightness_limit = 255 desired_brightness = 0.5 absolute_rgb_levels = (desired_brightness * full_brightness_limit) * relative_intensities

absolute_rgb_levels2 = (1 * 1) * relative_intensities

print(absolute_rgb_levels) print(absolute_rgb_levels2) print(relative_intensities)

Licensing

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.

Captions

Cepheid animation

Items portrayed in this file

depicts

9 January 2023

image/gif

1f00f715aca70dfebee2aae64c848525b8f88f0c

3,690,682 byte

4.99999999999999 second

500 pixel

500 pixel

File history

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

Date/TimeThumbnailDimensionsUserComment
current11:18, 9 January 2023Thumbnail for version as of 11:18, 9 January 2023500 × 500 (3.52 MB)MerikantoUploaded own work with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata