Descrizioni ed esempi per il raytracer POV-Ray di Friedrich A. Lohmüller
Esempi POV-Ray - Come fare oggetti per POV-Ray
English English English
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorial

  - Esempi per POV-Ray
    Indice generale
  - Geometria
  - Architettura
  - Tecnica
    - Scala a Pioli
    - Piloni e Tralicci
    - Parapetto
    - Ponte
    - Tubi e Tubature
    - Bifucazione di Tubi
    - Rubinetto di Arresto
    - Catena
    - Bobina di filo
    - Torpedo
    - Cruise Missile
    - Razzo, Missile
      - 1. Razzo 1
      - 2. Razzo 2
    - Ruota
    - Camion
    - Elica
    - Aeroplano
    - Canoa
    - Chitarra
    - Display a 7 Segmenti
    - Cavo piatto
    - Fascio di cavi
                                       

rocket

Razzo 2
Esempio per l'uso del comando "union" et "difference".
Oggetti: sphere, cone, prism.
Metodi:  #declare, object, union.

//----- building an engine -------
#declare Engine =
union{
 cone{<0,0,0>,0.5,
      <0,1.5,0>,0.25
        scale<1,1,0.7>
        translate<0,0.5,0>
      texture{Chrome_Metal}}
 prism { -0.01 ,0.01 , 4
        <0.0,0.0>,<0.8,0>,
        <0.0,1.5>,<0.0,0>
        rotate<-90,0,0>
        translate<0,0.5,0>
      texture{pigment{color White }
              finish{ diffuse 0.9
                      phong 1}
             }
 }// end of prism
 difference{
  cone{<0, 0.10,0>,0.28,
       <0,0.50,0>,0.10}
  cone{<0, 0.09,0>,0.17,
       <0,0.49,0>,0.09}
  translate<0.22,0,0>
  texture{Chrome_Metal}}
// all together somewhat excentric!
translate<0.25,0,0>}
//------ building  the rocket -----
#declare Rocket = union{//4 engines
object{Engine rotate<0,  0,0>}
object{Engine rotate<0, 90,0>}
object{Engine rotate<0,180,0>}
object{Engine rotate<0,270,0>}
//----- the body ------------------
cylinder{<0,0,0>,<0,5,0>,0.5
         translate<0,0.5,0>
         texture{
          pigment{color White}
          finish {diffuse 0.9
                  phong 1}}}
// ----- with some details --------
cylinder{<0,0,0>,<0,0.1,0>,0.50
         translate<0,2.0,0>
         texture{Chrome_Metal}}
cylinder{<0,0,0>,<0,0.1,0>,0.50
         translate<0,3.5,0>
         texture{Chrome_Metal}}
cylinder{<0,0,0>,<0,0.1,0>,0.50
         translate<0,5.25,0>
          texture{Chrome_Metal}}
//------- the top part ------------
cone {<0,0,0>,0.5,<0,1.5,0>,0.25
         translate<0,5.5,0>
          texture{Chrome_Metal}}
//--- the nose on top of the rocket
sphere {<0,0,0>,0.25 scale<1,1.5,1>
       translate<0,5.0+1.5+0.5,0>
       texture{Chrome_Metal}}
}//--end of union -----------------

//------------ ready for take off:
object{ Rocket
        rotate<0,0,0>
        translate<0,0,0> }
//----------------------------- end

Cliccare qui per la descrizione di questa scena
per POV-Ray:
"povroc2.txt" o "povroc2.pov"

 
top

© Friedrich A. Lohmüller, 2009
www.f-lohmueller.de