POV-Ray : Newsgroups : povray.general : Mapping images on to prisms : Re: Mapping images on to prisms Server Time
28 Jul 2024 14:18:52 EDT (-0400)
  Re: Mapping images on to prisms  
From: Josh English
Date: 29 Jan 1999 12:00:38
Message: <36B1EA22.31BA3605@spiritone.com>
Ok, so I was still thinking brute force... that is a great solution, kudos for
clever thinking.

I am working on a web site that collects this kind of specific questions, would you
mind if I used this solution for it (giving you full credit, of course)

Josh English
eng### [at] spiritonecom

Ron Parker wrote:

> On Thu, 28 Jan 1999 13:17:42 -0800, Josh English <eng### [at] spiritonecom> wrote:
> >Yes, this will happen. Image maps will move forever through the z axis, the
> >once option only applies to the x-y plane. In order to place an image map on
> >the other side, you need to make two objects with the same height and width
> >but with half the depth, then on the second one place the second image but
> >be sure to rotate it correctly or it will appear backwards.
>
> You might also try some trickery with the radial pattern:
>
>   #macro DoubleImage( front, back )
>     radial
>     pigment_map {
>       [.5 front]
>       [.5 back rotate 180*y]
>     }
>   #end
>
>   #declare f=pigment{image_map{ sys "heads.bmp" once } translate -.5}
>   #declare b=pigment{image_map{ sys "tails.bmp" once } translate -.5}
>
>   #declare coin=cylinder {
>     -.1*z,.1*z,1
>     texture{pigment {color rgb 1}}
>     texture {pigment {DoubleImage(f,b)}}
>   }
>
> If you look at the front (-z) side of this simple round coin, you'll see
> the heads image.  Look at the back (z) side and you see the tails image.


Post a reply to this message

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