POV-Ray : Newsgroups : povray.newusers : height_field + image_map for real world mapping : Re: height_field + image_map for real world mapping Server Time
30 Jul 2024 16:13:12 EDT (-0400)
  Re: height_field + image_map for real world mapping  
From: Michael Cooper
Date: 2 Dec 2003 08:15:01
Message: <web.3fcc8fe3ed57fecd7fa21dff0@news.povray.org>
Warp wrote:
>  The heightfield is created on the x-z plane. The image map is created
>on the x-y plane. Obviously they are oriented differently.
>  Thus, rotate the image map so that it has the same orientation as
>the heightfield, like this:
>
>height_field
>{ tga "whatever"
>  pigment
>  { image_map { tga "whatever" }
>    rotate x*90
>  }
>  transformations
>}
>
>plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
>sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
>density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
><1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -
>


Holy Crap!!! It worked. Thanks for the info!


Post a reply to this message

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