POV-Ray : Newsgroups : povray.general : HELP: Old Scene Doesn't Render Anymore Server Time
31 Oct 2024 23:28:00 EDT (-0400)
  HELP: Old Scene Doesn't Render Anymore (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: Sven Littkowski
Subject: HELP: Old Scene Doesn't Render Anymore
Date: 23 Feb 2017 11:44:29
Message: <58af116d@news.povray.org>
Hi tried to render an older scene (a spaceship), but it doesn't render
anymore, only an error occurs and I am not able to fix it. Might be,
before I stopped working on that scene i added something that was
faulty, not sure.

Who can help?

--------------------------------

#version 3.6;

#include "colors.inc"
#include "rand.inc"

#declare MyRadiosity = no; // yes

global_settings
{
 assumed_gamma 1.0
 #if(MyRadiosity)
  radiosity
  {
   pretrace_start 0.08
   pretrace_end   0.015
   count 400
   error_bound 0.75
   recursion_limit 1
  }
 #end
}

//#include "SL - Space - Ship - Cargo - Type 001 - Sepaei.inc"


camera
{
 location  < -10000.0, 10000, -10000.0 >
 look_at   < 0.0, 0.0, 0.0 >
}

light_source { < -50000, 50000, -50000 >  White * 1.0 }
/*
sky_sphere
{
 pigment
 {
  planar
  color_map
  {
   [ 0.0 color < 0.0, 0.0, 0.0 > ]
   [ 1.0 color < 0.0, 0.0, 0.0 > ]
  }
 }
}
*/
// Full Hull
#declare Pseudo_Hull = blob
{
 threshold 0.04
 sphere // Upper Hull
 {
  < 0.0, 0.0, 0.0 > 1135.0, 1.0
  scale < 10.0, 1.0, 1.0 >
  translate < 0.0, 750.0, 0.0 >
 }
 sphere // Lower Hull
 {
  < 0.0, 0.0, 0.0 > 1135.0, 1.0
  scale < 10.0, 1.0, 1.0 >
  translate < 0.0, -750.0, 0.0 >
 }
 sphere // Middle Hull
 {
  < 0.0, 0.0, 0.0 > 1135.0, 2.0
  scale < 6.0, 1.75, 1.0 >
 }
 sphere // Flat Disk-Alike Sphere
 {
  < 0.0, 0.0, 0.0 > 1500.0, 1.0
  scale < 2.0, 0.5, 1.0 >
 }
 sphere // Smaller Field-Generator-Carrying Ellipsoid
 {
  < 0.0, 0.0, 0.0 > 1500.0, 1.0
  scale < 1.0, 0.15, 1.25 >
 }
}

// Full Hull
#macro Full_Hull(Showtexture)
 #declare Full_HullObj=blob
 {
  threshold 0.04
  sphere // Upper Hull
  {
   < 0.0, 0.0, 0.0 > 1135.0, 1.0
   scale < 10.0, 1.0, 1.0 >
   translate < 0.0, 750.0, 0.0 >
  }
  sphere // Lower Hull
  {
   < 0.0, 0.0, 0.0 > 1135.0, 1.0
   scale < 10.0, 1.0, 1.0 >
   translate < 0.0, -750.0, 0.0 >
  }
  sphere // Middle Hull
  {
   < 0.0, 0.0, 0.0 > 1135.0, 3.0
   scale < 6.0, 1.75, 1.0 >
  }
  sphere // Flat Disk-Alike Sphere
  {
   < 0.0, 0.0, 0.0 > 1500.0, 1.0
   scale < 2.0, 0.5, 1.0 >
  }
  sphere // Smaller Field-Generator-Carrying Ellipsoid
  {
   < 0.0, 0.0, 0.0 > 1500.0, 1.0
   scale < 1.0, 0.15, 1.25 >
  }
  #declare Random_1 = seed(2); // Plus_X
  #declare Random_2 = seed(7); // Sphere Diameter
  #declare Random_3 = seed(3); // Sphere Height
  #declare Random_4 = seed(9); // Sphere Translate
  #declare Line_X = -6100.0;
  #while (Line_X < -800.0)
   #declare Trace_Start = < Line_X, 0.0, -2000.0 >;
   #declare Trace_Direction = < Line_X, 0.0, 0.0 >;
   #declare Trace_Norm = < 0.0, 0.0, 0.0 >;
   #declare Sphere_Diameter = RRand(75, 150, Random_2);
   #declare Sphere_Y = RRand(0.25, 0.50, Random_3);
   #declare Translate_X = Line_X-1500;
   #declare Translate_Y = RRand(0, 250, Random_4);
   #declare Translate_Z = trace (Pseudo_Hull,
Trace_Start,(Trace_Direction-Trace_Start), Trace_Norm).z+250;
   #declare DarkPower = 0.1;
   sphere // Middle Constructions (-X +Y -Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } // texture { Middle_Constructions }
    translate < Translate_X, Translate_Y, Translate_Z >
   }
   sphere // Middle Constructions (-X +Y +Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } // texture { Middle_Constructions }
    translate < Translate_X, Translate_Y, (-1*Translate_Z) >
   }
   sphere // Middle Constructions (+X +Y -Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } // texture { Middle_Constructions }
    translate < (-1 *Translate_X), Translate_Y, Translate_Z >
   }
   sphere // Middle Constructions (+X +Y -Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } // texture { Middle_Constructions }
    translate <(-1 *Translate_X), Translate_Y, (-1*Translate_Z) >
   }
   sphere // Middle Constructions (-X -Y -Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } // texture { Middle_Constructions }
    translate < Translate_X, (-1*Translate_Y), Translate_Z >
   }
   sphere // Middle Constructions (-X -Y +Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } // texture { Middle_Constructions }
    translate < Translate_X, (-1*Translate_Y), (-1*Translate_Z) >
   }
   sphere // Middle Constructions (+X -Y -Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } // texture { Middle_Constructions }
    translate < (-1 *Translate_X), (-1*Translate_Y), Translate_Z >
   }
   sphere // Middle Constructions (+X -Y -Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } // texture { Middle_Constructions }
    translate <(-1 *Translate_X), (-1*Translate_Y), (-1*Translate_Z) >
   }
   #declare Plus_X = RRand(75, 150, Random_1);
   #declare Line_X = Line_X + Plus_X;
  #end
  #if (Showtexture=yes)
   pigment { color Green } // texture { Hull_pigment { color Green } //
   texture_Side scale 20000.0 translate < -10000.0, 0.0, 0.0 > }
  #end
 }
#end



// Full Hull
#macro Cut_Hull(Showtexture)
 #declare Cut_HullObj = difference
 {
  Full_Hull(Showtexture)
  object { Full_HullObj }
  union
  {
   cylinder
   {
    < -20000.1, 0.0, 0.0 > < -7500.0, 0.0, 0.0 > 2000.0
   }
   cylinder
   {
    < 7500.0, 0.0, 0.0 > < 20000.1, 0.0, 0.0 > 2000.0
   }
   pigment { color Green } // texture { Hull_pigment { color Green } //
texture_Top
   scale 20000.0 translate < -10000.0, 0.0, 0.0 > }
  }
  #declare Trace_Start = < -1000.0, 50.00001, -3000.0 >;
  #declare Trace_Direction = < -1000.0, 50.00001, 0.0 >;
  #declare Trace_Norm = < 0.0, 0.0, 0.0 >;
  #declare Maximum = trace (Full_HullObj,
Trace_Start,Trace_Direction-Trace_Start, Trace_Norm).y - 750.0;
  cylinder
  {
   < 0.0, -50.0, Maximum > < 0.0, 50.0, Maximum > 999.99999
   pigment { color Green } // texture { Inside scale 1.0 translate <
0.0, 0.0, 0.0 > }
  }
  cylinder
  {
   < 0.0, -50.0, (-1 * Maximum) > < 0.0, 50.0, (-1 * Maximum) > 999.99999
   pigment { color Green } // texture { Inside scale 1.0 translate <
0.0, 0.0, 0.0 > }
  }
  cylinder
  {
   < 0.0, -49.99999, Maximum > < 0.0, 50.0, Maximum > 1000.0
   pigment { color Green } // texture { Hull_pigment { color Green } //
texture_Center_Side scale 20000.0 rotate < 90.0, 0.0, 0.0 > }
  }
  cylinder
  {
   < 0.0, -49.99999, (-1 * Maximum) > < 0.0, 50.0, (-1 * Maximum) > 1000.0
   pigment { color Green } // texture { Hull_pigment { color Green } //
texture_Center_Side scale 20000.0 rotate < 90.0, 0.0, 0.0 > }
  }
 }
#end

#declare Up_Low_Hull = difference
{
 // object { Cut_Hull(no) }
 Cut_Hull(no)
 object { Cut_HullObj scale < 1.0, 1.0000000001, 1.0 > }
 box { < -7500.0, -1400.0, -1700.0 > < 7500.0, 1400.0, 1700.0 > }
 pigment { color Green } // texture { Hull_pigment { color Green } //
texture_Top scale 20000.0 translate < -10000.0, 0.0, 0.0 > }
}

#declare Hull_End_Blob = difference
{
 #declare Strength1 = 5.000; //(+ or -) strength of component's
radiating density
 #declare Strength2 = 0.500; //(+ or -) strength of component's
radiating density
 #declare Strength3 = 0.500; //(+ or -) strength of component's
radiating density
 #declare Strength4 = 0.500; //(+ or -) strength of component's
radiating density
 #declare Strength5 = 0.500; //(+ or -) strength of component's
radiating density
 #declare Radius1  = 0.250; //(0 < Radius) outer sphere of influence on
other components
 #declare Radius2  = 0.036; //(0 < Radius) outer sphere of influence on
other components
 #declare Radius3  = 0.037; //(0 < Radius) outer sphere of influence on
other components
 #declare Radius4  = 0.038; //(0 < Radius) outer sphere of influence on
other components
 #declare Radius5  = 0.040; //(0 < Radius) outer sphere of influence on
other components
 #declare Distance1  = -0.000; //(0 < Radius) outer sphere of influence
on other components
 #declare Distance2  = -0.100; //(0 < Radius) outer sphere of influence
on other components
 #declare Distance3  = -0.125; //(0 < Radius) outer sphere of influence
on other components
 #declare Distance4  = -0.140; //(0 < Radius) outer sphere of influence
on other components
 #declare Distance5  = -0.147; //(0 < Radius) outer sphere of influence
on other components
 #declare Height2 = ((Radius1/10)*6.75);
 #declare Height3 = ((Radius1/10)*6.00);
 #declare Height4 = ((Radius1/10)*5.00);
 #declare Height5 = ((Radius1/10)*3.50);

 blob
 {
  threshold 0.6 // threshold (0.0 < threshold <= Strength) surface
falloff threshold #
  cylinder { < Distance1, 0.00, 0.00 >, < 1.00, 0.00, 0.00 >, Radius1,
Strength1}

  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 000.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 018.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 036.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 054.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 072.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 090.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 108.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 126.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 144.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 162.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 180.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 198.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 216.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 234.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 252.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 270.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 288.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 306.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 324.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 342.0, 0.0, 0.0 > }

  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 000.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 018.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 036.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 054.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 072.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 090.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 108.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 126.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 144.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 162.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 180.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 198.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 216.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 234.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 252.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 270.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 288.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 306.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 324.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 342.0+9, 0.0, 0.0 > }

  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 000.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 018.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 036.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 054.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 072.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 090.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 108.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 126.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 144.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 162.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 180.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 198.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 216.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 234.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 252.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 270.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 288.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 306.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 324.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 342.0+0, 0.0, 0.0 > }

  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 000.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 018.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 036.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 054.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 072.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 090.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 108.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 126.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 144.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 162.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 180.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 198.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 216.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 234.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 252.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 270.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 288.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 306.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 324.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 342.0+9, 0.0, 0.0 > }

  scale 10000
  rotate < 0.0, 0.0, 0.0 >
  texture
  {
   pigment{ color rgb < 0.9, 0.9, 0.9 > }
//   finish { phong 1 }
  }
 }
}


// 4x Hull Ends
#declare Hulls_End = union {
   #declare Random_1 = seed(0);
   #declare Random_2 = seed(12345);
   #declare Count = 0;
   #declare Trace_Start = < -7499.99999, 2000.0, 0.0 >;
   #declare Trace_Direction = < -7499.99999, 0.0, 0.0 >;
   #declare Trace_Norm = < 0.0, 0.0, 0.0 >;
   #declare Maximum = trace (Cut_HullObj, Trace_Start,
Trace_Direction-Trace_Start,Trace_Norm).y - 750.0;
   #declare Minimum = 100.0;
   #declare Maximum_Inner = Maximum-Minimum;
   #declare Maximum_Outer = Minimum;
   torus { Maximum-Minimum, Minimum rotate < 0.0, 0.0, 90.0 > }
   cylinder { < -100.0, 0.0, 0.0 > < 0.0, 0.0, 0.0 > Maximum-Minimum }
// #while (Count < 10)
//  #declare Outer=RRand(Minimum, Maximum_Outer, Random_1);
//  #declare Inner=RRand(Minimum, Maximum_Inner, Random_1);
//  #if (Outer+Inner<=Maximum)
//   #declare Count=Count+1;
//  #end
// #end
   pigment { color Green } // texture { Hull_pigment { color Green } //
texture_End scale 20000.0 translate < -10000.0, 0.0, 0.0 > }
}

// 4x Hangar Light bars
#declare Hangar_Light_Bars = union
{
 #declare Thickness = 1.0;
 #declare Axis_X = -1000.0;
 #while (Axis_X < 1000.0)
  #declare Trace_Norm = < 0.0, 0.0, 0.0 >;
  #declare Trace1_Start = < Axis_X, 50.00001, -3000.0 >;
  #declare Trace1_Direction = < Axis_X, 50.00001, 0.0 >;
  #declare Axis_Z1 = trace (Cut_HullObj,
Trace1_Start,Trace1_Direction-Trace1_Start, Trace_Norm).z;
  #declare Trace2_Start = < (Axis_X+10.0), 50.00001, -3000.0 >;
  #declare Trace2_Direction = < (Axis_X+10.0), 50.00001, 0.0 >;
  #declare Axis_Z2 = trace (Cut_HullObj,
Trace2_Start,Trace2_Direction-Trace2_Start, Trace_Norm).z;

  sphere { < Axis_X, 50.0, Axis_Z1 > Thickness }
  cylinder { < Axis_X, 50.0, Axis_Z1 > < (Axis_X+10.0), 50.0, Axis_Z2 >
Thickness }
  sphere { < Axis_X, -50.0, Axis_Z1 > Thickness }
  cylinder { < Axis_X, -50.0, Axis_Z1 > < (Axis_X+10.0), -50.0, Axis_Z2
> Thickness }

  sphere { < Axis_X, 50.0, (-1 * Axis_Z1) > Thickness }
  cylinder { < Axis_X, 50.0, (-1 * Axis_Z1) > < (Axis_X+10.0), 50.0, (-1
* Axis_Z2) > Thickness }
  sphere { < Axis_X, -50.0, (-1 * Axis_Z1) > Thickness }
  cylinder { < Axis_X, -50.0, (-1 * Axis_Z1) > < (Axis_X+10.0), -50.0,
(-1 * Axis_Z2) > Thickness }

  #declare Axis_X = Axis_X + 10.0;
 #end
 #declare Trace2_Start = < (Axis_X+10.0), 50.00001, -3000.0 >;
 #declare Trace2_Direction = < (Axis_X+10.0), 50.00001, 0.0 >;
 #declare Axis_Z2 = trace (Cut_HullObj,
Trace2_Start,Trace2_Direction-Trace2_Start, Trace_Norm).z;
 sphere { < (Axis_X+10.0), 50.0, Axis_Z2 > Thickness }
 sphere { < (Axis_X+10.0), -50.0, Axis_Z2 > Thickness }
 sphere { < (Axis_X+10.0), 50.0, (-1 * Axis_Z2) > Thickness }
 sphere { < (Axis_X+10.0), -50.0, (-1 * Axis_Z2) > Thickness }
 pigment { color Green } // texture { Hangar_Light_Stripe }
}

#declare Ship = union
{
// object
// {
  Cut_Hull(yes)
// }
/* object
 {
  Up_Low_Hull
 } */
 object
 {
  Hulls_End
  translate < -7500.0, 750.0, 0.0 >
 }
 object
 {
  Hulls_End
  translate < 7500.0, 750.0, 0.0 >
 }
 object
 {
  Hulls_End
  translate < -7500.0, -750.0, 0.0 >
 }
 object
 {
  Hulls_End
  translate < 7500.0, -750.0, 0.0 >
 }
 object
 {
  Hangar_Light_Bars
 }
}

union
{
 object
 {
  Ship
 }
}


Post a reply to this message

From: Stephen
Subject: Re: HELP: Old Scene Doesn't Render Anymore
Date: 23 Feb 2017 11:57:46
Message: <58af148a$1@news.povray.org>
On 2/23/2017 4:44 PM, Sven Littkowski wrote:
> Hi tried to render an older scene (a spaceship), but it doesn't render
> anymore, only an error occurs and I am not able to fix it. Might be,
> before I stopped working on that scene i added something that was
> faulty, not sure.
>
> Who can help?

You have not declared texture_Top

-- 

Regards
     Stephen


Post a reply to this message

From: Sven Littkowski
Subject: Re: HELP: Old Scene Doesn't Render Anymore
Date: 23 Feb 2017 12:41:43
Message: <58af1ed7$1@news.povray.org>
Yes, that is correct, but this is a step to do for later. At the moment,
all "texture_Top" are commented out with "//".

The error must be something else.




On 23.02.2017 11:57, Stephen wrote:
> On 2/23/2017 4:44 PM, Sven Littkowski wrote:
>> Hi tried to render an older scene (a spaceship), but it doesn't render
>> anymore, only an error occurs and I am not able to fix it. Might be,
>> before I stopped working on that scene i added something that was
>> faulty, not sure.
>>
>> Who can help?
> 
> You have not declared texture_Top
>


Post a reply to this message

From: Stephen
Subject: Re: HELP: Old Scene Doesn't Render Anymore
Date: 23 Feb 2017 12:47:41
Message: <58af203d$1@news.povray.org>
This is the error I get when I run the text you posted

"C:\Users\Stephen\Documents\Graphics\Blender 
Test\Models\Output\Comparison\wax.pov" line 213: Parse Error: No 
matching } in 'union', undeclared identifier 'texture_Top'



On 2/23/2017 5:41 PM, Sven Littkowski wrote:
> Yes, that is correct, but this is a step to do for later. At the moment,
> all "texture_Top" are commented out with "//".
>
> The error must be something else.
>
>
>
>
> On 23.02.2017 11:57, Stephen wrote:
>> On 2/23/2017 4:44 PM, Sven Littkowski wrote:
>>> Hi tried to render an older scene (a spaceship), but it doesn't render
>>> anymore, only an error occurs and I am not able to fix it. Might be,
>>> before I stopped working on that scene i added something that was
>>> faulty, not sure.
>>>
>>> Who can help?
>>
>> You have not declared texture_Top
>>


-- 

Regards
     Stephen


Post a reply to this message

From: omniverse
Subject: Re: HELP: Old Scene Doesn't Render Anymore
Date: 23 Feb 2017 16:00:00
Message: <web.58af4c55bc0a90569c5d6c810@news.povray.org>
Sven Littkowski <jam### [at] yahoocom> wrote:
> Yes, that is correct, but this is a step to do for later. At the moment,
> all "texture_Top" are commented out with "//".
>
> The error must be something else.

After I corrected for all comment lines, because of how your message text is
wrapped here at the newsgroups, I was able to render the SDL without errors.

By using /* comment line */ you could avoid that, otherwise it's impossible to
know where a long commented text ends.

And I also commented out the unnecessary difference {} for Hull_End_Blob, and
the union {} around object{Ship} so there wouldn't be any soft errors.

Although the actual rendered image appears to be only 4 green disk shapes and a
scatter of specks between them, I'm guessing there might still be something
wrong. Since your include isn't available I wasn't sure but just from looking at
what's there of the SDL already I don't know why more isn't showing in the
image. I didn't try to find out (yet).

Bob


Post a reply to this message

From: Sven Littkowski
Subject: Re: HELP: Old Scene Doesn't Render Anymore
Date: 23 Feb 2017 21:43:06
Message: <58af9dba@news.povray.org>
Hmmm, it actually should look more like this older scene image. Seems, I
had added some faulty or unfinished lines before I rested this project,
years ago.

Let me do on my side what you all describe here, and feedback with an
update later on.




On 23.02.2017 15:55, omniverse wrote:
> Sven Littkowski <jam### [at] yahoocom> wrote:
>> Yes, that is correct, but this is a step to do for later. At the moment,
>> all "texture_Top" are commented out with "//".
>>
>> The error must be something else.
> 
> After I corrected for all comment lines, because of how your message text is
> wrapped here at the newsgroups, I was able to render the SDL without errors.
> 
> By using /* comment line */ you could avoid that, otherwise it's impossible to
> know where a long commented text ends.
> 
> And I also commented out the unnecessary difference {} for Hull_End_Blob, and
> the union {} around object{Ship} so there wouldn't be any soft errors.
> 
> Although the actual rendered image appears to be only 4 green disk shapes and a
> scatter of specks between them, I'm guessing there might still be something
> wrong. Since your include isn't available I wasn't sure but just from looking at
> what's there of the SDL already I don't know why more isn't showing in the
> image. I didn't try to find out (yet).
> 
> Bob
> 
> 
>


Post a reply to this message


Attachments:
Download 'space - ship - cargo - type 001 - sepaei.png' (102 KB)

Preview of image 'space - ship - cargo - type 001 - sepaei.png'
space - ship - cargo - type 001 - sepaei.png


 

From: Sven Littkowski
Subject: Re: HELP: Old Scene Doesn't Render Anymore
Date: 25 Feb 2017 18:51:08
Message: <58b2186c$1@news.povray.org>
Hi,

it seems I don't get the success you got with my scene. Maybe I am not
eating the right vitamins, but I still get errors. Or I am losing my
POV-Ray skills...

Can you show me the successfully rendering scene code, or at least the
resulting image? Thanks.






On 23.02.2017 15:55, omniverse wrote:
> Sven Littkowski <jam### [at] yahoocom> wrote:
>> Yes, that is correct, but this is a step to do for later. At the moment,
>> all "texture_Top" are commented out with "//".
>>
>> The error must be something else.
> 
> After I corrected for all comment lines, because of how your message text is
> wrapped here at the newsgroups, I was able to render the SDL without errors.
> 
> By using /* comment line */ you could avoid that, otherwise it's impossible to
> know where a long commented text ends.
> 
> And I also commented out the unnecessary difference {} for Hull_End_Blob, and
> the union {} around object{Ship} so there wouldn't be any soft errors.
> 
> Although the actual rendered image appears to be only 4 green disk shapes and a
> scatter of specks between them, I'm guessing there might still be something
> wrong. Since your include isn't available I wasn't sure but just from looking at
> what's there of the SDL already I don't know why more isn't showing in the
> image. I didn't try to find out (yet).
> 
> Bob
> 
> 
>


Post a reply to this message

From: Sven Littkowski
Subject: Re: HELP: Old Scene Doesn't Render Anymore
Date: 25 Feb 2017 19:03:21
Message: <58b21b49$1@news.povray.org>
I think, the error lies within my TRACE command somewhere.






On 23.02.2017 15:55, omniverse wrote:
> Sven Littkowski <jam### [at] yahoocom> wrote:
>> Yes, that is correct, but this is a step to do for later. At the moment,
>> all "texture_Top" are commented out with "//".
>>
>> The error must be something else.
> 
> After I corrected for all comment lines, because of how your message text is
> wrapped here at the newsgroups, I was able to render the SDL without errors.
> 
> By using /* comment line */ you could avoid that, otherwise it's impossible to
> know where a long commented text ends.
> 
> And I also commented out the unnecessary difference {} for Hull_End_Blob, and
> the union {} around object{Ship} so there wouldn't be any soft errors.
> 
> Although the actual rendered image appears to be only 4 green disk shapes and a
> scatter of specks between them, I'm guessing there might still be something
> wrong. Since your include isn't available I wasn't sure but just from looking at
> what's there of the SDL already I don't know why more isn't showing in the
> image. I didn't try to find out (yet).
> 
> Bob
> 
> 
>


Post a reply to this message

From: omniverse
Subject: Re: HELP: Old Scene Doesn't Render Anymore
Date: 25 Feb 2017 19:35:00
Message: <web.58b221eebc0a90569c5d6c810@news.povray.org>
Sven Littkowski <jam### [at] yahoocom> wrote:
>
> Can you show me the successfully rendering scene code, or at least the
> resulting image? Thanks.

Okay, if you can select all of this (except these words) and copy as it is there
shouldn't be any errors. Although only 2 green bar-like objects get rendered.
I only commented out lines of SDL. I still don't know what the other parts are
about, nothing else seems to show.

/* ERRORLESS */

#version 3.6;

#include "colors.inc"
#include "rand.inc"

#declare MyRadiosity = no; // yes

global_settings
{
 assumed_gamma 1.0
 #if(MyRadiosity)
  radiosity
  {
   pretrace_start 0.08
   pretrace_end   0.015
   count 400
   error_bound 0.75
   recursion_limit 1
  }
 #end
}

/* #include "SL - Space - Ship - Cargo - Type 001 - Sepaei.inc" */

background{rgb 0.5}

camera
{
 location  < -10000.0, 10000, -10000.0 >
 look_at   < 0.0, 0.0, 0.0 >
}

light_source { < -50000, 50000, -50000 >  White * 1.0 }
/*
sky_sphere
{
 pigment
 {
  planar
  color_map
  {
   [ 0.0 color < 0.0, 0.0, 0.0 > ]
   [ 1.0 color < 0.0, 0.0, 0.0 > ]
  }
 }
}
*/
// Full Hull
#declare Pseudo_Hull = blob
{
 threshold 0.04
 sphere // Upper Hull
 {
  < 0.0, 0.0, 0.0 > 1135.0, 1.0
  scale < 10.0, 1.0, 1.0 >
  translate < 0.0, 750.0, 0.0 >
 }
 sphere // Lower Hull
 {
  < 0.0, 0.0, 0.0 > 1135.0, 1.0
  scale < 10.0, 1.0, 1.0 >
  translate < 0.0, -750.0, 0.0 >
 }
 sphere // Middle Hull
 {
  < 0.0, 0.0, 0.0 > 1135.0, 2.0
  scale < 6.0, 1.75, 1.0 >
 }
 sphere // Flat Disk-Alike Sphere
 {
  < 0.0, 0.0, 0.0 > 1500.0, 1.0
  scale < 2.0, 0.5, 1.0 >
 }
 sphere /* Smaller Field-Generator-Carrying Ellipsoid */
 {
  < 0.0, 0.0, 0.0 > 1500.0, 1.0
  scale < 1.0, 0.15, 1.25 >
 }
}

// Full Hull
#macro Full_Hull(Showtexture)
 #declare Full_HullObj=blob
 {
  threshold 0.04
  sphere // Upper Hull
  {
   < 0.0, 0.0, 0.0 > 1135.0, 1.0
   scale < 10.0, 1.0, 1.0 >
   translate < 0.0, 750.0, 0.0 >
  }
  sphere // Lower Hull
  {
   < 0.0, 0.0, 0.0 > 1135.0, 1.0
   scale < 10.0, 1.0, 1.0 >
   translate < 0.0, -750.0, 0.0 >
  }
  sphere // Middle Hull
  {
   < 0.0, 0.0, 0.0 > 1135.0, 3.0
   scale < 6.0, 1.75, 1.0 >
  }
  sphere // Flat Disk-Alike Sphere
  {
   < 0.0, 0.0, 0.0 > 1500.0, 1.0
   scale < 2.0, 0.5, 1.0 >
  }
  sphere /* Smaller Field-Generator-Carrying Ellipsoid */
  {
   < 0.0, 0.0, 0.0 > 1500.0, 1.0
   scale < 1.0, 0.15, 1.25 >
  }
  #declare Random_1 = seed(2); // Plus_X
  #declare Random_2 = seed(7); // Sphere Diameter
  #declare Random_3 = seed(3); // Sphere Height
  #declare Random_4 = seed(9); // Sphere Translate
  #declare Line_X = -6100.0;
  #while (Line_X < -800.0)
   #declare Trace_Start = < Line_X, 0.0, -2000.0 >;
   #declare Trace_Direction = < Line_X, 0.0, 0.0 >;
   #declare Trace_Norm = < 0.0, 0.0, 0.0 >;
   #declare Sphere_Diameter = RRand(75, 150, Random_2);
   #declare Sphere_Y = RRand(0.25, 0.50, Random_3);
   #declare Translate_X = Line_X-1500;
   #declare Translate_Y = RRand(0, 250, Random_4);
   #declare Translate_Z = trace (Pseudo_Hull,
Trace_Start,(Trace_Direction-Trace_Start), Trace_Norm).z+250;
   #declare DarkPower = 0.1;
   sphere // Middle Constructions (-X +Y -Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } /* texture { Middle_Constructions } */
    translate < Translate_X, Translate_Y, Translate_Z >
   }
   sphere // Middle Constructions (-X +Y +Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } /* texture { Middle_Constructions } */
    translate < Translate_X, Translate_Y, (-1*Translate_Z) >
   }
   sphere // Middle Constructions (+X +Y -Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } /* texture { Middle_Constructions } */
    translate < (-1 *Translate_X), Translate_Y, Translate_Z >
   }
   sphere // Middle Constructions (+X +Y -Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } /* texture { Middle_Constructions } */
    translate <(-1 *Translate_X), Translate_Y, (-1*Translate_Z) >
   }
   sphere // Middle Constructions (-X -Y -Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } /* texture { Middle_Constructions } */
    translate < Translate_X, (-1*Translate_Y), Translate_Z >
   }
   sphere // Middle Constructions (-X -Y +Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } /* texture { Middle_Constructions } */
    translate < Translate_X, (-1*Translate_Y), (-1*Translate_Z) >
   }
   sphere // Middle Constructions (+X -Y -Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } /* texture { Middle_Constructions } */
    translate < (-1 *Translate_X), (-1*Translate_Y), Translate_Z >
   }
   sphere // Middle Constructions (+X -Y -Z)
   {
    < 0.0, 0.0, 0.0 > Sphere_Diameter, DarkPower
    scale < 1.0, Sphere_Y, 1.25 >
    pigment { color Green } /* texture { Middle_Constructions } */
    translate <(-1 *Translate_X), (-1*Translate_Y), (-1*Translate_Z) >
   }
   #declare Plus_X = RRand(75, 150, Random_1);
   #declare Line_X = Line_X + Plus_X;
  #end
  #if (Showtexture=yes)
   pigment { color Green } /* texture { Hull_pigment { color Green } //
texture_Side scale 20000.0 translate < -10000.0, 0.0, 0.0 > } */
  #end
 }
#end



// Full Hull
#macro Cut_Hull(Showtexture)
 #declare Cut_HullObj = difference
 {
  Full_Hull(Showtexture)
  object { Full_HullObj }
  union
  {
   cylinder
   {
    < -20000.1, 0.0, 0.0 > < -7500.0, 0.0, 0.0 > 2000.0
   }
   cylinder
   {
    < 7500.0, 0.0, 0.0 > < 20000.1, 0.0, 0.0 > 2000.0
   }
   pigment { color Green } /* texture { Hull_pigment { color Green }
//texture_Top scale 20000.0 translate < -10000.0, 0.0, 0.0 > } */
  }
  #declare Trace_Start = < -1000.0, 50.00001, -3000.0 >;
  #declare Trace_Direction = < -1000.0, 50.00001, 0.0 >;
  #declare Trace_Norm = < 0.0, 0.0, 0.0 >;
  #declare Maximum = trace
(Full_HullObj,Trace_Start,Trace_Direction-Trace_Start, Trace_Norm).y - 750.0;
  cylinder
  {
   < 0.0, -50.0, Maximum > < 0.0, 50.0, Maximum > 999.99999
   pigment { color Green } /* texture { Inside scale 1.0 translate <0.0, 0.0,
0.0 > } */
  }
  cylinder
  {
   < 0.0, -50.0, (-1 * Maximum) > < 0.0, 50.0, (-1 * Maximum) > 999.99999
   pigment { color Green } /* texture { Inside scale 1.0 translate <0.0, 0.0,
0.0 > } */
  }
  cylinder
  {
   < 0.0, -49.99999, Maximum > < 0.0, 50.0, Maximum > 1000.0
   pigment { color Green } /* texture { Hull_pigment { color Green }
//texture_Center_Side scale 20000.0 rotate < 90.0, 0.0, 0.0 > } */
  }
  cylinder
  {
   < 0.0, -49.99999, (-1 * Maximum) > < 0.0, 50.0, (-1 * Maximum) > 1000.0
   pigment { color Green } /* texture { Hull_pigment { color Green }
//texture_Center_Side scale 20000.0 rotate < 90.0, 0.0, 0.0 > } */
  }
 }
#end // macro

#declare Up_Low_Hull = difference
{
 // object { Cut_Hull(no) }
 Cut_Hull(no)
 object { Cut_HullObj scale < 1.0, 1.0000000001, 1.0 > }
 box { < -7500.0, -1400.0, -1700.0 > < 7500.0, 1400.0, 1700.0 > }
 pigment { color Green } /* texture { Hull_pigment { color Green } //texture_Top
scale 20000.0 translate < -10000.0, 0.0, 0.0 > } */
}

#declare Hull_End_Blob = //difference
//{
 #declare Strength1 = 5.000; /*(+ or -) strength of component's radiating
density*/
 #declare Strength2 = 0.500; /*(+ or -) strength of component's radiating
density*/
 #declare Strength3 = 0.500; /*(+ or -) strength of component's radiating
density*/
 #declare Strength4 = 0.500; /*(+ or -) strength of component's radiating
density*/
 #declare Strength5 = 0.500; /*(+ or -) strength of component's radiating
density*/
 #declare Radius1  = 0.250; /*(0 < Radius) outer sphere of influence on other
components*/
 #declare Radius2  = 0.036; /*(0 < Radius) outer sphere of influence on other
components*/
 #declare Radius3  = 0.037; /*(0 < Radius) outer sphere of influence on other
components*/
 #declare Radius4  = 0.038; /*(0 < Radius) outer sphere of influence on other
components*/
 #declare Radius5  = 0.040; /*(0 < Radius) outer sphere of influence on other
components*/
 #declare Distance1  = -0.000; /*(0 < Radius) outer sphere of influence on other
components*/
 #declare Distance2  = -0.100; /*(0 < Radius) outer sphere of influence on other
components*/
 #declare Distance3  = -0.125; /*(0 < Radius) outer sphere of influence on other
components*/
 #declare Distance4  = -0.140; /*(0 < Radius) outer sphere of influence on other
components*/
 #declare Distance5  = -0.147; /*(0 < Radius) outer sphere of influence on other
components*/
 #declare Height2 = ((Radius1/10)*6.75);
 #declare Height3 = ((Radius1/10)*6.00);
 #declare Height4 = ((Radius1/10)*5.00);
 #declare Height5 = ((Radius1/10)*3.50);

 blob
 {
  threshold 0.6 /* threshold (0.0 < threshold <= Strength) surface falloff
threshold # */
  cylinder { < Distance1, 0.00, 0.00 >, < 1.00, 0.00, 0.00 >, Radius1,
Strength1}

  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 000.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 018.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 036.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 054.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 072.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 090.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 108.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 126.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 144.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 162.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 180.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 198.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 216.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 234.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 252.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 270.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 288.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 306.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 324.0, 0.0, 0.0 > }
  cylinder { < Distance2, Height2, 0.00 >, < 0.00, Height2, 0.00 >,
Radius2, Strength2 rotate < 342.0, 0.0, 0.0 > }

  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 000.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 018.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 036.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 054.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 072.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 090.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 108.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 126.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 144.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 162.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 180.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 198.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 216.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 234.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 252.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 270.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 288.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 306.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 324.0+9, 0.0, 0.0 > }
  cylinder { < Distance3, Height3, 0.00 >, < 0.00, Height3, 0.00 >,
Radius3, Strength3 rotate < 342.0+9, 0.0, 0.0 > }

  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 000.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 018.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 036.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 054.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 072.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 090.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 108.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 126.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 144.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 162.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 180.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 198.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 216.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 234.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 252.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 270.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 288.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 306.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 324.0+0, 0.0, 0.0 > }
  cylinder { < Distance4, Height4, 0.00 >, < 0.00, Height4, 0.00 >,
Radius4, Strength4 rotate < 342.0+0, 0.0, 0.0 > }

  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 000.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 018.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 036.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 054.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 072.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 090.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 108.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 126.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 144.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 162.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 180.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 198.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 216.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 234.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 252.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 270.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 288.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 306.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 324.0+9, 0.0, 0.0 > }
  cylinder { < Distance5, Height5, 0.00 >, < 0.00, Height5, 0.00 >,
Radius5, Strength5 rotate < 342.0+9, 0.0, 0.0 > }

  scale 10000
  rotate < 0.0, 0.0, 0.0 >
  texture
  {
   pigment{ color rgb < 0.9, 0.9, 0.9 > }
//   finish { phong 1 }
  }
 }
//} // end difference


// 4x Hull Ends
#declare Hulls_End = union {
   #declare Random_1 = seed(0);
   #declare Random_2 = seed(12345);
   #declare Count = 0;
   #declare Trace_Start = < -7499.99999, 2000.0, 0.0 >;
   #declare Trace_Direction = < -7499.99999, 0.0, 0.0 >;
   #declare Trace_Norm = < 0.0, 0.0, 0.0 >;
   #declare Maximum = trace (Cut_HullObj, Trace_Start,
Trace_Direction-Trace_Start,Trace_Norm).y - 750.0;
   #declare Minimum = 100.0;
   #declare Maximum_Inner = Maximum-Minimum;
   #declare Maximum_Outer = Minimum;
   torus { Maximum-Minimum, Minimum rotate < 0.0, 0.0, 90.0 > }
   cylinder { < -100.0, 0.0, 0.0 > < 0.0, 0.0, 0.0 > Maximum-Minimum }
   /*
 #while (Count < 10)
  #declare Outer=RRand(Minimum, Maximum_Outer, Random_1);
  #declare Inner=RRand(Minimum, Maximum_Inner, Random_1);
  #if (Outer+Inner<=Maximum)
   #declare Count=Count+1;
  #end
 #end
 */
   pigment { color Green } /* texture { Hull_pigment { color Green }
//texture_End scale 20000.0 translate < -10000.0, 0.0, 0.0 > } */
}

// 4x Hangar Light bars
#declare Hangar_Light_Bars = union
{
 #declare Thickness = 1.0;
 #declare Axis_X = -1000.0;
 #while (Axis_X < 1000.0)
  #declare Trace_Norm = < 0.0, 0.0, 0.0 >;
  #declare Trace1_Start = < Axis_X, 50.00001, -3000.0 >;
  #declare Trace1_Direction = < Axis_X, 50.00001, 0.0 >;
  #declare Axis_Z1 = trace (Cut_HullObj,
Trace1_Start,Trace1_Direction-Trace1_Start, Trace_Norm).z;
  #declare Trace2_Start = < (Axis_X+10.0), 50.00001, -3000.0 >;
  #declare Trace2_Direction = < (Axis_X+10.0), 50.00001, 0.0 >;
  #declare Axis_Z2 = trace (Cut_HullObj,
Trace2_Start,Trace2_Direction-Trace2_Start, Trace_Norm).z;

  sphere { < Axis_X, 50.0, Axis_Z1 > Thickness }
  cylinder { < Axis_X, 50.0, Axis_Z1 > < (Axis_X+10.0), 50.0, Axis_Z2 >
Thickness }
  sphere { < Axis_X, -50.0, Axis_Z1 > Thickness }
  cylinder { < Axis_X, -50.0, Axis_Z1 > < (Axis_X+10.0), -50.0, Axis_Z2 >
Thickness }

  sphere { < Axis_X, 50.0, (-1 * Axis_Z1) > Thickness }
  cylinder { < Axis_X, 50.0, (-1 * Axis_Z1) > < (Axis_X+10.0), 50.0, (-1 *
Axis_Z2) > Thickness }
  sphere { < Axis_X, -50.0, (-1 * Axis_Z1) > Thickness }
  cylinder { < Axis_X, -50.0, (-1 * Axis_Z1) > < (Axis_X+10.0), -50.0, (-1 *
Axis_Z2) > Thickness }

  #declare Axis_X = Axis_X + 10.0;
 #end
 #declare Trace2_Start = < (Axis_X+10.0), 50.00001, -3000.0 >;
 #declare Trace2_Direction = < (Axis_X+10.0), 50.00001, 0.0 >;
 #declare Axis_Z2 = trace (Cut_HullObj,
Trace2_Start,Trace2_Direction-Trace2_Start, Trace_Norm).z;
 sphere { < (Axis_X+10.0), 50.0, Axis_Z2 > Thickness }
 sphere { < (Axis_X+10.0), -50.0, Axis_Z2 > Thickness }
 sphere { < (Axis_X+10.0), 50.0, (-1 * Axis_Z2) > Thickness }
 sphere { < (Axis_X+10.0), -50.0, (-1 * Axis_Z2) > Thickness }
 pigment { color Green } /* texture { Hangar_Light_Stripe } */
}

#declare Ship = union
{
// object
// {
  Cut_Hull(yes)
// }
 object
 {
  Up_Low_Hull
 }
 object
 {
  Hulls_End
  translate < -7500.0, 750.0, 0.0 >
 }
 object
 {
  Hulls_End
  translate < 7500.0, 750.0, 0.0 >
 }
 object
 {
  Hulls_End
  translate < -7500.0, -750.0, 0.0 >
 }
 object
 {
  Hulls_End
  translate < 7500.0, -750.0, 0.0 >
 }
 object
 {
  Hangar_Light_Bars
 }
}

//union
//{
 object
 {
  Ship
 }
//}


Post a reply to this message

From: clipka
Subject: Re: HELP: Old Scene Doesn't Render Anymore
Date: 26 Feb 2017 06:24:00
Message: <58b2bad0$1@news.povray.org>
Am 26.02.2017 um 01:03 schrieb Sven Littkowski:
> I think, the error lies within my TRACE command somewhere.

Maybe. You're using:

    trace (Pseudo_Hull, Trace_Start,
           (Trace_Direction-Trace_Start),
           Trace_Norm).z+250;

Presuming that Trace_Direction is indeed supposed to be a direction (as
opposed to a location), then it should instead be:

    trace (Pseudo_Hull, Trace_Start,
           Trace_Direction,
           Trace_Norm).z+250;

(If however Trace_Direction is supposed to be a location after all, then
disregard this post.)


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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