POV-Ray : Newsgroups : povray.general : The Language of POV-Ray : Re: The Language of POV-Ray Server Time
11 Aug 2024 15:16:05 EDT (-0400)
  Re: The Language of POV-Ray  
From: Chris Huff
Date: 13 Mar 2000 06:00:46
Message: <chrishuff_99-15D38E.06023713032000@news.povray.org>
In article <38CC8967.69CBD4F9@nigels.com>, nig### [at] eisanetau wrote:

> > In all seriousness, object oriented would work very well for POV-Ray, 
> > since it
> > models... objects!
> 
> Jon,
> 
> You havn't raised XML in this thread - I think it is quite an 
> appropriate opportunity to talk about it.  People are used to
> the HTML idea generally, but HTML has evolved into a bit of a
> mess, so it may not be a great idea to suggest XML from this
> viewpoint... (sigh)
> ...
> sphere { 
>   <0, 0, 0>, 1
>   pigment { Blue }
>   translate -0.5*x  
> }
> 
> Perhaps:
> 
> <POVSCENE>
>   <SPHERE>
>     <POSITION> 0,0,0 </POSITION>
>     <RADIUS>   1.0   </RADIUS>
>     <PIGMENT>
>       <COLOR> BLUE </COLOR>
>     </PIGMENT>
>     <TRANSLATE> -0.5*x </TRANSLATE>
>   </SPHERE>
> </POVSCENE>

Er, no offense, but that is extremely ugly syntax and just about 
unreadable. Add in looping, conditionals, variables(with arrays), and 
macros, and you have a real nightmare. It is going in the opposite 
direction I would like to see POV go. I think if this replaced 
POV-Script, people would go to other things instead, and if it was an 
option along with POV-Script, very few people would use it(even 
modellers would probably output in POV-Script for file size reasons).

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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