POV-Ray : Newsgroups : povray.general : why is math failing? Server Time
2 Aug 2024 04:22:55 EDT (-0400)
  why is math failing? (Message 1 to 4 of 4)  
From: Barehunter
Subject: why is math failing?
Date: 7 Feb 2005 23:30:01
Message: <web.42083f8d461acdc8ed3cff5c0@news.povray.org>
I am trying to use an object that is "freely useable". It works fine in it's
own pov file but when I tried using it in mine I get a problem. Consider
the following...

#declare Cylndr017 = object {
  object { // Cylndr017->Cylndr018
    Cylndr018
    rotate -0.0*y
    translate  -1.5*x
  }
}
POV stops on the line with the rotate and gives me the message...

Parse error: no matching } in "object" * found instead.

this is the brass bed object from the POVRAY objects collection. Like I said
it works fine from it's own pov file. I "included" the povray file in my
pov file and I get that error while parsing. I had a similar problem using
the desklamp from the same collection.
any opinions?


Post a reply to this message

From: Slime
Subject: Re: why is math failing?
Date: 8 Feb 2005 00:15:25
Message: <42084aed@news.povray.org>
The following scene parsed and rendered for me without any problems in
POV-Ray 3.6.1:

#declare Cylndr018 = sphere{0,1}
#declare Cylndr017 = object {
  object { // Cylndr017->Cylndr018
    Cylndr018
    rotate -0.0*y
    translate  -1.5*x
  }
}
object {Cylndr017}

So the issue probably has something to do with the way you've included the
file or some other code within your script.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Barehunter
Subject: Re: why is math failing?
Date: 8 Feb 2005 00:45:01
Message: <web.42085146d73199d7ed3cff5c0@news.povray.org>
Well I tried this. first I remmed out those -0.0*y statements in the file (
why would I need to give something a non existant rotation anyway? y*0 = 0)
then I wrote out all those *x and *z statements the longway. and that helped
the file render. though for some odd reason the bed object rendered flipped
on the positive x axis. quick rotation fix and I have a working bed.
Thanks.


Post a reply to this message

From: Maurice
Subject: Re: why is math failing?
Date: 8 Feb 2005 15:32:05
Message: <420921c5$1@news.povray.org>
Barehunter wrote:
> Well I tried this. first I remmed out those -0.0*y statements in the file (
> why would I need to give something a non existant rotation anyway? y*0 = 0)
> then I wrote out all those *x and *z statements the longway. and that helped
> the file render. though for some odd reason the bed object rendered flipped
> on the positive x axis. quick rotation fix and I have a working bed.
> Thanks.
> 
> 
I have that problem too when I'm tired.


Post a reply to this message

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