POV-Ray : Newsgroups : povray.general : Status of Moray? : Re: New SDL for POVRay Server Time
13 Jul 2025 07:25:55 EDT (-0400)
  Re: New SDL for POVRay  
From: Nicolas George
Date: 19 Sep 2007 07:31:27
Message: <46f1088f$1@news.povray.org>
Ger  wrote in message <46ef3fe7@news.povray.org>:
> Not even desirable, but, at least in my case, mandatory.
> I know very little math and have no clue whatsoever about stuff like
> isosurfaces and such, and absolutely no desire to learn a "real"[*]
> programming language.

I take the discussion somewhat in the middle, and maybe what I will write
has already been written:

There is not really a contradiction between a ""real" programming language"
and being able to write as simply as basic PoV SDL. For example:

use Colors;

scene [

  camera [
    location => [ 2, 5, -3 ],
    look_at => [ 0, 0, 0 ]
  ],

  light_source [
    [ 0, 10, -2 ],
    White
  ],

  union [
    box [
      [ -1, -1, -1 ], [ 1, 1, 1 ],
      pigment => Red
    ],
    sphere [
      [ 0, 1.5, 0 ], 0.5
      pigment => Yellow
    ]
  ]

]

I grant you that there is a little bit more comas than in original PoV SDL,
but on the whole, it is no more difficult to learn and to write.

Well, unless I am mistaken, this is perfectly valid Perl.


Post a reply to this message

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