Skip to content
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

[Ready for Merge] Hdrp template iet #5286

Merged
merged 36 commits into from
Aug 18, 2021
Merged

Conversation

pierre-unity
Copy link
Contributor

@pierre-unity pierre-unity commented Aug 3, 2021

Purpose of this PR

This PR adds a brand new In-Editor Tutorial (IET) to the HDRP Scene Template.

More than a dozen tutorials cover a wide range of HDRP basics and features, from Sky to Fog, as well as Light Baking and Decals.

image

The tutorials are meant to be fairly short. Additional resources are linked at the end of each section, for users to dive deeper. Again, it's not meant to be an in-depth tutorial.

image

Other noticeable changes:

  • Decals have been repositioned/optimized
  • The IET framework package has been added to the package.manifest
  • Excluded all VFX from TAA
  • Fixed doubles materials in FR_Platform_01.prefab

Comments to reviewers

To access the tutorials, in case the window doesn't already show up, go to the main toolbar at the top of Unity and pick Tutorials > Show Tutorials.

To recreate a first experience for the user, choose Tutorials > Debug > ClearInitCodeMarker. This should ensure the tutorial window is loading properly (as a popup).

Check that the instructions are clear enough, easy to follow.

Check that all the links provided are pointing to the right place. (I did notice that the "latest" manual links often points to HDRP 11 doc pages, I suppose that's normal, as HDRP 12 is still in beta)

Each section should be taking no less than a couple of minutes to complete.

Something important, is to make sure that the template window shows up when opening the tutorial for the first time. I do not know exactly how this works for this scene however (startup code?).

Check as well the tutorial on both Windows and Mac (or other Unix platforms), because the parser used for the text may result in slightly different results. So it you see odd spacing, or strange line returns, this might be a bug due to some hidden Unix characters that are not interpreted correctly on Windows, such as "\r".

@github-actions
Copy link

github-actions bot commented Aug 3, 2021

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

Copy link
Collaborator

@RSlysz RSlysz left a comment

Choose a reason for hiding this comment

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

There is a lot of change.

Ihave not reviewed all datas. But there is perhaps something on scripts (see below)

Also I tried the tutorial on 2022.1.0a4 and I see this strange scrollbar. It serve no purpose as there is nothing at right
image

@@ -0,0 +1,61 @@
using UnityEngine;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I dont get the purpose of this script. Callbacks are never called anywhere. There is a ScriptableObject created from it but its GUID is nowhere which means it is used in no scene/prefab/assets. Is it some dead code to remove ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mikaisomaa, is this TutorialCallbacks file absolutely necessary?

I did re-generate it, because upgrading from the preview version of the IET package to the new one created errors on this script. However, it doesn't indeed seem to be necessary at all.

Is it safe to remove?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By the way, the scroll bar is a bug that the IET team will investigate.

removed the iet authoring framework (not needed)
updated input system (autoupdates regardless)
removed initcodemarker
created a tutorial layout to ensure correct display of the tutorial window
@pierre-unity
Copy link
Contributor Author

I've added a default layout for tutorial, to make sure that the tutorial window is docked on the very right, rather than floating around (users will most likely be annoyed at it an close it as a result...).

It should look like this:
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.

Testing status: Complete

Issues:

  1. FIXED No Welcome page error. We can create the welcome page and assign it to the tutorial or not use it at all ?
DMuZYrGIXt.mp4
  1. KNOWN CANT BE FIXED IN PR Memory leak error

Reproduction:

  1. Go through the fist tutorial
  2. Open the second
  3. Error
MitxIM32kI.mp4
  1. FIXED Light Cookies tutorial is broken, file needs updating. Cant proceed to the end.
1xnJOq9epZ.mp4
  1. DOESNT REPRODUCE Light layer names are lost

image

Suggestions:

  1. Add among the tutorials a link to feedback. Can be a quiz or forum page. To know what people liked it, what they disliked etc. Data for improvement

image

  1. FIXED Add a step mentioning that you need to also go to Lighting tab and select the Static Lighting Sky or use Dynamic mode. This is arguably the most confusing part of HDRP and users often bump into it. Maybe worth explaining how to "get" the ambient lighting

image

  1. Do we want this on to increase performance?

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.

Updated the review

@pierre-unity
Copy link
Contributor Author

New Welcome Page was added:

image

- removed callback script asset to avoid memory leaks
- added more information about ambient modes in the sky section
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.

Tried to have another look, but having new issues with the first tutorial

K0BR54gx7Q.mp4

@pierre-unity
Copy link
Contributor Author

Tried to have another look, but having new issues with the first tutorial

K0BR54gx7Q.mp4

Thanks, yes these errors will popup at random times. The IET team is working on them, or trying to find out at least. It's a known issue with the IET package.

@pierre-unity pierre-unity requested a review from iM0ve August 9, 2021 09:47
- fixed a guid issue with "before you start" tutorial
- reflection probes wants a new guid apparently...
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.

I updated my review. All issue fixed, 2 concerns are still active, but not blocking the PR

@pierre-unity pierre-unity removed the request for review from sebastienlagarde August 11, 2021 11:04
@pierre-unity
Copy link
Contributor Author

Added a section for frame settings as well:

image

And polished some bits regarding the global ambient probe:

image

image

@pierre-unity pierre-unity marked this pull request as ready for review August 11, 2021 16:18
@pierre-unity pierre-unity changed the title Hdrp template iet [Ready for Merge] Hdrp template iet Aug 16, 2021
@pierre-unity pierre-unity removed the request for review from danieltodorov3d August 17, 2021 10:54
@JulienIgnace-Unity JulienIgnace-Unity merged commit 11dd01b into master Aug 18, 2021
@JulienIgnace-Unity JulienIgnace-Unity deleted the hdrp-template-iet branch August 18, 2021 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants