POV-Ray : Newsgroups : povray.general : Why doesn't this work (some #declare stuff) : Why doesn't this work (some #declare stuff) Server Time
10 Aug 2024 21:08:35 EDT (-0400)
  Why doesn't this work (some #declare stuff)  
From: Peter Hertel
Date: 30 Oct 1999 11:57:38
Message: <381b1572@news.povray.org>
I can't get thit to work... anyone know why??

I get an error : RValue to declare expected but cubic_spline found instead.
But why does it pass linear_spline? This works if you #declare font names..
why not this? I'm trying to make some system for making test renderings
easy. I'm not very good at povray, so I would appreciate a easy to
understand answer, not that I usually don't get it.. Thanks!

Btw.. anyone got  a nice plastic finish? Like the one on computers.

#include "colors.inc"

#declare Test = 0;


#if (Test)

        #declare screen_text = texture {pigment {White}}
        #declare Spline = linear_spline;

#else

        #declare screen_text = texture {pigment {White} finish {diffuse 0.3
reflection 0.3 specular 0.7}

        #declare Spline = cubic_spline;

#end

camera{
location <20,60,-50>
look_at <20,22,0>
}

light_source{<20,50,-100> White}

box{<0,6,0>,<40,44,6> texture{screen_text}}

prism{Spline 6,44,6 <0,0>,<0,0>,<40,0>,<20,-1.5>,<0,0>,<0,0> texture
{screen_text}}


Post a reply to this message

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