|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
hello,
i'm just a newbie and all the braces { and } kinda confuse me. i've
got some open source for a monitor that has a #version 1 in it. it
runs ok by itself but when i try and use some other objects in a
scene with it, it complains about the version 1. its nothing more
than a union, so i cut the version 1 code, and now it won't fly. here
is the last part of the union which i believe is the problem:
box {<-140,140,-170>,<-130,395,170>}
texture
{ pigment
{
image_map {tga "SCREEN.TGA"}
rotate <0,90,0>
scale <1,255,340>
translate <0,140,-170>
}
ambient 0.3
}
i'm getting this as an error:
monitor.inc:59: error: No matching } in texture, ambient found instead.
i've tried messing with the braces, but i can't seem to get it
resolved. i would appreciate it if someone could point out
my problem. like i said, this snippet works with the #version 1
code.
thank you, miker
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Tue, 16 Oct 2001 11:58:51 -0500, MR wrote:
>monitor.inc:59: error: No matching } in texture, ambient found instead.
You need to put the ambient inside a finish {} block.
--
#macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_ z)R(-z _-z)
R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro S(_)9-(_1-
_)*(_1-_)#end#macro Z(_1 _ __)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate x*90}
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
thanks ron,
DARN!!! you're quick! i just got that posted and looked for
a moment thru povray.general and checked back to see if
i posted ok and i had an answer.
thanks again, miker
"Ron Parker" <ron### [at] povrayorg> wrote in message
news:slr### [at] fwicom...
> On Tue, 16 Oct 2001 11:58:51 -0500, MR wrote:
> >monitor.inc:59: error: No matching } in texture, ambient found instead.
>
> You need to put the ambient inside a finish {} block.
>
> --
> #macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_
z)R(-z _-z)
> R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro
S(_)9-(_1-
> _)*(_1-_)#end#macro Z(_1 _
__)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
> rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate
x*90}
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
MR wrote:
>
> thanks ron,
>
> DARN!!! you're quick! i just got that posted and looked for
> a moment thru povray.general and checked back to see if
> i posted ok and i had an answer.
If you really want the texture applied to the box you also need to
remove the brace at the end of the box and apply it to the end of
the entire block as illustrated below -
box {<-140,140,-170>,<-130,395,170>
texture
{
pigment
{
image_map {tga "SCREEN.TGA"}
rotate <0,90,0>
scale <1,255,340>
translate <0,140,-170>
}
finish{ambient 0.3}
}
}
--
Ken Tyler
Post a reply to this message
|
|
| |
| |
|
|
From: Thorsten Froehlich
Subject: Re: brace version incompatibility ??
Date: 18 Oct 2001 06:25:33
Message: <3bceae1d@news.povray.org>
|
|
|
| |
| |
|
|
In article <3bcc675d$1@news.povray.org> , "MR" <a### [at] bnet> wrote:
> monitor.inc:59: error: No matching } in texture, ambient found instead.
>
> i've tried messing with the braces
Just a note to help you in the future:
You should read the error messages POV-Ray gives very carefully because they
frequently contain more information than you might realize at first sight:
In your case it is the "ambient found instead", which suggests that POV-Ray
did not expect to find "ambient" but expected a "}" matching the "{" is
found earlier in the scene.
Thorsten
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|