POV-Ray : Newsgroups : povray.animations : spaceship Server Time
3 Jul 2024 04:54:51 EDT (-0400)
  spaceship (Message 1 to 1 of 1)  
From: Bungledog
Subject: spaceship
Date: 18 Apr 2003 10:28:06
Message: <3ea00b76@news.povray.org>
Hi I have created a flying saucer model and i would like it to shoot out a
laser beam in short blasts.  Any ideas on how i could do this?  the code so
far is as follows.

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

#declare txtramt = (clock/2)*100;
#declare camx = -10*cos(radians(clock*10));
#declare camz = -10*sin(radians(clock*10));

camera {
   location <camx, 0.5, camz>
   up <0, 1, 0>
   look_at <0, 2.0, 0>
}

light_source { <0, 30, 0> color White }
light_source { <0, 0, -1> color White }
light_source { <0, 0, 1> color White }

plane { y, 0
   pigment { color rgbf <0, 0.6, 1, 0.3> }
   finish {
      ambient 0.2
      diffuse 0.8
      reflection 0.3
   }
}

#declare union1 =
torus {

1.5, 1.5
scale <1, 0.2, 1>
pigment {

  marble
  turbulence 1

   color_map {
     [0.0 color Gray90]
     [0.8 color Gray60]
     [1.0 color Gray20]
   }

}
}

object {

  union1
  #if (clock > 5) translate <-clock/2.0, clock/1.5, -clock/3.0>
  #else
    #if (clock = 5) translate <-clock/2.5, clock/2, -clock/3.5>
    #else translate <-clock/3.0, clock/2.5, -clock/4.0>
    #end
  #end
  rotate <0, 30, 0>

}


Cheers
bdog


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.