POV-Ray : Newsgroups : povray.animations : How to animate ??????????????? : Re: How to animate ??????????????? Server Time
2 Jun 2024 13:47:21 EDT (-0400)
  Re: How to animate ???????????????  
From: Chris B
Date: 20 Feb 2008 16:22:17
Message: <47bc9a09@news.povray.org>
"Dave VanHorn" <mic### [at] gmailcom> wrote in message 
news:web.47bc95f886d65c51a08ed15e0@news.povray.org...
>
> Here's what I have so far, which errors on the third line of the data file 
> with
> "Parse error: Expected 'float, vector, or string literal',, found instead"
> ...
>
> // Sample data, X, Y, Z
> //0.128236817,0.17343048,1.06941009
> //-0.109255917,-0.005383651,0.765301253
> //0.059836132,0.172405022,0.976029181   <--- Errors on this line
>
>

If this is what the file looks like it looks like, you're missing commas at 
the end of each line.
POV-Ray disregards the line throws, so I suspect it would read past the 
first doing a subtraction due to the minus sign starting the second line. 
When it hits the end of the second line it'll concatenate two numbers with 
decimal points in both and doesn't know how to handle that.

If the whole file is XYZ coordinates you might want to code it up as vectors 
(depending upon what you want to do with them). e.g:
<0.128236817,0.17343048,1.06941009>,
<-0.109255917,-0.005383651,0.765301253>,
<0.059836132,0.172405022,0.976029181> ,
... etc.

In which case you can read in a single variable containing the coordinates.

Regards,
Chris B.


Post a reply to this message

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