tjohn opened this issue on Dec 13, 2002 ยท 11 posts
TMGraphics posted Fri, 13 December 2002 at 8:05 AM
Attached Link: http://www.ict.usc.edu/~jcohen/lightgen/lightgen.html
That is real good information, thanks! There is another venue you can tinker with, there ia a plug-in for HDRShop called LightGen, you take a HDRI image and run the plug-in on it and it will create a text file with X,Y,Z coordinates of 20 or so points of light and their colors. (You can use 10 or even 30 or more) You take this information and create point lights at the specific coordinates, color them accordingly, and ta da! You can then use the HDRI image, converted to a JPG, as a reflection and/or environment map. Example file using the "Kitchen.HDR" image and 10 points for lights. Light0001: Color: 585.219 503.016 474.023 Direction: -0.117328 -0.0871853 0.989259 Light0002: Color: 277.733 239.911 201.376 Direction: -0.297418 -0.952537 -0.0649301 Light0003: Color: 485.126 411.573 368.069 Direction: 0.989031 -0.0936083 0.114262 Light0004: Color: 369.819 349.904 399.072 Direction: -0.53859 0.529147 -0.655686 Light0005: Color: 1892.71 2111.49 2298.06 Direction: -0.486254 -0.338903 -0.80542 Light0006: Color: 502.765 546.356 662.831 Direction: 0.310797 0.512217 -0.800649 Light0007: Color: 3111.94 4187.11 5226.72 Direction: 0.264254 -0.422419 -0.867025 Light0008: Color: 435.536 370.166 321.171 Direction: -0.991839 -0.0464208 0.118743 Light0009: Color: 1249.27 806.41 408.75 Direction: 0.429011 -0.826688 0.364055 Light0010: Color: 397.616 252.073 191.132 Direction: 0.202338 0.914285 0.350916 I have not tried this as yet, so it is just an idea to save rendering time and still get the lights and their colors according to a HDR image. If you give it a try, please post a WIP. I will get some time this weekend and give it a go then. TMG