Auto Hosek&Wilkie lighting by turbidity

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

Like in other render engines which use Hosek&Wilkie sky model turbidity parameter is not connected to Sun strenght, shadow softness, overall sky power and ambient strenght/color. I made another script ( after automated Exposure viewtopic.php?f=9&t=80367&p=415184&hili ... re#p415184 ) that automate lighting using only turbidity strenght. So you can simulate clear sky <-> cloudy sky using only one parameter in realtime which is very useful in animation.

All parameters were very carefully implemented and they are physically accurate.
Cloudiness-scale-according-to-weather-data-in-Quebec-City-March-21-st-to-March-29-th.png
Main idea was to make automated transition from clear sky to cloudy ambient lighting without changing other parameters than Turbidity. Fully working script with user interface will be ready within days. Small preview how it works :
Attachments
AutoHosekWilkieTurbidity.zip
(15.96 MiB) Downloaded 74 times
Architectural Visualizations http://www.archviz-4d.studio
User avatar
KeeWe
Licensed Customer
Posts: 296
Joined: Wed Nov 27, 2013 11:32 am

Any chance we get it build in an upcoming release?
6850k // 32 GB // 1080, 1080 Ti, 2080 Ti // Win 10 // C4D 19.068
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

In attachment first version.
Attachments
Octane_HosekWilkie_AutoTurbidity.zip
(55.12 KiB) Downloaded 60 times
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

Final version. Added Turbided Sky destination power and Sun position so every important parameters are on the same tab.
AutoTurbidity_v2b.jpg
Attachments
Octane_HosekWilkie_AutoTurbidity_V2b.zip
(55.83 KiB) Downloaded 71 times
AutoTurbidity_demo.zip
(995.78 KiB) Downloaded 72 times
Architectural Visualizations http://www.archviz-4d.studio
AaronWestwood
Licensed Customer
Posts: 141
Joined: Sun Feb 26, 2017 3:01 pm

SSmolak wrote:Final version. Added Turbided Sky destination power and Sun position so every important parameters are on the same tab.
AutoTurbidity_v2b.jpg
This is amazing! Been playing with it for an hour just now and this works so much better than what's built in. The automation and realism come out of the box, love love love it.

Following from your other threads, now we just need an auto exposure/auto WB (as options ((not from you, but built in ;) )
3D Environment Artist
http://www.artstation.com/aaronwestwood
2 x 4090 // 13900KS // 96GB 5600mHz DDR5 // Windows 11
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

Glad to hear that you like it :)

Updated version with White Point temperature correction slider.

Please take in mind that Octane default white point is set to 15% because I think that by default it is little to warm. My default 0% was measured on 75% white wall material and Sun at 45degree to be exactly white without yellowish Sun color cast.

This version needs to select proper Octane Camera Tag ( not Camera Object ) to make color correction works.
AutoTurb.jpg
Attachments
Octane_HosekWilkie_AutoTurbidity_V2c.zip
(55.28 KiB) Downloaded 63 times
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

Final new revised version.

Sky lighting was done from one of the best HDR's from PG Skies

Clear Sky - is 1216_v5.hdr ( https://www.pg-skies.net/products/1216 )
Cloudy Sky is - 1927_v5.hdr ( https://www.pg-skies.net/products/1927 )

Cloudy Sky Parameter at 0% is exactly simulation of clear sky HDR map and Cloudy Sky parameter at 80% is exactly simulation of Cloudy HDR map.

New version has all parameters at 0% by default to make them as real as possible to simulate these HDR lighting.
You can change "Cloudy Sky" percentage and all other parameters will simultaneously ( internally ) change too including sky color cast shading, Sun intensity, Sun shadow fallow and more.
AT.jpg
Attachments
demo.zip
(11.05 MiB) Downloaded 58 times
Octane_HosekWilkie_AutoTurbidity_V3b.zip
(218.13 KiB) Downloaded 60 times
Architectural Visualizations http://www.archviz-4d.studio
Post Reply

Return to “Maxon Cinema 4D”