POV-Ray : Newsgroups : povray.windows : text object and texture Server Time
24 Nov 2024 10:40:28 EST (-0500)
  text object and texture (Message 1 to 6 of 6)  
From: Chuck Roberts
Subject: text object and texture
Date: 19 Aug 1999 14:28:15
Message: <37BC4CFB.485FAF9B@accn.org>
Ok. How come I get an error "missing }" when I render this? All I want
is to put a texture on the text. I want it to be like reflective chrome.
Yes I included "metals.inc". I have pov 3.02. 

text
{
  ttf          // font type (only TrueType format for now)
  "crystal.ttf",  // Microsoft Windows-format TrueType font file name
  "ACATEC",   // the string to create
  .5,           // the extrusion depth
  0            // offset
  texture {   P_chrome1 
           finish {F_MetalC}
          }
}


Post a reply to this message

From: Ron Parker
Subject: Re: text object and texture
Date: 19 Aug 1999 14:43:14
Message: <37bc5042@news.povray.org>
On Thu, 19 Aug 1999 14:29:15 -0400, Chuck Roberts wrote:
>Ok. How come I get an error "missing }" when I render this? All I want
>is to put a texture on the text. I want it to be like reflective chrome.
>Yes I included "metals.inc". I have pov 3.02. 

Two reasons:

1) You've misspelled P_Chrome1.  The C should be uppercase.
2) P_Chrome1 needs to be inside a pigment{} block.

Here's the corrected texture statement:

  texture {   
           pigment {P_Chrome1}
           finish {F_MetalC}
          }

This probably isn't the best group to get answers to this sort of
questions in.  You might want to hang out in povray.newusers for a
while, where questions like this are common and are more likely to
be answered quickly.


Post a reply to this message

From: Ken
Subject: Re: text object and texture
Date: 19 Aug 1999 14:47:33
Message: <37BC5143.974E337F@pacbell.net>
Chuck Roberts wrote:
> 
> Ok. How come I get an error "missing }" when I render this? All I want
> is to put a texture on the text. I want it to be like reflective chrome.
> Yes I included "metals.inc". I have pov 3.02.
> 
> text
> {
>   ttf          // font type (only TrueType format for now)
>   "crystal.ttf",  // Microsoft Windows-format TrueType font file name
>   "ACATEC",   // the string to create
>   .5,           // the extrusion depth
>   0            // offset
>   texture {   P_chrome1
>            finish {F_MetalC}
>           }
> }

You did not capitalize the word Chrome in P_Chrome1 and you attempted to use a
color keyword as a texture definition as opposed to being used as a color in a
pigment statement. The code below works now.

text{
  ttf             // font type (only TrueType format for now)
  "crystal.ttf",  // Microsoft Windows-format TrueType font file name
  "ACATEC",       // the string to create
  .5,             // the extrusion depth
  0               // offset
  texture {
    pigment  {   P_Chrome1 }
       finish { F_MetalC }
  }
}


-- 
Ken Tyler

See my 700+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Chuck Roberts
Subject: Re: text object and texture
Date: 19 Aug 1999 15:22:33
Message: <37BC59B5.7DC3D50B@accn.org>
Thank you all. It worked. I'm just getting started with POV, if you
couldn't tell.


Post a reply to this message

From: Alan Kong
Subject: Re: text object and texture
Date: 19 Aug 1999 22:07:18
Message: <37bdb63e.157007807@news.povray.org>
On Thu, 19 Aug 1999 15:23:33 -0400, Chuck Roberts <rob### [at] accnorg> wrote:

>I'm just getting started with POV, if you couldn't tell.

  Hi, Chuck. Keep at it - don't become discouraged. There's a bit of a
learning curve but soon the basics of scene writing will become second
nature.

  As far as posting in the groups here, Ron's advice for you to hang out for
a bit in povray.newusers is sound. Your question about text objects and
textures is a general one that applies to all versions of POV-Ray on all
platforms. Platform-specific questions or comments about POV-Ray for Windows
goes in this group.

-- 
Alan
--------------------------------------------------------------------
http://www.povray.org - Home of the Persistence of Vision Ray Tracer
news.povray.org - where POV-Ray enthusiasts around the world can get
together to exchange ideas, information, and experiences with others
--------------------------------------------------------------------


Post a reply to this message

From: Mark Wagner
Subject: Re: text object and texture
Date: 20 Aug 1999 03:00:45
Message: <37bcfd1d@news.povray.org>
Chuck Roberts wrote in message <37BC59B5.7DC3D50B@accn.org>...
>Thank you all. It worked. I'm just getting started with POV, if you
>couldn't tell.

Don't worry about making small mistakes like that.  For comparison, my first
C program was 54 lines of program, and had 129 errors!

Mark


Post a reply to this message

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