Auto Hosek&Wilkie lighting by turbidity

Forums: Auto Hosek&Wilkie lighting by turbidity
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

Auto Hosek&Wilkie lighting by turbidity

Postby SSmolak » Wed Sep 21, 2022 1:06 am

SSmolak Wed Sep 21, 2022 1:06 am
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&hilit=exposure#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 51 times
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Licensed Customer
 
Posts: 1085
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland

Re: Auto Hosek&Wilkie lighting by turbidity

Postby KeeWe » Wed Sep 21, 2022 12:30 pm

KeeWe Wed Sep 21, 2022 12:30 pm
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
KeeWe
Licensed Customer
Licensed Customer
 
Posts: 279
Joined: Wed Nov 27, 2013 11:32 am

Re: Auto Hosek&Wilkie lighting by turbidity

Postby SSmolak » Fri Sep 23, 2022 3:24 pm

SSmolak Fri Sep 23, 2022 3:24 pm
In attachment first version.
Attachments
Octane_HosekWilkie_AutoTurbidity.zip
(55.12 KiB) Downloaded 39 times
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Licensed Customer
 
Posts: 1085
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland

Re: Auto Hosek&Wilkie lighting by turbidity

Postby SSmolak » Fri Sep 23, 2022 11:16 pm

SSmolak Fri Sep 23, 2022 11:16 pm
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 47 times
AutoTurbidity_demo.zip
(995.78 KiB) Downloaded 51 times
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Licensed Customer
 
Posts: 1085
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland

Re: Auto Hosek&Wilkie lighting by turbidity

Postby AaronWestwood » Wed Sep 28, 2022 6:31 am

AaronWestwood Wed Sep 28, 2022 6:31 am
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
AaronWestwood
Licensed Customer
Licensed Customer
 
Posts: 140
Joined: Sun Feb 26, 2017 3:01 pm

Re: Auto Hosek&Wilkie lighting by turbidity

Postby SSmolak » Thu Sep 29, 2022 4:06 pm

SSmolak Thu Sep 29, 2022 4:06 pm
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 40 times
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Licensed Customer
 
Posts: 1085
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland

Re: Auto Hosek&Wilkie lighting by turbidity

Postby SSmolak » Tue Oct 11, 2022 7:45 am

SSmolak Tue Oct 11, 2022 7:45 am
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 33 times
Octane_HosekWilkie_AutoTurbidity_V3b.zip
(218.13 KiB) Downloaded 36 times
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Licensed Customer
 
Posts: 1085
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: No registered users and 12 guests

Tue Apr 16, 2024 12:39 pm [ UTC ]