POV-Ray : Newsgroups : povray.bugreports : incorrect error message thrown: no matching } in 'texture' : Re: incorrect error message thrown: no matching } in 'texture' Server Time
18 Apr 2024 22:12:33 EDT (-0400)
  Re: incorrect error message thrown: no matching } in 'texture'  
From: jmichae3
Date: 28 Dec 2014 20:30:01
Message: <web.54a0ad72697e11fc8694a3930@news.povray.org>
"jmichae3" <jmi### [at] yahoocom> wrote:
> I am getting a bogus error message. syntax seems to look clean. error is on the
> first texture statement.
>
>
>
> Preset INI file is 'D:\WWW\JESUSNJIM\RAYTRACE\JOHN3_16-17.INI'.
> Preset source file is 'D:\www\Jesusnjim\raytrace\JesusLovesYou2_.ini'.
> Rendering with 12 threads.
> -
> Parser Options
>   Input file: JesusLovesYou2_.pov
>   Remove bounds........On
>   Split unions.........Off
>   Library paths:
>     C:\Users\Jim-Michaels\Documents\POV-Ray\v3.7\include
>     C:\Windows\Fonts
> Animation Options
>   Initial Frame:        1  Final Frame:       20
>   Frame Step:           1
>   Initial Clock:    4.500  Final Clock:  -11.000
>   Cyclic Animation.....Off  Field render.........Off  Odd lines/frames.....Off
> Image Output Options
>   Image resolution.....720 by 405 (rows 1 to 405, columns 1 to 720).
>   Output file..........JesusLovesYou2_01.png, 24 bpp PNG
>   Dithering............Off
>   Graphic display......On  (gamma: 2.2)
>   Mosaic preview.......Off
>   Continued trace......Off
> Information Output Options
>   All Streams to console..........On
>   Debug Stream to console.........On
>   Fatal Stream to console.........On
>   Render Stream to console........On
>   Statistics Stream to console....On
>   Warning Stream to console.......On
> -
> "JesusLovesYou2_.pov" line 143: Parse Error: No matching } in 'texture',
> undeclared identifier 'T_WOOD13' found instead
>
> Render failed
> -
> CPU time used: kernel 0.06 seconds, user 0.02 seconds, total 0.08 seconds.
> Elapsed time 0.39 seconds.
> ----------------------------------------------------------------------------
>
>
> #declare BEAM_THICKNESS=0.8*2;
> #declare BEAM_HEIGHT=+.4--.7;
> #declare BEAM_WIDTH=BEAM_HEIGHT*.5;
> #declare BEAM_BOTTOM=-.7;
> #declare BEAM_LEFT=-.5;
> #declare BEAM_Z=-.3;
> #declare CROSSBEAM_BOTTOM=BEAM_HEIGHT*.7;
> object { //cross
>
>         difference {
>             box {
>                 <0-.5, 0-.5, -.5>,
>                 <0+.5, 0+.5, +.5>
>                 texture {
>                     T_WOOD13
>                     scale 4
>                 }
>             } //title. should I put this in?
>             scale <.15*2, .08*2, .01*2>
>             translate <0, -.3, 0>
>
>             union {
>                 ttf "BRUSHSCI.ttf" "JESUS OF NAZARETH" 1, 0
>                 texture {
>                     T_WOOD13
>                     scale 4
>                 }
>                 scale <.15*2, .08*.7, (+.01--.01)/2> //1/2 of the thickness of
> the sign
>                 translate <0, +.37, +.08+.08+(+.01--.01)/2>
>
>
>                 ttf "BRUSHSCI.ttf" "THE KING OF THE JEWS" 1, 0
>                 texture {
>                     T_WOOD13
>                     scale 4
>                 }
>                 scale <.15*2, .08*.7, (+.01--.01)/2> //1/2 of the thickness of
> the sign
>                 translate <0, +.35, +.08+.08+(+.01--.01)/2>
>             }
>         }
>
>
>         box {//vertical beam
>             <0-.5, 0-.5, 0-.5>,
>             <0+.5, 0+.5, 0+.5>
>             texture {T_WOOD13}
>         }
>         scale <BEAM_THICKNESS, BEAM_HEIGHT, BEAM_THICKNESS>
>         translate <0, BEAM_BOTTOM, BEAM_Z+0>
>
>         box {//horizontal beam
>             <0-.3, 0-.08, 0-.08>,
>             <0+.3, 0+.08, 0+.08>
>             texture {T_WOOD13}
>         }
>         scale <BEAM_WIDTH, BEAM_THICKNESS, BEAM_THICKNESS>
>         translate <0, BEAM_BOTTOM+CROSSBEAM_BOTTOM, BEAM_Z-BEAM_THICKNESS>
>
> }

from the help manual on box keyword,

2.2.2.1 Box ObjectThe box is one of the most common objects used. We try this
example in place of the sphere:

  box {
    <-1, 0,   -1>,  // Near lower left corner
    < 1, 0.5,  3>   // Far upper right corner
    texture {
      T_Stone25     // Pre-defined from stones.inc
      scale 4       // Scale by the same amount in all
                    // directions
    }
    rotate y*20     // Equivalent to "rotate <0,20,0>"
  }


Post a reply to this message

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