|
![](/i/fill.gif) |
"Robert Baer" <rob### [at] localnet com> wrote:
> clipka <ano### [at] anonymous org> wrote:
> > Am 04.01.2011 22:11, schrieb Robert Baer:
> > > 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
> > ...
> >
> > I don't see where you include Tank.INC from Tank.POV.
> >
> > (BTW, it is usually a good idea to place the problem description
> > /before/ any snippets of source code, because it makes it immediately
> > obvious for the reader what your problem actually is, and may give
> > important clues what to keep their eyes peeled for when browsing through
> > the code.)
> THAT has gotta be the problem; i had a different program set that worked, and
> still works despite incorrect library reference in the \renderer\povray.ini (or
> whatever the name is, i forget because i almost never have to hunt for it).
> Thanks.
> Will fix it (on different drive not accessible now).
* * * *
** Inserting that include made it work; thanks!
Then i made some changes and it is worse than before.
Declared variables now do not pass between .ini and .inc; worse a declared
variable gets reset to zero inside the .inc .
// 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 }
#include "Tank.inc" // <----NOTE!! Do not forget!
// Uses "Tank.inc" for subroutines
// Subroutines for making the tank
// * Ubar vars: Ulong , ucolor; internal A, B, C dimensions according to
Speedy Metals
// * Lbar vars: Ulong , ucolor; internal A, B, C dimensions according to
Speedy Metals
// * UpFtBk observer, at left end "Y", top looking to right Y=0
// * UpLfRt observer, at left end "Y", top looking to right Y=0
// * Ttop observer, at left end looking up to right middle of rectangle
#declare PN=3990; // Chosen "U" <--NOTE DEFINED!!!!
#declare Ulong = 48.0; #declare ucolor = Cyan;
// clock 1..9 Make and show tank construction
#if (clock>=1)
light_source {< 0, 50, 0> White*9.5}
light_source {< 0, 10, 20> White*8.5}
light_source {< 0, 10,-20> White*8.5}
camera {
perspective
location < 0.5,49,.1>
look_at < 0.5, 0,.1>
angle 0
}
#declare Ulong = 1.0;
#declare PN=3990; // Chosen "U" <--NOTE DEFINED!!!!
#declare PN=4006; // Frame "U" <--NOTE DEFINED!!!!
object {Ubar} //object {Lbar)
#end
sky_sphere {pigment {rgb <0.859,0.910,0.831>}}
** END FILE
// Tank.INC
// Subroutines for making the tank
// (no longer needed) #declare Deg2Rad = 0.0174532925;
// inside flange surfaces of American Standard channels have approximately a
16-2/3% slope
// In radians, arc tan 1/6 = 0.165148677...
// U-bar end view shape:
//
// __ shoulder: "Shl" diameter is wall thickness at top
// /
// O
// || /--- wall may have angle; crudely shown here
// | \
// | | ____strain relief curve: "Crv" diameter
// | \ /
// | O___________
// | ^
// | | C or web/base thickmess
// +_______________ V
//
#declare PN=4006; // Frame "U" <--NOTE DEFINED!!!!
// U-bar modified with look-up table by product number PN
#declare A=0; #declare B=0; #declare C= 0.; #declare Angle=0; // default zero
aize
#declare Shl=0; #declare Crv=0; // default zero
aize
#debug concat("Start search; PN=", str(B,9,3), "\n")
** SNIP
Debug file "true" (no other name possible) shows that PN=0 !!
Furthermore POVray barfs on undefined variable Ulong in Tank.inc .
How can i fix this?
Post a reply to this message
|
![](/i/fill.gif) |