Convert World Sky Texture and Sun to Cycles

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
MaxNadolny
Posts: 8
Joined: Sat May 11, 2019 1:58 pm

Convert World Sky Texture and Sun to Cycles

Post by MaxNadolny »

Hi.

Is it possible to convert World Sky texture and the Sun from Lux to Cycles to behave the same way.
I did some rendering tests and found that Hosek/Wilkie texture in Lux looks better than in Cycles.
In other words I need to achieve the same results in Cycles like in Lux.
Could you please provide some instructions how to do that.
I know that Lux uses Hosek/Wilkie Sky texture, however Turbidity value max is 30, in Cycles 10.
Also in Cycles no possibility to change Sky texture color and Sun has no turbidity.

Thanks a lot.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Convert World Sky Texture and Sun to Cycles

Post by Dade »

It should be possible to use panoramic camera placed at (0, 0, 0) to render an HDR image of the Lux sky to than use in Cycles :idea:
Support LuxCoreRender project with salts and bounties
MaxNadolny
Posts: 8
Joined: Sat May 11, 2019 1:58 pm

Re: Convert World Sky Texture and Sun to Cycles

Post by MaxNadolny »

I know about this method. But it's not the best solution because as I know Lux uses Cycles Sky texture. But with different settings. So better will be to know how to change Sky texture settings to match Lux. Also sun in Lux uses turbidity. In Cycles there is no turbidity for the sun.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Convert World Sky Texture and Sun to Cycles

Post by Dade »

MaxNadolny wrote: Sat May 11, 2019 3:03 pm I know about this method. But it's not the best solution because as I know Lux uses Cycles Sky texture. But with different settings. So better will be to know how to change Sky texture settings to match Lux. Also sun in Lux uses turbidity. In Cycles there is no turbidity for the sun.
I guess the only way is to dig in both sources. Lux one is here https://github.com/LuxCoreRender/LuxCor ... 2light.cpp and the default parameter values are here https://github.com/LuxCoreRender/LuxCor ... s.cpp#L227
Support LuxCoreRender project with salts and bounties
MaxNadolny
Posts: 8
Joined: Sat May 11, 2019 1:58 pm

Re: Convert World Sky Texture and Sun to Cycles

Post by MaxNadolny »

Thanks for the response.

It's too complicated method to port sources. I though it's possible to do by tweaking nodes in Cycles.
I rendered Lux world sky as hdr and use it in Cycles.
Would you like to see my renders to see the difference?
MaxNadolny
Posts: 8
Joined: Sat May 11, 2019 1:58 pm

Re: Convert World Sky Texture and Sun to Cycles

Post by MaxNadolny »

What do you think about my results? Which one do you like more?
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Convert World Sky Texture and Sun to Cycles

Post by Sharlybg »

2ND for me.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
MaxNadolny
Posts: 8
Joined: Sat May 11, 2019 1:58 pm

Re: Convert World Sky Texture and Sun to Cycles

Post by MaxNadolny »

The second image is Cycles. Personally I prefer Lux render result.
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Convert World Sky Texture and Sun to Cycles

Post by Sharlybg »

MaxNadolny wrote: Thu May 16, 2019 3:42 pm The second image is Cycles. Personally I prefer Lux render result.
Look like tonemapping isn't the same :roll:
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
CodeHD
Donor
Donor
Posts: 437
Joined: Tue Dec 11, 2018 12:38 pm
Location: Germany

Re: Convert World Sky Texture and Sun to Cycles

Post by CodeHD »

I like the Lux result a bit better

pro-lux:
- the stacks of plates have stronger shadows in between (not necessarily more correct, but looks nicer), and it looks a bit overexposed on the top, which I would expect from a photo in this situation. The cycles plates are very "milky", like when you reduce highlights in a raw converter.
- I like the color of the bottles better
- The fume hood look more like metal. Cycles is too flat. (concerns the other metals parts, too, though too a lesser degree)
- I like the floor a bit better. Unnaturally glossy in cycles for wood (?)

pro-cycles:
- Some of the pots stored under the table are more glossy, which I like for the same reason as the fume hood in lux.

-pro-neither:
- The reflection seen on the pots is very different. I wonder why that is? You definitley made changes between the images, I can see some of the cupboard-door-knobs moving :D
- In both cases, maybe some texturing is missing. You know, giving everything those slight imperfections like scratches or a speck of dirt. I like, for example, that you didn't stack the plates perfectly ;)
Post Reply