POV-Ray : Newsgroups : povray.general : Mapping images on to prisms : Re: Mapping images on to prisms Server Time
28 Jul 2024 14:19:27 EDT (-0400)
  Re: Mapping images on to prisms  
From: PoD
Date: 28 Jan 1999 17:07:31
Message: <36B0DFA3.C7D@merlin.net.au>
> 
> Hi
> 
> I'm trying to map an image on to the 'end' of a prism but no matter what
> I do it always maps onto the 'side' of it. Basically I'm trying to
> create a 7 sided coin with an image mapped on the 'heads' and 'tails'
> side. This is what I've tried:
>
 
Image maps project the image onto the x,y plane while prisms are created
in the x,z plane,
just rotate your prism around the x axis

> prism {
>   linear_sweep
>   linear_spline
>   -0.9, 0.9,  7,
> < 0.623, 0>, < 0, 0.782>, < 0.223, 1.757>, < 1.123,  2.19>, < 2.023,
> 1.757>, <2.246, 0.782>, <1.623, 0>

   rotate x*-90 // ***** rotation added ********
> 
> pigment{
>       image_map {
>                  gif "50p_tails.gif"
>                  once
>                  }
>                scale <2.46, 2, 0>
>               }
> }
> 
> Any ideas?
> 
> Mike Varley
> mik### [at] nacstockacuk

Cheers, PoD.


Post a reply to this message

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