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:21:00 EDT (-0400)
  Re: height_field + image_map for real world mapping  
From: Warp
Date: 2 Dec 2003 06:54:05
Message: <3fcc7d5d@news.povray.org>
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 -


Post a reply to this message

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