File:Caleidociclo com texturas.ogv

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

Caleidociclo_com_texturas.ogv(Ogg Theora video file, length 6.7 s, 800 × 600 pixels, 702 kbps, file size: 571 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
Português: Animação mostrando um ciclo completo de um caleidociclo. Os quadros individuais foram produzidos com o POV-Ray, depois convertidos para vídeo (no formato AVI) usando o BMP to AVI Sequencer, e finalmente convertido para o formato OGG com o ffmpeg2theora-0.16.
Date
Source Own work
Author Helder
Other versions Caleidociclo com texturas (pequeno).ogg

Código fonte

[edit]
global_settings { assumed_gamma 2.2 }

#include "colors.inc"
#include "shapes.inc"
//#include "stones1.inc"
//#include "textures.inc"

#declare cal_x = 0;
#declare cal_y = 0;
#declare cal_z = 2;

#declare pos_caleidociclo = <cal_x, cal_y, cal_z>;
#declare tempo = clock;//0.17;

#declare cam_dist  =    4.0; //coordenadas esféricas//
#declare cam_phi   =   70.1; //angulo em relação a 'z'
#declare cam_theta =  135.1; //angulo em relação a 'x'

#declare DEG   = pi/180;
#declare cam_x = cal_x + cam_dist * sin(cam_phi*DEG) * cos(cam_theta*DEG);
#declare cam_y = cal_y + cam_dist * sin(cam_phi*DEG) * sin(cam_theta*DEG);
#declare cam_z = cal_z + cam_dist * cos(cam_phi*DEG);

camera {
  location <cam_x, cam_y, cam_z>
  right <4/3, 0, 0>
  up <0, 0, 1>                                          
  sky <0, 0, 1>
  //angle 20
  look_at pos_caleidociclo
}

light_source { < 30,  5, 50> color White }
light_source { <cam_x, cam_y, cam_z> color White }

background { color SkyBlue }

#declare A  = <0, -1/2, 0>;
#declare B  = <0,  1/2, 0>;
#declare C  = <1, 0,  0>;
#declare D  = <1/2, 0,  sqrt(3)/2>;

#declare A1 = triangle {  A, B, C
  pigment {agate}//pigment { colour Yellow }
}
#declare A2 = triangle {  C, B, D
  pigment {granite}//pigment { colour Green }
}
#declare A3 = triangle {  D, B, A
  pigment {wood turbulence .25 scale .5}//pigment { colour Blue }
}
#declare A4 = triangle {  D, A, C
  pigment {marble turbulence .8}//pigment { colour Red }
}

#declare Tetraedro =
union {  object { A1 }  object { A2 }  object { A3 }  object { A4 }  
  finish { ambient .3 diffuse .6 }  
}

#macro alfa (xxx) //dois seg's de reta: (0,0) -> (1,240) -> (2,0)
 240*(1-abs(xxx-1))
#end

#macro beta (xxx)
 #if (tempo<=1)
  (2*asin( 1/(2*sin((pi+3*240*xxx*DEG)/6)) )/DEG -60  )
 #else                                                 
  (240-(2*asin( 1/(2*sin((pi+3*240*(xxx-1)*DEG)/6)) )/DEG -60))
  //(240-(2*asin( 1/(2*sin((pi+3*480*(240*(xxx-1)*DEG)/6)) )/DEG -60))
 #end
#end

#declare Bloco = union {        
 object { Tetraedro rotate <0, 60+alfa(tempo), 0> }
 object { Tetraedro scale <1, 1, -1> rotate <0, -60, 0>}
 rotate <0, 30, 0>
 translate <-sqrt(3)/2,0,0>
}       

#declare Caleidociclo = union {
 union {
  object { Bloco }
  object { Bloco scale <-1, 1, 1> rotate <0, 0, 120-beta(tempo)>}
  rotate <0, 0, -120+beta(tempo)>
  translate <-sqrt(3)/2,0,0>
  rotate <0, -150+alfa(tempo)+30, 0>
  translate <-sqrt(3)/2,0,0>
 }
 object { Bloco scale <-1, 1, 1> rotate <0, 0, 120-beta(tempo)>}
}

object { Caleidociclo translate pos_caleidociclo }

#declare r = .01;

#declare Eixo =
cylinder {
 <0,0,0>, <1,0,0>, r
}

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike Attribution-Share Alike 4.0 International, 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic 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.
You may select the license of your choice.

File history

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

Date/TimeThumbnailDimensionsUserComment
current14:33, 5 December 20086.7 s, 800 × 600 (571 KB)He7d3r (talk | contribs){{Information |Description={{pt|1=Animação mostrando um ciclo completo de um caleidociclo. Os quadros individuais foram produzidos com o POV-Ray, depois convertidos para vídeo (no formato AVI) usando o [http://sourceforge.net/pr

The following page uses this file:

Transcode status

Update transcode status
Format Bitrate Download Status Encode time
VP9 480P 387 kbps Completed 00:39, 21 August 2018 7.0 s
Streaming 480p (VP9) 388 kbps Completed 09:49, 13 January 2024 1.0 s
VP9 360P 239 kbps Completed 00:39, 21 August 2018 5.0 s
Streaming 360p (VP9) 240 kbps Completed 13:08, 18 January 2024 1.0 s
VP9 240P 144 kbps Completed 00:38, 21 August 2018 5.0 s
Streaming 240p (VP9) 145 kbps Completed 05:31, 5 December 2023 1.0 s
WebM 360P 499 kbps Completed 21:06, 17 March 2017 8.0 s
Streaming 144p (MJPEG) 764 kbps Completed 17:41, 1 November 2023 1.0 s

File usage on other wikis

The following other wikis use this file:

Metadata