Page MenuHome

LookDev: Lock HDRI rotation to View

Authored by Pablo Dobarro (pablodp606) on Aug 13 2020, 8:06 PM.
"Love" token, awarded by bnzs."Love" token, awarded by andruxa696."100" token, awarded by Frozen_Death_Knight."Love" token, awarded by DiogoX2."Love" token, awarded by lopoIsaac.



This adds an option for the HDRI rotation to follow the view rotation.
When this option is enabled, this allows EEVEE materials to be used as
matcaps for sculpting and painting.

This has an extra performance cost when orbiting around the model as the
lookdev cache needs to be recalculated, but in my test it is barely

Diff Detail

rB Blender

Event Timeline

Pablo Dobarro (pablodp606) requested review of this revision.Aug 13 2020, 8:06 PM
Pablo Dobarro (pablodp606) created this revision.

This is the most complex scene I have in a GTX1650 laptop with the HDRI rotation locked to the view. I don't see much difference between orbit, panning and zoom:

Clément Foucault (fclem) requested changes to this revision.Sep 17 2020, 1:45 PM
Clément Foucault (fclem) added inline comments.

I would add the option as an inverted boolean (enable by default) and display it as an icon just like we do for the workbench studiolights.


Here you should check if the studiolight_matrix changed. This would avoid the hack in view3d_edit.c.

This revision now requires changes to proceed.Sep 17 2020, 1:45 PM
Pablo Dobarro (pablodp606) marked an inline comment as done.
  • Rebase
  • Review Update
Pablo Dobarro (pablodp606) marked an inline comment as done.Sep 18 2020, 12:43 AM

Tested the patch myself and the shimering of caused by the low res cubemap is a bit distracting. I can't find a way to fix that so I will just accept this. Moreover, the user can hide the world background if needed.

This revision is now accepted and ready to land.Sep 18 2020, 6:53 PM
This revision was automatically updated to reflect the committed changes.