Khai-J-Bach opened this issue on Aug 27, 2010 · 1684 posts
adp001 posted Sat, 25 September 2010 at 11:39 AM
Quote - here's the 'skyglob' recipe i used on this image . i think it needs rectangular images, not the spherical. IIRC, bb is working on a way to use the env. sphere, but they need rectangulars also i think. it'd be nice to be able to use my stash of sphericals as skies.....
start lights
start light "Light 1"
AttributeBegin
LightGroup "Light 1"
LightSource "infinitesample"
"string mapping" ["latlong"]
"color L" [1 1 1]
"float gain" [500]
"integer nsamples" [1]
"string mapname" ["path to your hdr"]end of infinite light 'Himmel-Objekt'
AttributeEnd
start light "Light 2"
AttributeBegin
LightGroup "Light 2"
LightSource "distant"
"color L" [0.75649095 0.87289506 1] # sun color
"float gain" [1637.0247]
"point from" [1.0153754 -3.1502762 3.7476354]
"point to" [0.81230026 -2.520221 2.9981084]
AttributeEnd
Seems this is a bit outdated.
Lux manages all types of HDRI now. The parameter "mapping" is not required anymore. Moreover, it forces a specified format.
Here is what I used (HDRI from Posers HDRFX folder):
LightGroup "IBL"
LightGroup "IBL"
AttributeBegin
TransformBegin
Rotate 240 1 1 1
Rotate 96 0 0 1
LightSource "infinite"
"float gain" [3600.0]
"color L" [1.0 1.0 1.0]
"string mapname" ["/home/fredi/poser/Runtime/Textures/HDRVFX/HDRVFX_Teen_Bedroom_HDR.hdr"]
TransformEnd
AttributeEnd
LightGroup "default"
AttributeBegin
LightSource "spot"
"float gain" [1000.0]
"color L" [1.0 1.0 1.0]
"point from" [-0.144115999341 0.792566001415 1.10967004299]
"point to" [-0.01450496912 0.57405886054 0.142480552197]
"float coneangle" [14.5]
"float conedeltaangle" [3.0]
AttributeEnd
The spotlight is only used as a filllight for my special scene and not really required, by the way.
The two Rotations are there for: 1) Rotate the image to a Lux-zero-point, 2) rotate the image to reflect the light rotation (Y) in Poser.
Using the old "skydome" is totally obsolete. Just an overhead on geometries and one has to use something like IBL anyway.
Maybe one want to use a skydome while in Poser just to see how it looks. But don't forget to switch the skydome to invisible before export.