Skip to content

Hdrp - Fix volumetric fog presets #2062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 27, 2020
Merged

Conversation

anisunity
Copy link
Contributor

This PR is done on top of the volumetric user experience PR #1806
It adds quality presets of the control mode, budget and depthratio.
I changed the volumes in the HDRP tests to put them back to custom in order to not break the tests.

Testing status
HDRP tests are green locally.
checked that the right values where passed when changing from one preset to an other and to the custom mode (on the template)

@anisunity anisunity added the HDRP label Sep 30, 2020
@anisunity anisunity requested review from sebastienlagarde and a team September 30, 2020 17:12
@anisunity anisunity self-assigned this Sep 30, 2020
@github-actions
Copy link

It appears that you made a non-draft PR!
Please convert your PR to draft (button on the right side of the page)
and cancel any jobs that started on Yamato.
See the PR template for more information.
Thank you!

Copy link
Contributor

@iM0ve iM0ve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its unclear what the feature does exactly from UX point of view, see below issues:

  1. Based on indentation, Quality should control 5 items. But only 3 are grayed out. Should quality setting affect Anisotropy? If not we should change identation

Identation

  1. When changing quality, for example med to low. None of the settings are refreshed, resulting in uncertainty of what is actually changed. I think this will be reworked by UX team, because its not only for fog. But still mentioning since its an issue, maybe its worth waiting for the rework before making the quality presets?

Zft9sy9ldS

  1. To find out what do the Quality features do exactly, usually one would go to the Lighting Quality section and check. But regarding Fog, there is no such setting. Again resulting in uncertainty of what values are affected and how. Unclear why quality levels are not found in the expected location.

QualitySettings

@anisunity
Copy link
Contributor Author

  • The identation is fixed.
  • The preview of the values works for almost no volume overrides (if none?), so it will not be working for this one.
  • I added the display of the values on the asset
    image

Copy link
Contributor

@iM0ve iM0ve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My previous concerns were addressed. Found one more small issue. It is possible to set higher values than 1 in the quality settings, breaking fog if done so. We should limit to 0 - 1

NAjfYOQpro

@sebastienlagarde sebastienlagarde changed the base branch from HDRP/staging to master October 22, 2020 13:51
@anisunity
Copy link
Contributor Author

@iM0ve can you please check the changes, i just pushed the fix for the review you made.

Copy link
Contributor

@iM0ve iM0ve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issues fixed. A great addition, however, I dont think it should be hidden in advanced.

Removing the reprojection frame setting.
Making the volumetric scene view reprojection work.
Reduce the cost of the volumetric lighting gaussian denoising.
Adding the option to have only the directional light contributing to the volumetrics.
Adding a new configuration mode for screen resolution and volume slices.
Changing the maximal values for the volumetric resolution and slices.
Adding a more intuitive way of defining the denoising process of the volumetrics.
Changing what is in the advanced mode for volumetrics
Renaming user-facing parameter names.
Displaying an info message when the user triggers anistropy
Restoring the right values for the tests
@anisunity anisunity force-pushed the HDRP/volumetric-fog-presets branch from 21b0e16 to d8cb3b7 Compare October 23, 2020 10:23
/// <summary>Controls the budget of the volumetric fog effect.</summary>
public float[] Fog_Budget = new float[s_QualitySettingCount];
/// <summary>Controls how the budget is shared between screen resolution and depth.</summary>
public float[] Fog_DepthRatio = new float[s_QualitySettingCount];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, so it seems we currently only added quality presets for the Balance mode. (Fog Budget, DepthRatio), however the Manual mode still has none. Is it intended? I think we will need to add them, to comply with the Quality UI pattern, otherwise it will be unclear to users if they change quality preset and nothing happens.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is intended, the manual mode is not used for the preset as it is considered "Advanced" so having default values for it doesnt make sense to me.

@johnpars
Copy link
Contributor

Updated the editor to support some of the new quality UX functionality:

FogQuality

@johnpars
Copy link
Contributor

Also, there was a small general issue with Quality UX override state that has been fixed here: #2382

@sebastienlagarde sebastienlagarde changed the title Hdrp/volumetric fog presets Hdrp - Fix volumetric fog presets Oct 27, 2020
@sebastienlagarde sebastienlagarde merged commit 7e16482 into master Oct 27, 2020
@sebastienlagarde sebastienlagarde deleted the HDRP/volumetric-fog-presets branch October 27, 2020 22:17
sebastienlagarde pushed a commit that referenced this pull request Oct 27, 2020
* Fixed the second pass in the denoising being done on the wrong axis.
Removing the reprojection frame setting.
Making the volumetric scene view reprojection work.
Reduce the cost of the volumetric lighting gaussian denoising.
Adding the option to have only the directional light contributing to the volumetrics.
Adding a new configuration mode for screen resolution and volume slices.
Changing the maximal values for the volumetric resolution and slices.
Adding a more intuitive way of defining the denoising process of the volumetrics.
Changing what is in the advanced mode for volumetrics
Renaming user-facing parameter names.
Displaying an info message when the user triggers anistropy
Restoring the right values for the tests

* Implement the quality UX functionality for relevant Fog quality settings

* Apply the UX requested checkbox indentation

Co-authored-by: John Parsaie <johnpa@unity3d.com>
jessebarker added a commit that referenced this pull request Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants