File:Mira type star animation 1 rend 1.gif

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

Original file(640 × 640 pixels, file size: 10.37 MB, MIME type: image/gif, looped, 100 frames, 5.0 s)

Captions

Captions

Mira type star animation

Summary

[edit]
Description
English: Mira type star animation
Date
Source Own work
Author Merikanto

POV-Ray source code

ini

[Animation] +W640 +H640 ; 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.0004 //


  1. include "colors.inc"

camera{

 location <0,0,-50>
 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>; //#declare color_5500k=<248,255,183>/255; // #declare color_6800k=<201,226,255>/255; // #declare color_2700k=<255,162,57>/255; // #declare color_3100k=<255,139,39>/255;

//#declare colora=color_3100k*<4,1/2,0>/4; //#declare colorb=color_2700k*<4,1/2,0>/4;

#declare colora=<1,1/10,0>; 
  1. declare colorb=<1,1/1000,0>;
  1. declare fnum=clock;

//#declare fnum=0;


// max frame of animation!

  1. declare animax1=100;
  1. declare degrad=(2*pi)/animax1;
  2. 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*0.4;
  2. declare starcolor3=starcolor1*1.5;


//#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+pow(kosu2,4))
    }
  }



 texture {
       pigment{
     //  wrinkles
      granite  
        phase clock
       scale 2
       color_map {
           [0 color rgbt <0,0,0,0.5>]
         //  [0.8 color rgbt <0,0,0,0.7>] 
         //  [0.7 color rgbt <1,1,1,1>]
           [1 color rgbt <1,1,1,1>]
       
       }
    }  
   }
  
 texture {
       pigment{
       wrinkles
   //   granite  
        phase clock
       scale 2
       color_map {
           [0 color rgbt <0,0,0,0.1>]
           [0.2 color rgbt <0,0,0,0.3>] 
           [0.25 color rgbt <1,1,1,1>]
           [1 color rgbt <1,1,1,1>]
       
       }
    }  
   }   

// object scale


// scale 0.75+(one_minus_cosfii*0.25)

   scale 0.8+(one_minus_cosfii*0.4)

}


  1. declare fadi1=2*(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>, 2 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

}

 */

}


  1. declare media1=media {

//absorption 0.01*<0,1,1> // emission <1,0,0>*0.00000001 //scattering {3,10/1000000000*starcolor3 extinction 0.00000000000001}

 scattering {3,10/10000000*<1,1/10,0> 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]

}

   }        
  */

}

media {media1}

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
current14:22, 9 January 2023Thumbnail for version as of 14:22, 9 January 2023640 × 640 (10.37 MB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata