POV-Ray : Newsgroups : povray.general : 3D image map? : Re: 3D image map? Server Time
8 Aug 2024 04:07:12 EDT (-0400)
  Re: 3D image map?  
From: Bob H 
Date: 8 Mar 2001 05:28:22
Message: <3aa75ec6$1@news.povray.org>
There is a way to use multiple images together in a 3D "procedural" pattern,
as follows:

#declare I1= pigment {
 image_map {
    png "warning.png" // replace with images you have
    once filter all 0
 }
}
#declare I2= pigment {
 image_map {
    png "pam.png"
    once filter all 0
 }
}
#declare I3= pigment {
 image_map {
    png "w95logos.png"
    once filter all 0
 }
}

#declare Images=
pigment {gradient z // any pattern here
        pigment_map {
                [0 I1]
                [.5 I2]
                [1 I3]
        }
}

difference {
box {0,1}
sphere {1,1}
 pigment {Images}
    translate -.5 scale 2 rotate <-120,45,0>
}

light_source {<10,10,-10>,1}

camera {
        location -8*z
        angle 30
        look_at 0
}

Not going to get this into media (I've tried and failed anyway), although it
is 3D texturing using images.

Bob H.


Post a reply to this message

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