POV-Ray : Newsgroups : povray.text.scene-files : Ship with Rocket Flame Server Time
22 Dec 2024 15:03:08 EST (-0500)
  Ship with Rocket Flame (Message 1 to 1 of 1)  
From: John VanSickle
Subject: Ship with Rocket Flame
Date: 20 Feb 2004 20:13:30
Message: <4036B0B8.4767C1BF@hotmail.com>
The scene file which draws the flame is:

#local denT=density { spherical
  density_map {
    [.01 rgb 0][.1 rgb <0,.35,.75> ][.3 rgb 0][.65 rgb <0,.375,.5>][1 rgb 1]
  }
}

    sphere { 0,2 hollow no_shadow
      texture { pigment { rgbt 1 } }
      interior {
        media { emission .2   method 3 intervals 1
          density { denT
            translate  y*Clock*18+1+iI
            scale <2,1,2>
            warp { turbulence .15 lambda 3 }
            scale <.5,1,.5>
            translate -y*Clock*18-1-iI
          }
        }
        media { absorption .2 method 3 intervals 1
          density { denT
            translate  y*Clock*18+1+iI
            scale <2,1,2>
            warp { turbulence .15 lambda 3 }
            scale <.5,1,.5>
            translate -y*Clock*18-1-iI
          }
        }
      }
      scale <1,9*Thrust,1>*(rT-1)
      translate <(yA+yC)/2,-rB-3, (rA+rB)/4>
    }

The variable Clock is the clock variable, but adjusted to compensate for a
precision error I noted in 3.1 (and continued to apply).

The variable Thrust controls the length of the flame.  0 = off, 1 = full
throttle.

Hope you find this helpful,
John


Post a reply to this message

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