POV-Ray : Newsgroups : povray.binaries.animations : Underground Tunnel ( mpg 520 kbu ) : Re: Underground Tunnel ( mpg 520 kbu ) Server Time
19 Jul 2024 11:39:18 EDT (-0400)
  Re: Underground Tunnel ( mpg 520 kbu )  
From: Rune
Date: 14 Aug 2003 06:01:19
Message: <3f3b5def@news.povray.org>
Hugo Asm wrote:
> Triangles, I see! Btw, how did you make the tunnel
> loop perfectly? A granite pattern never repeats.

Hehe, I hoped you'd ask that question!

If the tunnel was a torus, it'd make perfect sense, right? But the
tunnel is not a torus. However, the mapping is taken from a torus.

The displacement of the tunnel is UV-mapped (and so are the textures).
But instead of taking the mapping from a square in the xy-plane, I took
it from a torus. Well, technically, I made a function which mapped the
pattern on the surface of a torus onto a square in the xy-plane, and
like all uv-mapping, this square was then mapped onto the tunnel. I then
just placed two copies of the tunnel in the scene, one in extension of
the other.

A side effect is that the granite pattern in the tunnel is slightly more
squeezed together in the left side than in the right, but it's so little
that it's not noticeable.

> Oh, well... What about attaching the glows to the
> rocks? That might look less confusing.. I don't
> know about the wow's though.

It's an interesting idea.

Rune
--
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com **updated Jul 25**
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

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