POV-Ray : Newsgroups : povray.windows : rendering problems eagle 3d and pov ray Server Time
14 May 2024 17:56:22 EDT (-0400)
  rendering problems eagle 3d and pov ray (Message 21 to 30 of 34)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 4 Messages >>>
From: SIRS Tech
Subject: Re: rendering problems eagle 3d and pov ray
Date: 1 Jul 2009 20:45:01
Message: <web.4a4c02264868867f614c3f500@news.povray.org>
"SIRS Tech" <Gre### [at] yahoocom> 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?

nvm forgot that I had to rewrite it...


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


Post a reply to this message

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

> #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?
> 
> 
> 
> 

#local txt = text{ttf "handelgo_font.ttf" ...}

you need "ttf" after the opening "{"

The name of the font must be enclosed between double quotes. Otherwise, 
it's treated as a user variable.

It's preferable to add the extention to the name but it's not absolutely 
required.




Alain


Post a reply to this message

From: Alain
Subject: Re: rendering problems eagle 3d and pov ray
Date: 2 Jul 2009 14:10:00
Message: <4a4cf7f8@news.povray.org>

> #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


Post a reply to this message

From: Alain
Subject: Re: rendering problems eagle 3d and pov ray
Date: 2 Jul 2009 14:13:07
Message: <4a4cf8b3@news.povray.org>

> Alain <aze### [at] qwertyorg> wrote:
>> Great :( yet another application giving yet another meaning to the
>> screen saver's extention...
> 
> I bet EAGLE has been around a deal longer than Windows screensavers, dating back
> to good old MS-DOS times.
> 
> 
> 

I do remember the very first screen saver I ever saw on a PC. It was 
under DOS 3 or about. It DID have the SCR extention and was of the TSR 
variety.



Alain


Post a reply to this message

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

<<< Previous 10 Messages Goto Latest 10 Messages Next 4 Messages >>>

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