POV-Ray : Newsgroups : povray.general : Creating an Office : Re: Creating an Office Server Time
30 Jul 2024 06:28:51 EDT (-0400)
  Re: Creating an Office  
From: clipka
Date: 14 Jul 2009 13:55:01
Message: <web.4a5cc63bd6b0ec325fee4dc70@news.povray.org>
"yara" <yar### [at] gmailcom> wrote:
>
> #declare book2 = union {
> prism {linear_sweep
> linear_spline
> 0,
> ..5,
> 6,
> <0,0>, <1,0>, <1,2>, <-1,2>, <-1,0>, <0,0>
> pigment {Black}}  }

This one will not work in the newest release of POV-Ray (both 3.62, and 3.7
betas); older versions just ignored excessive decimal points in numeric
literals, but the new ones will righteously reject the "..5". Same with your
"paper" object.

As for getting things more realistic, for starters I'd suggest to make sure you
don't use pitch black - you never have that in real life.

Also, you should make more use of the "finish" statement, especially specular or
phong highlights. This can help with your pitch-black objects, too.

You may also want to improve on the proportions; e.g. the table top is rather
thick, and the legs likewise.

From there on, things get comparatively complicated. For instance, for a
*really* realistic look, all edges would need some beveling, and you would want
to use radiosity, blurred reflections and focal blur :P

Aside from that, it looks like a good start.

Try to develop a consistent style regarding indentations and use of curly
braces. Teachers like that (especially if it matches their own personal style
:P), and you'll probably come to like it as well.

I personally favor the following in POV-Ray SDL:

  // short statements:

  statement { <parameters> }

  // long statements:

  statement { <mandatory_parameters>
    <other_parameters_and_stuff>
  }

But the main point is to use *some* style consistently. (Yet feel free to
deviate from it wherever it happens to be unwieldy.)


Post a reply to this message

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