POV-Ray : Newsgroups : povray.windows : text object and texture : Re: text object and texture Server Time
28 Jul 2024 08:29:50 EDT (-0400)
  Re: text object and texture  
From: Ken
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

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