POV-Ray : Newsgroups : povray.general : hdri cube to lat long : Re: hdri cube to lat long Server Time
5 Aug 2024 00:23:34 EDT (-0400)
  Re: hdri cube to lat long  
From: Gilles Tran
Date: 21 Jan 2003 15:09:53
Message: <3e2da911@news.povray.org>

dans le message de news: 3e2cc44c@news.povray.org...
> Anyone know how to take 6 hdr pictures which make up a cubic environment
map
> and make them into a lightprobe type image that mlpov will accept?

I'm currently using this for Terragen-made HDRs (no bottom though as there's
usually a real one in the scene). It's not perfect but the spherical mapping
has drawbacks too.

#declare Pane=union{triangle{0,x,x+y} triangle{0,y,x+y}}

#declare Panoramic=union{
        #declare A=1.3;
        object{Pane texture{pigment{image_map{hdr "mohave0901" interpolate
2}} finish{ambient A diffuse 0}}}
        object{Pane texture{pigment{image_map{hdr "mohave0902" interpolate
2}} finish{ambient A diffuse 0}} rotate y*90 translate x}
        object{Pane texture{pigment{image_map{hdr "mohave0903" interpolate
2}} finish{ambient A diffuse 0}} rotate y*180 translate x-z}
        object{Pane texture{pigment{image_map{hdr "mohave0904" interpolate
2}} finish{ambient A diffuse 0}} rotate y*270 translate -z}
        object{Pane texture{pigment{image_map{hdr "mohave0905" interpolate
2}} finish{ambient A diffuse 0}} rotate -x*90 translate y}
    translate z*0.5-x*0.5-y*0.5
}
object{Panoramic}


Post a reply to this message

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