Image:3 rotating rings.gif

From Wikipedia, the free encyclopedia

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

Contents

[edit] Summary

Description
English: An example of three rings in a Sonic the Hedgehog game, intended to supersede Image:SonicRing.jpg in terms of illustration quality. NOTICE: This ring is NOT from the real Sonic game, it is a self-made fake image which is meant to look as the original.
Source

own work

Date

2006-12-24

Author

w:en:User:DavidHOzAu

Permission
(Reusing this image)

Self-made


[edit] Licensing

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".

Aragonés | العربية | Asturianu | Български | বাংলা | ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী | Brezhoneg | Bosanski | Català | Cebuano | Česky | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | فارسی | Suomi | Français | Gaeilge | Galego | עברית | Hrvatski | Magyar | Bahasa Indonesia | Ido | Íslenska | Italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Kurdî / كوردی | Latina | Lëtzebuergesch | Lietuvių | Bahasa Melayu | Nnapulitano | Nederlands | ‪Norsk (nynorsk)‬ | ‪Norsk (bokmål)‬ | Occitan | Polski | Português | Română | Русский | Slovenčina | Slovenščina | Shqip | Српски / Srpski | Svenska | తెలుగు | ไทย | Türkçe | Українська | اردو | Tiếng Việt | Volapük | Yorùbá | ‪中文(中国大陆)‬ | ‪中文(台灣)‬ | +/-

Some rights reserved
Creative Commons Attribution iconCreative Commons Share Alike icon
This file is licensed under the Creative Commons Attribution ShareAlike license versions 2.5, 2.0, and 1.0

العربية | Български | Català | Česky | Dansk | Deutsch | English | Español | Euskara | فارسی | Français | עברית | Italiano | 日本語 | 한국어 | Lietuvių | Nederlands | Polski | Português | Русский | Svenska | தமிழ் | Türkçe | 中文 | 中文 | +/-

You may select the license of your choice.


[edit] Source code

Image generated using POV-Ray for Windows 3.6; resulting slides were converted to an animated GIF using GIMP 2.3.6.

[edit] rings.pov

//------------------------------------------------------------
// Copyright 2006 DavidHOzAu
//------------------------------------------------------------
// This work is licensed under the Creative Commons Attribution ShareAlike License. 
// To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/2.5/ 
//------------------------------------------------------------

#include "colors.inc"
#include "textures.inc"
#include "metals.inc"
#include "stones.inc"
#include "golds.inc"

global_settings {
  photons {
    count 2000
    autostop 0.5
    jitter .4
  }
  radiosity {
    normal on
    count 100
    recursion_limit 5
    error_bound 1
    low_error_factor 1
    brightness 1.5
  }
  ambient_light rgb 1/3
}

#declare seer = <4, 4, -9>;

camera {
        location  seer
        up <0, 1, 0>
        right <4/3, 0, 0>
        angle 34
        look_at   <0.75, 0.5, 0>
}     

light_source {
  <13, 13, -5>
  color rgb <1.4, 1.3, 1.2>
  fade_distance 15
  fade_power 2
  photons {
     refraction off
     reflection on
  }
  
  area_light <.4, 0, 0>, <0, 0, .4>, 5, 5
}

light_source {
  <20, 0, -5>
  color rgb 1
  fade_distance 15
  fade_power 2
  photons {
     refraction off
     reflection on
  }
  area_light <.4, 0, 0>, <0, 0, .4>, 5, 5
  shadowless
}

light_source {
  seer
  color rgb 1
  fade_distance 2
  fade_power 2
  photons {
     refraction off
     reflection on
  }
  shadowless
}

background {
  color 0
}

#declare MarbleFloorTex1 = texture {
  T_Grnt9
  finish {
    reflection 0.25
    ambient rgb 0.5
  }
  scale 10      
}
    
#declare MarbleFloorTex2 = texture {
  T_Stone10//T_Stone17
  //pigment { color Gray75 }
  finish {
    reflection 0.25
    ambient rgb 0.5
  }
  scale 10
}

// FloorBuilder
#macro FloorBuilder (vc, dm, nmx, nmz, sc, of)
  #local ix = 0;
  #while (ix < nmx)
    #local iz = 0;
    #while (iz < nmz)
      box {
          <ix*dm, -0.1, iz*dm>
          <(ix+1)*dm, 0, (iz+1)*dm>
          #if (mod(ix + iz, 2) = 0)
            texture {
              MarbleFloorTex1
              scale sc
              translate <of*ix*sc*dm, 0, of*iz*sc*dm>                            
            }
          #else
            texture {
              MarbleFloorTex2
              scale sc
              translate <of*ix*sc*dm, 0, of*iz*sc*dm>
            }
          #end
          translate <-nmx*dm/2, 0, -nmz*dm/2>
          translate vc
          photons {
             target
          }
      }
      #local iz = iz + 1;
      #end
    #local ix = ix + 1;
  #end
#end

FloorBuilder(<0, -10, 0>, 10, 100, 100, 15, 2)    

// Classic-style ring is an intersection of three torus
#macro SonicRing(d, r, f) 
  intersection {
    object {
      torus {
        d + (r*f*sqrt(3)/2), r
        sturm
      }
      translate -y*r*f/2
    } 
    object {
      torus {
        d + (r*f*sqrt(3)/2), r
        sturm
      }
      translate y*r*f/2
    }  
    object {
      torus {
        d-(r*f), r
        sturm
      }
    }
    rotate 90*z
  }
#end

#macro SonicRingRotate(d, r, f, a)
merge{
  SonicRing(d, r, f)
  scale 0.5
  rotate 180*y*(clock+a)
#end


#macro GlowRing(d, r, f, a, tr)
#local sinmul = 1/8*pow(f-sqrt(-3*pow(f,2)+4),2)*sqrt(3);
#local cosmul = sqrt(1 - pow(sinmul,2));
  object {
     SonicRingRotate(d, r, f, a)
    texture { 
       pigment {
         color <1.00, 1.0, 0.5>
       }
       finish {
         ambient <0.4, 0.3, 0.2>
       }
    }
    photons {
       target
       reflection on
    }
    translate tr
    
  }
#end

// Three rings in a row
GlowRing(2, 1, 0.25, 0.0, 0)
GlowRing(2, 1, 0.25, 0.0, <0, 0, 4>)
GlowRing(2, 1, 0.25, 0.0, <0, 0, 8>)

[edit] rings.ini

Final_Frame=9
Cyclic_Animation=on
Input_File_Name=ring.pov

File history

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

Date/TimeDimensionsUserComment
current11:12, 24 December 2006180×135 (83 KB)DavidHOzAu ({{Information |Description='''en:''' An example of three rings in a Sonic the Hedgehog game, intended to supersede Image:SonicRing.jpg in terms of illustration quality. NOTICE: This ring is NOT from the real Sonic game, it is a self-made fake image w)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):