POV-Ray : Newsgroups : povray.general : Mapping Textures on irregular shapes : Re: Mapping Textures on irregular shapes Server Time
3 May 2024 18:39:04 EDT (-0400)
  Re: Mapping Textures on irregular shapes  
From: Bald Eagle
Date: 1 May 2020 23:00:01
Message: <web.5eace1ec72e01857fb0b41570@news.povray.org>
"Josh" <nomail@nomail> wrote:

> Beautiful! Thanks so much, that works great!

Now here's a neat trick to help you puzzle out some things as well.
Plug your function into a pigment statement, and you can plot a 2D slice in
order to see all the isolines in that plane.
It's also a LOT faster than repeatedly rendering the [developmental] isosurface
until you get the equations right, and you can see a BIG area in case your
isosurface pieces are somehow outside of the contained_by shape.

#declare Map = pigment {function {YourFunction (x,y,z)}}
#declare S2 = 10;
#declare Square2 = union {
 triangle {<-1, 0, -1>*S2, <-1, 0, 1>*S2, <1, 0, -1>*S2}
 triangle {<1, 0, -1>*S2, <-1, 0, 1>*S2, <1, 0, 1>*S2 }
 texture {Map}
}
object {Square2 translate -y*4}

.... or just use a whole plane {}


Post a reply to this message

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