POV-Ray : Newsgroups : povray.binaries.images : My first (working script) : Re: My first (working script) Server Time
18 Aug 2024 08:19:10 EDT (-0400)
  Re: My first (working script)  
From: Thomas Lake
Date: 13 May 2001 04:28:42
Message: <3afe45ba$1@news.povray.org>
> Here is the loop i use for my current 'water tunnel' scene.  It's quite
> ugly and uses a Block() macro generating a box like shape with origin in
> the middle of the one side of the box.  I'm not sure if it's of much use,
> but you can see how to alternate the lines of bricks with the 'Sw'
> variable.  BTW, it only generates one half of the tube and randomly varies
> the length of the bricks.
<code>

I'll have to take a good look at this, not quite sure about all of your
code, but you've given me an idea if the #if derective in the while loop.

> Also note that to avoid the unnatural gap on the left side of the curved
> part in your picture you either have to tweak the 'BlockZ' value of do
> some exact geometrical calculations which i was to lazy for...

Yeah I know, actually that gap was WAY larger in my first render untill I
tweaked the the height of the bricks and mortar width.

> > The other thing I'm going to do is add some randomness into the scene,
> > take a look at my next post and let me know if there is a better way of
> > handling randomness.
>
> As Dave Blandston mentioned, you will probably want to multiply the rand()
> values with a factor to get the required range.

I've read his post and I'm going to play around with it.

> > Please take a look at the source file for this image in
> > p.t.scene-files and let me know what you think, this is my first try at
> > scripting so feedback would be helpful.
> >
>
> It looks good,

Thanks

> just the style of indention could be improved, better use a
> constant amount (like two spaces) everywhere.

Yeah, only problem is I'm lazy;-)
>
> Christoph
>
> --
> Christoph Hormann <chr### [at] gmxde>
> IsoWood include, radiosity tutorial, TransSkin and other
> things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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