POV-Ray : Newsgroups : povray.windows : rendering problems eagle 3d and pov ray Server Time
28 Apr 2024 17:20:31 EDT (-0400)
  rendering problems eagle 3d and pov ray (Message 25 to 34 of 34)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: SIRS Tech
Subject: Re: rendering problems eagle 3d and pov ray
Date: 2 Jul 2009 19:15:01
Message: <web.4a4d3ebb4868867f614c3f500@news.povray.org>
Alain <aze### [at] qwertyorg> wrote:

> > #local txt = text{handelgo_font ,value,40,0 scale<diam/3,diam/3,diam/3>
> > translate<-diam/1.5,diam,-20>}
> >
> > "C:\Documents and Settings\user\My Documents\POV-Ray\v3.7\include\cap.inc" line
> > 30: Parse Error: Expected
> > 'ttf', undeclared identifier 'handelgo_font' found instead
> > ----------------------------------------------------------------------------
> >
> > I so hate this error lol. What should it read?
> >
> >
> >
> >
>
> A reminder:
>
> You should take the habit of ALWAYS starting all your user defined
> variables by an UPPERCASE letter.
>
>
>
> Alain

yeah I forgot to rewrite it and save, I've been using the uppercase when I
rewrite things. I've just got 2 problems, lack of understanding of the language
and poor trouble shooting the language to fix errors. like for example the
newest error,

object{ intersection{ object{txt} object{cap} } translate <0,0,-0.05>
pigment{tcolour} }

"C:\Documents and Settings\user\My Documents\POV-Ray\v3.7\include\cap.inc" line
34: Parse Error: Expected 'object', undeclared identifier 'txt' found instead

I would assume the txt is supposed to be the name of an object, similar to the
object{cap}, since it seems to be asking for an object, rather then text.
Chances are I'm way off though.

On another note, where did all you wonderful and helpful people learn this
stuff?


Post a reply to this message

From: StephenS
Subject: Re: rendering problems eagle 3d and pov ray
Date: 2 Jul 2009 19:35:01
Message: <web.4a4d436e4868867faafcde230@news.povray.org>
"SIRS Tech" <Gre### [at] yahoocom> wrote:
> Alain <aze### [at] qwertyorg> wrote:

> > > #local txt = text{handelgo_font ,value,40,0 scale<diam/3,diam/3,diam/3>
> > > translate<-diam/1.5,diam,-20>}
> > >
> > > "C:\Documents and Settings\user\My Documents\POV-Ray\v3.7\include\cap.inc" line
> > > 30: Parse Error: Expected
> > > 'ttf', undeclared identifier 'handelgo_font' found instead
....
> I've been using the uppercase when I
> rewrite things.
....
Be carefull when renameing, something may need to refer to the name later :-)

> object{ intersection{ object{txt} object{cap} } translate <0,0,-0.05>
> pigment{tcolour} }
>
> "C:\Documents and Settings\user\My Documents\POV-Ray\v3.7\include\cap.inc" line
> 34: Parse Error: Expected 'object', undeclared identifier 'txt' found instead
>
> I would assume the txt is supposed to be the name of an object,
....
txt was the declared name of a text object in line 30, see above. If you renamed
it, you'll need to rename this one to.
object{ intersection{ object{Txt}.... or whatever you used.


Post a reply to this message

From: SIRS Tech
Subject: Re: rendering problems eagle 3d and pov ray
Date: 2 Jul 2009 20:00:00
Message: <web.4a4d49094868867f614c3f500@news.povray.org>
"StephenS" <nomail@nomail> wrote:
> "SIRS Tech" <Gre### [at] yahoocom> wrote:
> > Alain <aze### [at] qwertyorg> wrote:

> > > > #local txt = text{handelgo_font ,value,40,0 scale<diam/3,diam/3,diam/3>
> > > > translate<-diam/1.5,diam,-20>}
> > > >
> > > > "C:\Documents and Settings\user\My Documents\POV-Ray\v3.7\include\cap.inc"
line
> > > > 30: Parse Error: Expected
> > > > 'ttf', undeclared identifier 'handelgo_font' found instead
> ....
> > I've been using the uppercase when I
> > rewrite things.
> ....
> Be carefull when renameing, something may need to refer to the name later :-)
>
> > object{ intersection{ object{txt} object{cap} } translate <0,0,-0.05>
> > pigment{tcolour} }
> >
> > "C:\Documents and Settings\user\My Documents\POV-Ray\v3.7\include\cap.inc" line
> > 34: Parse Error: Expected 'object', undeclared identifier 'txt' found instead
> >
> > I would assume the txt is supposed to be the name of an object,
> ....
> txt was the declared name of a text object in line 30, see above. If you renamed
> it, you'll need to rename this one to.
> object{ intersection{ object{Txt}.... or whatever you used.

line 30   #local Txt = text{ttf "handelgo.ttf",value,40,0
scale<diam/3,diam/3,diam/3> translate<-diam/1.5,diam,-20>}

line 34 object{ intersection{ object{txt} object{cap} } translate <0,0,-0.05>
pigment{tcolour} }

so basically I need to copy the handlego.ttf and place it in the txt location?


Post a reply to this message

From: StephenS
Subject: Re: rendering problems eagle 3d and pov ray
Date: 2 Jul 2009 20:05:00
Message: <web.4a4d4b074868867faafcde230@news.povray.org>
"SIRS Tech" <Gre### [at] yahoocom> wrote:
....
> line 30   #local Txt = text{ttf "handelgo.ttf",value,40,0
> scale<diam/3,diam/3,diam/3> translate<-diam/1.5,diam,-20>}
>
> line 34 object{ intersection{ object{txt} object{cap} } translate <0,0,-0.05>
> pigment{tcolour} }
>
> so basically I need to copy the handlego.ttf and place it in the txt location?

No, you need to change "object{txt}" in line 34 to "object{Txt}" to match up
with the name you used in line 30.

Stephen S


Post a reply to this message

From: SIRS Tech
Subject: Re: rendering problems eagle 3d and pov ray
Date: 2 Jul 2009 21:00:01
Message: <web.4a4d57304868867f614c3f500@news.povray.org>
"StephenS" <nomail@nomail> wrote:
> "SIRS Tech" <Gre### [at] yahoocom> wrote:
> ....
> > line 30   #local Txt = text{ttf "handelgo.ttf",value,40,0
> > scale<diam/3,diam/3,diam/3> translate<-diam/1.5,diam,-20>}
> >
> > line 34 object{ intersection{ object{txt} object{cap} } translate <0,0,-0.05>
> > pigment{tcolour} }
> >
> > so basically I need to copy the handlego.ttf and place it in the txt location?
>
> No, you need to change "object{txt}" in line 34 to "object{Txt}" to match up
> with the name you used in line 30.
>
> Stephen S

ok you stephen have completely lost me...

line 30 doesn't mention an object...this is the entire snipet of code.

#macro CAP_DIS_CERAMIC_DISK_GRND(diam1,value,leadspc,bcolour,tcolour)
#local diam = diam1/2;
 #local cap = object {superellipsoid{<1, 1>scale<diam,diam*0.25,diam>rotate
<-90,-7.5,0>translate<0,diam*1.1,0>} }
 (this is line 30) #local Txt = text{ttf "handelgo.ttf",value,40,0
scale<diam/3,diam/3,diam/3> translate<-diam/1.5,diam,-20>}
 #local leg = object{ cylinder {  <0,diam*0.2,0>,<0,-10.0>,0.25
texture{col_silver}}}
 #local ls2 = leadspc/2 ;
 union{
  (this is line 34) object{ intersection{ object{txt} object{cap} } translate
<0,0,-0.05> pigment{tcolour} }
  object {cap pigment{bcolour}}
  difference{
   torus { leadspc/2, 0.25 rotate -90*x  pigment{bcolour} }
   box { <-leadspc,0,0.5>, <leadspc,-leadspc,-0.5> }
   translate <0,diam*0.2,0>
  }
  object{ leg translate<-ls2,0,0> }
  object{ leg translate< ls2,0,0> }
  translate <0,0,0>
  pigment{bcolour}
 }
#end

could it be something in one of these other lines?


Post a reply to this message

From: StephenS
Subject: Re: rendering problems eagle 3d and pov ray
Date: 2 Jul 2009 21:30:00
Message: <web.4a4d5e2f4868867faafcde230@news.povray.org>
"SIRS Tech" <Gre### [at] yahoocom> wrote:
....
>   (this is line 34) object{ intersection{ object{txt} object{cap} } translate
> <0,0,-0.05> pigment{tcolour} }
....

object{ intersection{ object{Txt} object{cap} } translate > <0,0,-0.05>
pigment{tcolour} }

Rework line 34, it should have "Txt"

Carry on :-)

You may want to read parts of the POV-Ray help file, section 3.4.1.13 Text

Stephen S


Post a reply to this message

From: SIRS Tech
Subject: Re: rendering problems eagle 3d and pov ray
Date: 3 Jul 2009 15:25:00
Message: <web.4a4e5a554868867f614c3f500@news.povray.org>
"StephenS" <nomail@nomail> wrote:
> "SIRS Tech" <Gre### [at] yahoocom> wrote:
> ....
> >   (this is line 34) object{ intersection{ object{txt} object{cap} } translate
> > <0,0,-0.05> pigment{tcolour} }
> ....
>
> object{ intersection{ object{Txt} object{cap} } translate > <0,0,-0.05>
> pigment{tcolour} }
>
> Rework line 34, it should have "Txt"
>
> Carry on :-)
>
> You may want to read parts of the POV-Ray help file, section 3.4.1.13 Text
>
> Stephen S

ok I've read that section, I'm still not sure why I'm getting the error.

"C:\Documents and Settings\user\My Documents\POV-Ray\v3.7\include\cap.inc" line
34: Parse Error: Expected 'object', undeclared identifier 'txt' found instead

it says it is expecting an object not text...but what object?

object{ intersection{ object{txt} object{cap} } translate <0,0,-0.05>
pigment{tcolour} }

I'm still extremely new to this thing. The math alone gives me a migraine. I've
never studied quadratic equations in school.


Post a reply to this message

From: StephenS
Subject: Re: rendering problems eagle 3d and pov ray
Date: 3 Jul 2009 17:05:01
Message: <web.4a4e71604868867f9b5c49b60@news.povray.org>
"SIRS Tech" <Gre### [at] yahoocom> wrote:
....
> I'm still extremely new to this thing. ...
Everyone starts new.

From the 'snipet of code'
box{} is an object
superellipsoid{} is an object
torus{} is an object
....and yes
text{} is an object

From 3.2.2.2.1 of the help file, you can #declare (or #local) an object
identifier.

 From the snipet of code
#local Txt = text{ttf "handelgo.ttf",value,40,0 scale<diam/3,diam/3,diam/3>
translate<-diam/1.5,diam,-20>}

Txt is now equal to the "text{...}" object

On line 34 you now want to use this identifier, they must be spelled the same,
including capitals.

Stephen S


Post a reply to this message

From: Alain
Subject: Re: rendering problems eagle 3d and pov ray
Date: 4 Jul 2009 12:14:30
Message: <4a4f7fe6$1@news.povray.org>

<snip>
> On another note, where did all you wonderful and helpful people learn this
> stuff?
> 
> 
> 

By asking questions here, by going trough the tutorial, reading the 
documentations and trying the samples given.
Also, by hand coding your scenes and rendering and modifying the samples 
scenes.


Alain


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: rendering problems eagle 3d and pov ray
Date: 5 Jul 2009 03:06:22
Message: <4a5050ee$1@news.povray.org>
SIRS Tech wrote:
> On another note, where did all you learn this stuff?

In the documentation included with POV-Ray. In Windows, go to the Help menu. 
The whole documentation is of course included with POV-Ray. There you can 
see what correct syntax for POV-Ray looks like.

	Thorsten


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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