Перейти на страницу файла на Викискладе

Файл:Yellow dwarf star image 4.png

Материал из Википедии — свободной энциклопедии
Перейти к навигации Перейти к поиску

Исходный файл(2400 × 1800 пкс, размер файла: 845 Кб, MIME-тип: image/png)

Краткое описание

Описание
English: Sun-type main sequence star
Дата
Источник Собственная работа
Автор Merikanto

Povray 3.7 source code povray command line povray y6b.pov -w2400 -h1800 +A +J

Povray source code

  1. include "functions.inc"
  1. declare Yellow =rgb <1,1,0>;
  2. declare White= rgb <1,1,1>;
  3. declare Black =rgb <0,0,0>;
  4. declare Red=rgb <1,0,0>;
  5. declare Orange=rgb <1,0.5,0>;
  6. declare YellowOrange=rgb <1,0.75,0>;
  7. declare YellowYellowOrange=rgb <1,0.825,0>;
  8. declare LightBlue=rgb <0.5,0.5,1>;
  9. declare DarkYellow=rgb <0.25,0.25,0>;

//#declare tauorig=

// DEBUG //#declare taunolla=0;

  1. declare taunolla=clock+180;
  1. declare tau=radians(taunolla);
  2. declare tau2=radians(taunolla+180.0);
  1. declare ra=2;
  2. declare rb=2;
  3. declare ax = sin(tau)*ra+1;
  4. declare ay = cos(tau)*ra;
  1. declare bx = sin(tau2)*rb-1;
  2. declare by = cos(tau2)*rb;
  1. declare sax=ax*1;
  2. declare say=ay*1;
  3. declare sbx=bx*1;
  4. declare sby=by*1;

camera {

location <0,4,-20>
look_at <0,0,0>
angle 25

}

  1. declare granulas = pigment {
   //granite
   crackle
   turbulence 0.5
   color_map {
     [0.0 color YellowOrange]
     [0.15 color YellowOrange]
     [0.25 color YellowYellowOrange]
     [1.0 color Yellow]
   }
   scale 0.05
 //  	warp{turbulence 0.1}
   };
   
  1. declare kromos=difference

{ sphere {0,1.005} sphere {0,1.001}


 pigment { color rgbf 1 }
 hollow
 interior {
 //fade_distance 1
 
 // fade_power 2
   media {
     //emission 0.15
     emission 5.0
     method 2
     intervals 1
     samples 5, 5
     density {
       spherical
       color_map {
              [ 0.0 rgbt <1, 1.0, 0,1.0> ]
                     [ 1.0 rgbt <1, 1.0,0,100> ]
       /*
         [ 0.0 rgbt <0.5,0.5,0.5,1.0> ]
         [ 0.15 rgbt <0.25, 0.0, 0.0,1.0> ]
         [ 0.4 rgbt <0.5, 0.0, 0.0,1.0> ]
         [ 1.0 rgbt <1.0, 0.0, 0.0,1.0> ]
       */
       }
     }
   }
   media {
     absorption 150
     method 2
     intervals 1
     samples 5, 5
     density {
       spherical
       color_map {
         [ 0.0 rgb 1.0 ]
         [ 0.1 rgb 1.0 ]
         [ 1.0 rgb 1.0 ]
       }
     }
   }
 }
 
 

};

  1. declare spots = pigment {
   //granite
   bozo
   turbulence 0.5
   color_map {
     [0.0 color Black]
     
     [0.55 color DarkYellow]
     [1.0 color Yellow]
   }
   scale 0.15
   
   };
   
  1. declare sun_surf =pigment

{

   bozo
   turbulence 0.5
   scale 0.2
   
       
     
      pigment_map {
     
      [0.0 granulas]
      [0.7 granulas  scale 5]
  //   [0.7 Yellow]
      [1.0 spots]       
     }    
 
 
 
      

};

  1. declare korona=object

{

difference {

sphere {0,1.45 }

/* isosurface { // function { f_sphere(x, y, z, 1)- -f_crackle(x/0.4,y/0.4,z/0.4)*0.2}

function { f_sphere(x, y, z, 1)- ( -f_snoise3d(x/0.1,y/0.1,z/0.1 )*0.2 )}

// function { f_sphere(x, y, z, 1)- -f_snoise3d(x/0.1,y/0.1,z/0.1 )*0.2 - -f_crackle(x/0.4,y/0.4,z/0.4)*0.2 }

 scale 1.2

}

  • /

sphere {0,1.006 }

}

pigment { color rgbt 1 }
//finish {ambient 1}



 hollow
 interior {
   fade_distance 100
       
   media {
     emission 0.1
    
     
   //  scattering <1,1,1>
     method 3
     intervals 1
     samples 5, 5
     density {
       spherical
       //bozo
       turbulence 0.05
       color_map {
         [ 0.0 rgbt <0.02,0.02,0.02,1.0> ]
         [ 0.25 rgbt <0.05, 0.05, 0.05,0.9> ]
          [ 0.5 rgbt <0.2, 0.2, 0.2,0.7> ]                   
         [ 1.0 rgbt <1.0, 1.0, 1.0,0.9> ]
       }
     }
   


   }
 }
 
 
 
 

};

  1. declare sun=union {

object { sphere {0,1} pigment {sun_surf rotate y*67 }

//pigment {Yellow}

finish {ambient 15 } scale 1 }

object { kromos scale 1.00 }

object { korona scale 1 }

};

object { sun scale 2.5 //translate <sax,0,say>

}

Лицензирование

Я, владелец авторских прав на это произведение, добровольно публикую его на условиях следующей лицензии:
w:ru:Creative Commons
атрибуция распространение на тех же условиях
Этот файл доступен по лицензии Creative Commons Attribution-Share Alike 4.0 International
Вы можете свободно:
  • делиться произведением – копировать, распространять и передавать данное произведение
  • создавать производные – переделывать данное произведение
При соблюдении следующих условий:
  • атрибуция – Вы должны указать авторство, предоставить ссылку на лицензию и указать, внёс ли автор какие-либо изменения. Это можно сделать любым разумным способом, но не создавая впечатление, что лицензиат поддерживает вас или использование вами данного произведения.
  • распространение на тех же условиях – Если вы изменяете, преобразуете или создаёте иное произведение на основе данного, то обязаны использовать лицензию исходного произведения или лицензию, совместимую с исходной.

Краткие подписи

Добавьте однострочное описание того, что собой представляет этот файл
Artist's view of yellow dwarf star

Элементы, изображённые на этом файле

изображённый объект

У этого свойства есть некоторое значение без элемента в

История файла

Нажмите на дату/время, чтобы посмотреть файл, который был загружен в тот момент.

Дата/времяМиниатюраРазмерыУчастникПримечание
текущий18:39, 28 мая 2019Миниатюра для версии от 18:39, 28 мая 20192400 × 1800 (845 Кб)MerikantoUser created page with UploadWizard

Следующая страница использует этот файл:

Метаданные