POV-Ray : Newsgroups : povray.general : cannot recognize defined object / help, please : cannot recognize defined object / help, please Server Time
29 Jul 2024 16:30:17 EDT (-0400)
  cannot recognize defined object / help, please  
From: Robert Baer
Date: 4 Jan 2011 16:15:01
Message: <web.4d238cfd4caa94dad0ff068b0@news.povray.org>
Partial copies of files:
//                             Tank.POV
//                    z
//                    |
// y arrow tip------> .-- x

//        NOTE: Change output filename in Tank.INI for output scene name
//              Save change, then run Tank.INI

#include "colors.inc"
#include "metals.inc"
global_settings { adc_bailout 0.05 max_trace_level 9 }

// *** does not see Lbar, Scribe, etc as defined objects...  <<<----HELP!
#declare Ulong = 48.0;  #declare ucolor = Blue;
 object {Lbar)
 object {Scribe  pigment {Cyan} rotate < 0, 0,90>}
**** SNIP
//                             Tank.INC

//      Subroutines for making the tank

#declare Lbar=union {   // width X to right, length Y to viewer, left part of
"L" points to Z
  #declare A = 1/8;  #declare B = 1.0;   #declare C = 1.0; // L-BAR chosen
  //  Generic Lbar dimensions defined above
  difference {
  box { <0,0,0>,<C-A/2,Ulong,B-A/2> pigment {ucolor} } // as box, less rounded
ends
  box { <A,-0.001,A+0.16/2>,<C,Ulong+0.002,C> pigment {ucolor} } // left cut
  box { <A+0.16/2,-0.001,A>,<B,Ulong+0.002,B> pigment {ucolor} } // bottom cut
  object { cylinder {<A+0.16/2,-0.001,A+0.16/2>,
<A+0.16/2,Ulong+0.001,A+0.16/2>,0.16/2} // curve cut
          pigment {ucolor} }
             }
  object { cylinder {<C-A/2,-0.001,A/2>, <C-A/2,Ulong+0.001,A/2>,A/2}    // left
curve
          pigment {ucolor} }
  object {cylinder {<A/2,-0.001,B-A/2>, <A/2,Ulong+0.001,B-A/2>,A/2}    // right
curve
          pigment {ucolor} }
                           }
#declare Scribe= box {<0,4,0>,<0.03,4.03,1.6> } // for checking only
**** SNIP
;                              Tank.INI

;;file_exists("any.junk")  ; creates file named "true"; impossible to rename any
file

Antialias=On
Width=448  ;Width=640   70% for exact fit in Nerd
Height=336 ;Height=480
;Bits_Per_Color=5  HAS NO EFFECT, still 24 bit color 150DPI

Jitter=Off
Sampling_Method=2
Antialias_Threshold=0.3
Antialias_Depth=1

;;Debug_File=true  ; read "true" for results

Input_File_Name="Tank.pov"
Output_to_File=On
Output_File_Type=N   ; N for PNG files which are the smallest

 Initial_Frame=1
 Final_Frame=12
 Initial_Clock=1
 Final_Clock=12

; clock = 1 (Initial_Clock)

;Make sure this is on if your animation loops:
Cyclic_Animation=off
**** END OF COMPLETE COPY OF FILE


Post a reply to this message

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