|
 |
Jon A. Cruz wrote:
> <sphere radius=1>
> <pigment>
> <color rgb='#ff00ff'>
> </pigment>
> <rotate x=0 y=10 z=0>
> </sphere>
I prefer
sphere{x,1 texture{pigment{color rgb <1,0,1>}} rotate 10*y}
It is shorter (60 characters instead of 92, and you left out the centre) and
I find it much more readable. Part of this readability is from the one-line
formatting, but I wouldn't like the one-line:
<sphere centerx=1 centery=0 centerz=0 radius=1> <pigment> <color
rgb='#ff00ff'> </pigment> <rotate x=0 y=10 z=0> </sphere>
(I took the liberty to add a centre for the sphere in a syntax analogue to
what you propose.) I think I couldn't stand the inflation. more word to make
typos, less info on screen (hence harder to read the script flow),. And
think about backward compatibility... :-(
> Or there could be all sorts of different ways to do it.
If you really want this povml, you can still write a povml2pov (and back)
translator, so you can test the idea (and maybe win us over).
I must confess the povml idea is somehow seductive (dark side of
POVscritpt? - no the Dark Side should be easier and quicker). I had much
work to unroot it from my mind (some times ago).
BTW, wasn't some early POVscript (or DKB) that looked like that? Or am I
completely mistaken once again?
Philippe
Post a reply to this message
|
 |