Commit Graph

35 Commits

Author SHA1 Message Date
benjamin rouveyrol
65958fc6a8 Compilation fixes
#rb david.harvey
#preflight none

[CL 20349759 by benjamin rouveyrol in ue5-main branch]
2022-05-24 12:06:02 -04:00
benjamin rouveyrol
7a21ea463f hdr multi window/display support
This improves how the editor deals with displays that have different capabilities (some with HDR, others without).
Centralize where the CVars are accessed
Have the swapchain created in SDR when shown on a SDR display
Make sure color gamut matches the one supported by the platform/swapchain.
Allow Movie scene capture to override the gamut/output format to keep existing behaviour (MovieSceneCapture relies on swapchain data)

#preflight 628baef5183c1e13462a504d
#jira UE-150952
#rb luke.thatcher

[CL 20347067 by benjamin rouveyrol in ue5-main branch]
2022-05-24 09:04:39 -04:00
benjamin rouveyrol
731de80428 Have r.HDR.Display.ColorGamut enum values defined in a single place and replaced hardcoded numbers by enum values.
#jira UE-148995
#preflight 62716752e16e280be614c38b
#rb eric.renaudhoude jeff.newquist

[CL 20056544 by benjamin rouveyrol in ue5-main branch]
2022-05-05 08:49:19 -04:00
benjamin rouveyrol
30ea8aca4f Have r.HDR.Display.OutputDevice enum values defined in a single place and replaced hardcoded numbers by enum values.
#preflight 62559eb569015afc27ac1833
#jira UE-148598
#rb eric.mcdaniel

[CL 19784660 by benjamin rouveyrol in ue5-main branch]
2022-04-18 09:20:23 -04:00
Marc Audy
ada7c144fa Merge //UE5/Release-Engine-Staging @14903491 to //UE5/Main
[CL 14906022 by Marc Audy in ue5-main branch]
2020-12-11 14:21:20 -04:00
max chen
b76da988fd Movie Scene Capture: Add -PostProcessingMaterial commandline argument
#rb matt.hoffman
#jira none

#ROBOMERGE-SOURCE: CL 11636059 in //UE4/Release-4.25/... via CL 11636063
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v655-11596533)

[CL 11636099 by max chen in Main branch]
2020-02-26 12:51:12 -05:00
Rolando Caloca
bbb9564388 Copying //UE4/Dev-RenderPlat-Staging@11110326 to //UE4/Main
#rb none
#rnx

[CL 11110369 by Rolando Caloca in Main branch]
2020-01-24 18:07:01 -05:00
JeanMichel Dignard
70d074639f Merging //UE4/Dev-Main @ 10886849 to Dev-Tools-Staging (//UE4/Dev-Tools-Staging)
#rb none
#rnx

[CL 10906274 by JeanMichel Dignard in Dev-Tools-Staging branch]
2020-01-08 13:26:18 -05:00
ryan durand
0f0464a30e Updating copyright for Engine Runtime.
#rnx
#rb none


#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870549 by ryan durand in Main branch]
2019-12-26 14:45:42 -05:00
Chris Gagnon
346a4b05ea Copy up from Dev-Editor @10681378
#rb none

[CL 10837446 by Chris Gagnon in Dev-Tools-Staging branch]
2019-12-19 18:07:47 -05:00
Chris Gagnon
d7d4ee7b38 Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor) at CL 7473521
#rb none
#fyi Max.Chen, Tim.Gautier

[CL 7614721 by Chris Gagnon in Dev-Editor branch]
2019-07-24 15:05:52 -04:00
max chen
a471b1c5ee Movie Scene Capture: Changed from Warning to Display
#jira UE-77408
#rb none

#ROBOMERGE-SOURCE: CL 7408869 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v371-7306989)

[CL 7408897 by max chen in Main branch]
2019-07-17 12:00:04 -04:00
Chris Gagnon
56e73ed431 Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 6042607 by Chris Gagnon in Dev-Editor branch]
2019-04-22 18:56:08 -04:00
max chen
1f39fb6998 CompositionGraphCaptureProtocol now doesn't stop on "," separators so that you can specify multiple passes at once. This fixes a regression and doesn't add any new behavior to CompositionGraphCaptureProtocol.
#lockdown Nick.Penwarden
#rb matt.hoffman
#jira UE-72198

#ROBOMERGE-SOURCE: CL 5691625 in //UE4/Release-4.22/...
#ROBOMERGE-BOT: RELEASE (Release-4.22 -> Main)

[CL 5711354 by max chen in Main branch]
2019-04-03 13:30:49 -04:00
Chris Gagnon
1dd3e0189f Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4730305 by Chris Gagnon in Dev-Editor branch]
2019-01-15 18:47:22 -05:00
Francis Hurteau
57c677da93 Copying //UE4/Dev-Enterprise@4705006 to Dev-Main (//UE4/Dev-Main)
#rb none
#lockdown Nick.Penwarden

[CL 4705151 by Francis Hurteau in Main branch]
2019-01-10 17:26:53 -05:00
Chris Gagnon
8fc25ea18e Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4676797 by Chris Gagnon in Dev-Editor branch]
2019-01-02 14:54:39 -05:00
Ben Marsh
7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00
JeanMichel Dignard
ca8f2a2c24 Copying //UE4/Dev-Enterprise to //UE4/Dev-Main (Source: //UE4/Dev-Enterprise @ 4279600)
#rb none
#lockdown Nick.Penwarden

============================
  MAJOR FEATURES & CHANGES
============================

Change 4073383 by Patrick.Boutot

	[AJA] Set base timecode for AJA TimecodeProvider

Change 4075631 by Patrick.Boutot

	Change icon for TimecodeSynchronizer.
	Update TimecodeSynchronizer with the new AJA delayed open sources.
	Add TimecodeProvider to TimecodeSynchronizer. Can now sync with TimecodeProvider or a master.
	Make sure the source are ready before viewing them.
	Remove PreRoll command.

Change 4077328 by JeanMichel.Dignard

	Fixed SoftObjectPtr/Paths becoming invalid when saving a new world since it's being moved from /Temp/Untitled to its own package.

	#jira UEENT-1423

Change 4077338 by Rex.Hill

	USD plugin updated to v8.4 with python support

Change 4079063 by Rex.Hill

	USD sdk recompiled as vs2015 targeting older version of CRT, also dependency added for PythonScriptPlugin

Change 4079911 by Rex.Hill

	USD pyd files recompiled

Change 4080058 by Rex.Hill

	Fix usd plugin loading, added missing libtrace.dll

Change 4080376 by Matt.Hoffman

	Improvements to Sequence Recorder's public API to expose more functionality for third parties.

Change 4084984 by Matt.Hoffman

	Sequence Recorder can now set a global time dilation when recording starts, optionally ignoring the dilation when recording keys. This is useful for recording objects in your scene that move too fast to track with a camera but still ending up with the same length recording in the end.

	#jira UESP-670

Change 4086688 by Matt.Hoffman

	Exposes getting and setting keys from sequencer sections via the scripting layer. Examples for how to work with Python and key data can be found in /Plugins/MovieScene/SequencerScripting/Content/Python in the form of "sequencer_examples.py" and "sequencer_key_examples.py". Documentation on how to use these examples is included in the python file.

	#jira UESP-547

Change 4088904 by Max.Chen

	Sequence Recorder: Set actor tags as unique

Change 4089176 by Max.Chen

	Sequence Recorder: Add option to record to the target level sequence playback range length.

Change 4089180 by Max.Chen

	Sequence Recorder: Add protection agains null movie scene sections

Change 4089205 by Max.Chen

	Sequence Recorder: Save recorded audio files if auto save is on.

	#jira UESP-660

Change 4089206 by Max.Chen

	Sequencer: When importing fbx, if a camera is created, force mapping to be by name matching only so that other nodes in the fbx file do not get mapped onto the newly created camera.

	#jira UE-59347

Change 4089214 by Max.Chen

	Sequence Recorder: Add support for looping/rolling takes

	#jira UESP-658

Change 4089280 by Max.Chen

	Sequence Recorder: Added support to specify properties from actor classes (camera rig rail - current position on rail)

Change 4093824 by Andrew.Rodham

	Editor: Added option to class pickers to force use of class Display Names

Change 4093826 by Andrew.Rodham

	Removed implicit gamma to linear conversion from EXR writer

	  - This was only implemented for exr data that was supplied as 8 bits per channel (ie. uint8), but there is no way of communicating with the Image Writer API to tell it whether you want it to do that conversion. This code is too low level to be making assumptions about what color-space the data is in.
	  - This ensures that R8G8B8A8 render targets exported as EXR are exported as-is without any modification

	#jira UESP-545

Change 4093830 by Andrew.Rodham

	Fixed shutdown crash when destroying a media player that was still playing

Change 4093831 by Andrew.Rodham

	Fixed exception handling in png image wrapper

Change 4093833 by Andrew.Rodham

	Slate: Fixed not being able to set a hyperlink on notifications with unbound attributes that had explicit values set

Change 4093841 by Andrew.Rodham

	Added a utility struct for dealing with editor actor layers from within Blueprints

Change 4093867 by Andrew.Rodham

	Sequencer: Added the ability to implement custom capture protocols for movie scene captures

	  - Converted capture protocol settings and instances to be single UObjects. This unifies the two concepts, and allows for Blueprint implementations.
	  - Removed capture protocol registry since it is no longer required.
	  - Removed FCaptureProtocolID in favor of class discovery at runtime.
	  - Added new module "ImageWriteQueue", responsible for asynchronously managing a queue of image file write operations.
	  - Added new capture protocol for capturing final pixels to EXR (including burn-ins)
	  - Added a new BP function, ExportToDisk, accessible on all UTexture properties for writing texture and render target data to image files
	  - New global BP nodes for querying movie capture status: IsCaptureInProgress, FindCaptureProtocol
	  - Removed Flush On Draw functionality from viewports and frame grabber since it is unnecessary.

	#jira UESP-545

Change 4094239 by Rex.Hill

	Export sequence to usd
	#jira UESP-563

Change 4094393 by Andrew.Rodham

	Renamed references of 'BufferName' to 'StreamName' for user defined capture protocols

Change 4094622 by Patrick.Boutot

	Add MediaFrameworkUtilitites plugin.
	Add MediaBundle. An asset that create a MediaPlayer, MediaSource, MediaTexture and MaterialInstance.
	Add MediaBundleActor. Can auto play a MediaBundle when click & drag in the viewport.
	Add the Media category in placement mode.
	Add flag on the MediaPlayer that prevent it from closing when PIE is started or closed.

Change 4094673 by Anousack.Kitisa

	Created widget to display metadata as list view of tags/values.

	#jira UEENT-1296

Change 4094795 by Simon.Therriault

	MediaFrameworkUtilities

	- Adding default media texture for default media bundle material
	- Changed default material to unlit

Change 4094867 by Rex.Hill

	Usd sequence exporter camera rotation corrected

Change 4096426 by JeanLuc.Corenthin

	- Fixed logic of FLayoutUV::FindCharts to properly extract the list of triangles based on a mesh description.
	- Fixed logic in FMeshDescriptionOperations::ConverToRawMesh & FMeshDescriptionOperations::ConvertHardEdgesToSmoothGroup to take in account the fact that the arrays are sparse arrays
	- Fixed logic in FQuadricSimplifierMeshReduction::ReduceMeshDescription which wrongly assumed that number of vertex instances equals three times the number of triangles.
	- Added early-out in UMeshDescription::ComputePolygonTriangulation when perimeter has 3 vertex indices
	- Changed version of static mesh and mesh description
	- Fixed issue with mismatching attribute set when generating LOD meshes

	#jira UEENT-887, UE-59474, UE-59471

Change 4097101 by Patrick.Boutot

	Remove warning in PropertyEditorClass when trying to load the "None" class.

Change 4097443 by Rex.Hill

	USD export bake keys

Change 4097468 by Patrick.Boutot

	Edit and initialize the timecode provider of the editor.

Change 4097479 by Anousack.Kitisa

	Added support for commandlet and unattended script modes to Plugin Warden.

	#jira UE-57333

Change 4097578 by Rex.Hill

	USD export tweaks

Change 4098257 by Simon.Therriault

	GarbageMatteCaptureComponent

	- Adding spawned actor tracking to be able to use GarbageMatteActor spawned in editor.

Change 4100072 by Jamie.Dale

	Updated wrapped enums to be more consistent with native Python enums

	 - Wrapped enums now generate values that are instances of the enum type itself, containing a name and value field (like native Python enums).
	 - Wrapped enums are now strongly typed and do not allow implicit conversion from numbers (explicit casting is available, but throws if the value is unknown).
	 - Wrapped enum entries may be compared against numbers (even numbers that don't have valid values) via the == and != operators (like IntEnum in Python).
	 - Wrapped enums may now be iterated (like native Python enums).
	 - Wrapped enums now return a length based on their number of entries (like native Python enums).
	 - ScriptName meta-data can now be used with enum entries.

Change 4100255 by Patrick.Boutot

	[MediaBundle] Modify the base shader to support "failed texture"

Change 4103838 by Simon.Therriault

	MR Garbage Matte Component

	- Adding FocalDriver interface to be able to poll focal information from outside (cinecamera). Could be updated to be event driven.

Change 4115616 by Rex.Hill

	USD Exporter now exposed to UI

Change 4116333 by Simon.Therriault

	MediaBundle

	- Updated default media bundle to include lens distortion and chromakeying
	- Added possibility to spawn material editor for MediaBundle inner material
	- Fix for inner objects flags preventing asset deletion
	- Fix for CloseMedia not being called when changing map

	Lens Distortion
	- Fix for not being able to generate a Identity lens displacement map

Change 4117952 by Rex.Hill

	Expose OpenEditorForAssets to python

Change 4118498 by Rex.Hill

	Sequencer USD export can now export properties of actors in levels

Change 4118515 by Rex.Hill

	Update sequencer export task comment

Change 4118706 by Rex.Hill

	Sequencer USD updates

Change 4118968 by Rex.Hill

	Sequencer USD export now supports visibility

Change 4119702 by Simon.Therriault

	MediaBundle

	- Fix crash when changing MediaBundle on Actor multiple times.
	- Fix crash when Undoing after placing a MediaBundle and pressing Stop then Undo.
	- Fixed bad reference count in MediaBundle when undo/redo of MediaBundle setting changed on MediaBundleActor
	- Added PostEditChange after setting MaterialProperty to fix potential propagation.

Change 4120060 by Patrick.Boutot

	Fix typo for TimecodeProviderClassName.
	Add "Config required restart"
	Add a button to reapply the CustomTimeStep or TimecodeProvider

Change 4122062 by Krzysztof.Narkowicz

	Fixed movie burnout fixed timestep. Engine didn't use a fixed time step due to a following bug:
	1. UAutomatedLevelSequenceCapture::Initialize calls UMovieSceneCapture::Initialize.
	2. UMovieSceneCapture::Initialize creates FRealTimeCaptureStrategy and calls CaptureStrategy->OnInitialize().
	3. UAutomatedLevelSequenceCapture::Initialize changes CaptureStrategy to FFixedTimeStepCaptureStrategy, but no one calls CaptureStrategy->OnInitialize(); after that and this function is required to set the fixed time step.
	4. Result: movies are burned out with variable time step, causing different inconsistencies between frames, settings and HW configurations.

	#jira none

Change 4122236 by Anousack.Kitisa

	Made the "Import Into Level..." File menu action follow the EditorImport flag of a SceneImportFactory.

	#jira UE-57612
	#jira UEENT-762

Change 4122588 by Rex.Hill

	Sequencer Export USD lights now supported

Change 4122822 by JeanMichel.Dignard

	Fix for UV packing FlipX. Don't flip the empty columns at the end since they are always expected to be on the right side. The same was already done for FlipY.

	#jira UE-56664

Change 4123009 by JeanMichel.Dignard

	Copied fixes from MeshUtilities LayoutUV to MeshDescription LayoutUV

Change 4123517 by JeanLuc.Corenthin

	Fixed crash when running cooked game crash with asset imported from datasmith

	#jira UE-60173

Change 4124569 by Patrick.Boutot

	[AJA]
	When the CustomTimeStep & TimecodeProvider signal is lost in the editor (not in PIE), try to re-synchronize every second.

Change 4126421 by Max.Chen

	Sequencer: Add the ability to switch the takes of all the selected shots/subsections.

	#jira UESP-761

Change 4133010 by Simon.Therriault

	MediaBundle

	- Made assets in the bundle visible in the content browser (different package per asset) and updated to support duplication correctly
	- Quick fix for MaterialDynamicInstance garbage matte parameter not going back to default value when cleared.
	- Added looping option on the bundle

	Keyer and lens materials

	- Renamed some parameter groups to Keyer_XX

Change 4135728 by Rex.Hill

	MovieSceneCapture crash fix when iteration on classes defined in python

Change 4135732 by Rex.Hill

	Sequencer scripting: expose get playback range, sub sequence get sequence

Change 4135734 by Rex.Hill

	USD python code refactored

Change 4136017 by Matt.Hoffman

	Fixes FrameNumber nodes tripping an ensure when using them via Blueprints and fixes FrameNumbers & friends not being properly breakable in BP.

	#jira UE-60188

Change 4147959 by Patrick.Boutot

	Media Output Architecture. Support 8bits & 10bits color. Capture the buffer as is with the correct pixel format and the corredt target size.

Change 4147962 by Patrick.Boutot

	Remove AjaMediaViewportOutput && AjaMediaViewportOutputImpl.
	Refactor AjaMediaOutput to extend MediaOutput.
	Refactor AjaMediaGrameGrabberProtocol to use AjaMediaCapture.
	Create AjaMediaCapture.

Change 4148395 by Rex.Hill

	USD python code cleanup

Change 4152901 by Rex.Hill

	Fix crash when recompiling blueprint or script class that serializes an object reference manually

Change 4152906 by Rex.Hill

	USD level import/export exposed to UI

Change 4152956 by Rex.Hill

	Rename unreal_usd to usd_unreal to avoid future module name conflicts

Change 4153331 by Rex.Hill

	Simplify USD attribute definitions

Change 4155472 by Rex.Hill

	USD level import now handles cameras and lights

Change 4155832 by Patrick.Boutot

	Fix Packaging for MediaFrameworkUtilities
	Fix MediaPlayer that crash on close when the engine is closing.

Change 4156020 by Mike.Zyracki

	LIVE LINK Sequencer Recording and Playback

	#jira UESP-714
	#jira UESP-715
	Support for Live Link Recording/Playback with Sequencer.
	Basically if we see a MotionController controlled by a LiveLink Subject or a LiveLink Component on a Actor we create a LiveLinkTrack for it that will record raw sequencer data into. We currently do that at the end of recording but will investigate saving it as we record.
	For Playback we create a Live Link Subject per recorded track and push up interpolated data per Engine Tick on Evaluate. We need to see if we need to send out raw data but that's complicated due to the fact that sequencer time may not be sequential but random,

	Moved FLiveLinkTimeFrame to LiveLinkTypes so we can grab raw data. Added functions to LiveLinkClient/Subject to get raw data so we dont' need to do expensive searches.

	Also changed that code so that we can only save the LiveLinkData when specified. We decided to have the sequencer own saving of the live link data so we explicilty turn on saving when we start to record and then turn if off at the end. Without this it's possible to easily run out of memory while LiveLink records.

	In order to record LiveLinkComponents under Actors we had to change ActorRecording to record ActorComponents and not jus SceneComponents.  Not sure of any drawbacks with this but it seems to work well.  Had to make sure we stll keeped attach/parent/child logic when recording.

Change 4158488 by Rex.Hill

	USD scene import/export now uses UsdLux lights

Change 4158742 by Rex.Hill

	USD: Add test for level export and import

Change 4161645 by Patrick.Boutot

	Update MediaRecorder to use the ImageWriteQueue.
	Add flag in IImageWriteQueue.Enqueue to prevent block if the queue is full.

Change 4161651 by Patrick.Boutot

	Modify MediaCompositing to use an existing MediaPlayer

Change 4161657 by Patrick.Boutot

	Extend the SequenceRecorder to support additional object to record from other plugins.
	Add SequenceRecorder for MediaPlayer. Will record every frame to disk that the MediaPlayer produce.

Change 4162699 by Rex.Hill

	USD export sequence updates

Change 4163138 by Rex.Hill

	USD sequence export test added

Change 4163426 by Mike.Zyracki

	Fix for Curve Names being kept and AutoSetting Tangents on Live Link Recording

Change 4165714 by Patrick.Boutot

	[MediaCapture]
	Remove color box that tell the status of the MediaCapture.
	Add MediaCapture's name and use an image to represent the status.
	Use a ScrollBox around the "preview" output.
	Can select any actors.
	Only show the selectable camera grid when there is more than one camera.

Change 4166652 by Rex.Hill

	Expose SetMobility to scripting

Change 4167292 by Mike.Zyracki

	Make sure we call Finalize Evaluation when closing or deleting the Sequencer. This will make sure TearDown is called on sections which fixes issues with LiveLink Sources not getting deleted and probably also issues with MovieScenePlayers not getting released correctly.

	Also includes addition to show the SubjectName next to the Sequencer Source in the LiveLinkClient UI.

Change 4170578 by Rex.Hill

	PackageTools exposed to scripting

Change 4170619 by Rex.Hill

	Fix ReversePolygonFacing crash

Change 4170621 by Rex.Hill

	USD mesh import can now be given list of individual meshes

Change 4172495 by Matt.Hoffman

	Fixes some flipped logic in Sequencer Media Track that was preventing it from working as expected.
	Slightly simplifies the logic on setting up movie data, and ensures that the external movie player has a callback registered so that SeekTo calls will work. Makes it so that you can specify your own sound component with an external media player as a media player can have multiple sound components listening to it. Adds support for flagging the media player to loop to help cue some media sources like EXR to handle loop points better.

	#jira None

Change 4173387 by Jon.Nabozny

	Bookmark usability and extensibility improvements

Change 4173755 by Rex.Hill

	PackageTools namespace deprecation

Change 4181799 by Patrick.Boutot

	Fix precesion error when importing a camera switcher in sequencer
	#jira UE-61212

Change 4184435 by Patrick.Boutot

	Only show the MediaCapture tab spawner in the level editor.
	Make sure the Material used to draw the render target is GCed.

Change 4195803 by Patrick.Boutot

	Warn user if the AJA CustomTimeStep is used with VSync enabled.

Change 4195866 by Patrick.Boutot

	Remove mention of CharBGR10A2 in AJA. The feature is not yet ready.

Change 4196059 by Rex.Hill

	Fix linux compile due to a .cpp including BookMarkBase.h instead of BookmarkBase.h

Change 4196380 by Patrick.Boutot

	MediaCapture capture the backbuffer when the Viewport don't use an internal texture.
	#jira UE-61601

Change 4199378 by Patrick.Boutot

	For MediaFramework, add support for 10bits RGB texture

Change 4199380 by Patrick.Boutot

	[AJA] Add support for 10bits RGB texture in input
	Fix interlaced format that wasn't using the proper Stride value.

Change 4200359 by Jamie.Dale

	Renamed some "K2_" prefixed functions for Python

Change 4203016 by Max.Chen

	Sequencer: Add movie scene locking/read only.

	Fixed a few bugs with locked sections - shouldn't be able to create or move keys on locked sections

	#jira UESP-867

Change 4203018 by Max.Chen

	Sequencer: Test for movie scene read only before calling modify/transactions.

	#jira UESP-867

Change 4203622 by Simon.Therriault

	Bringing Aja MediaOutput MediaMode fix from Release 4.20

Change 4204895 by Rex.Hill

	Expose several file path functions to scripting

Change 4206747 by Rex.Hill

	USD level import and export updates

Change 4206783 by Rex.Hill

	USD updates

Change 4207021 by Rex.Hill

	USD, fix rotation on level import when there is non-uniform scale

Change 4207414 by Rex.Hill

	USD import static mesh material improvements

Change 4209733 by Patrick.Boutot

	Change the log time to use the current frame Timecode

	#jira UEENT-1107

Change 4209738 by Patrick.Boutot

	Option to automatically try to reopen the MediaSource again if an error is detected

Change 4210385 by Max.Chen

	Sequencer: Fix CurrentShot LocalTime computation by using sequence time in playback resolution to compute the local shot time.

	Also, fixed the burnin asset so that CurrentShotLocalTime is hooked up to ShotFrame instead of MasterTime.

	This fixes a bug where the burnin's {ShotFrame} is not reporting the local shot frame number.

	#jira UE-61728


Change 4219824 by Patrick.Boutot

	Use the correct EditorCondition for property MaxNumAncillaryFrameBuffe

Change 4220706 by Louise.Rasmussen

	Sequencer: Syncronizes Sections using Source Timecode Relative to the first Selected Section

	#JIRA UESP-826

Change 4220708 by Louise.Rasmussen

	Sequencer: Adds SourceTimecode option to the Render Movie Settings Burn In

	#JIRA UESP-826

Change 4226970 by Patrick.Boutot

	Add a Timecode widget, TimecodeProvider widget and a TimecodeProvider Tab

Change 4227333 by Rex.Hill

	USD Sequencer export now supports deltas

Change 4227455 by Matt.Hoffman

	Adds support to the Audio Mixer Submix to pause and resume a recording.

	#jira UESEQ-77

Change 4230963 by Patrick.Boutot

	Make the namespace an import option

Change 4234208 by Jon.Nabozny

	Fixed crash when 5 or more LiveLink sources were connected at the same time

Change 4234273 by Jon.Nabozny

	Add methods in FApp to get the current Timecode FrameRate.

Change 4237170 by Simon.Therriault

	MediaCapture

	Fix for MediaCapture panel not working in PIE

Change 4243758 by Andrew.Rodham

	It's now possible to resolve pixel data from a render target whose texture resource is still pending creation

Change 4244790 by Matt.Hoffman

	This adds experimental support to Sequencer's Render to Movie for exporting audio via rendering a second pass.
	This requires the new audio mixer (launch editor with "-audiomixer") and currently supports exporting to .wav. The second pass disables rendering in the Viewport and disables capturing frames during this pass which removes the overhead caused by rendering the scene. Complex scenes still evaluate the sequence which may impact performance in complex situations (such as the Fortnite Launch Trailer).

	Current Limitations:
	Requires the new audio mixer ("-audiomixer")
	The second pass must acheive real time framerates. The audio engine is only built to handle real time situations (due to the high precision needed, gotten via the platform clock) so any drops in engine framerate during the second pass will cause a desync of the audio (as there will be more samples captured than frames of video).
	The editor has significant overhead which often prevents achieving consistent real-time rates. Using "Capture in New Process" alleviates this issue, even without closing the Editor.
	Audio has been enabled for both image capture and audio capture passes, which means stuttery audio now plays back during image capture. Attempts to alleviate this issue ended up conflicting with some editor code that forces the audio multiplier to 1.0 each Tick(), so audio has to play on both image and audio passes. Forces background audio (otherwise your output audio wav will be blank!) when app is not in focus, though users should leave the app in focus for best performance.

	#jira UESEQ-77, UESP-669

Change 4246443 by Simon.Tourangeau

	Remove Beta flag from nDisplay plugin

	#jira UEENT-1716

Change 4246480 by Simon.Tourangeau

	Fix nDisplay plugin icon

	#jira UEENT-1715

Change 4246571 by Simon.Tourangeau

	Merging Lauren's VR Editor fixes

	4085915 Gamma correction fixes for VR Mode Content Browser icons and camera previews
	4087955 Adding a third looping option to the Sequencer Radial Menu. Selecting the Looping option now cycles through No Looping > Loop All > Loop Range
	4089914 Adding set start/end range buttons to radial menu
	4090502 Fixing sequencer looping not being set correctly
	4092824 Cameras are now visible in VR Mode - interim implementation until Game Mode works entirely
	4095161 Fix for opening a sequence blocking level editor tab drag and drop
	4096999 Making a VR Edit show flags mode that is similar to Game Mode but without the Game flag set to true, does hide billboards. Camera hide/show behavior is now correct.
	4097286 Placing cameras now only summons the preview panel once you release
	4100941 New spawn location for camera preview window (in front and to the side, on whichever side matches your UI hand)
	4102732 Hiding VR editor elements from camera preview
	4103378 Added camera burnin text on preview windows as well.
	4103466 Fixes for camera text
	4103779 Fix for the actor previews not unpinning when entering VR mode.
	4105722 Adding support for multiple viewport previews in VR mode, and not creating a new viewport interaction if one already exists when getting it.
	4106982 Any dockable window can now be placed in the world.
	4107298 Fix for crash when closing multiple camera previews
	4107426 Fix for crash when connecting node with no texture set
	4136343 UI windows docked "to the world" no longer scale with you and stay the size they are docked at.
	4136345 Settings for tweaking VR mode movement
	4147473 Fix for controllers not showing up
	4147734 Sequencer scrubbing will now pause when removing your thumb from a Vive touchpad
	4171489 Added external UI panel support to VREditor module. Created an example camera-adjusting UI
	4186392 Second fix for sequencer scrubbing on the radial menu

Change 4247984 by Jamie.Dale

	Fixed potential memory corruption caused by Python glue code generation

	#jira UE-62397

Change 4255471 by Anousack.Kitisa

	Added functionalities to add/insert/remove UV channel from a StaticMesh accessible through the StaticMeshEditor and scripting.

	#jira UEENT-1592
	#jira UEENT-1597
	#jira UEENT-1660

Change 4256323 by Anousack.Kitisa

	Added Polygon Selection Mode by smoothing group in the MeshEditor.

	#jira UEENT-1594

Change 4258012 by Homam.Bahnassi

	Extending UVEdit material function to support mirroring. #jira UE-57306

Change 4258231 by Jamie.Dale

	Fixed GetHostName failing to convert UTF-8 data correctly

Change 4258579 by Jamie.Dale

	Ensure that packages re-created after deleting their only asset are marked as fully loaded

Change 4258652 by Jamie.Dale

	Added script exposed method to convert an Unreal relative path to absolute

Change 4259124 by Patrick.Boutot

	For MediaBundle, show or hide the failed texture on console.

	#jira UE-61672

Change 4259264 by Jamie.Dale

	Show an error if trying to use ExecutePythonScript without Python enabled

	#jira UE-62318

Change 4259451 by Jamie.Dale

	No longer use stale subtitles in dialogue waves

	#jira UE-61500

Change 4259511 by Jamie.Dale

	Fix crash when passing None as the class for find/load_asset

	#jira UE-62130

Change 4259542 by Patrick.Boutot

	Can select the TimecodeSynchronizer from the Toolbar menu. Add option to show it in the toolbar. Can be defaulted by user/machine.

Change 4259582 by Patrick.Boutot

	Hide Edit & Paste from PropertyMenuAssetPicker

Change 4260760 by Max.Chen

	Sequencer: Fix dereferencing null pointer - CameraNode

Change 4260895 by Jamie.Dale

	Changing localization target settings now updates the gather INI files immediately

Change 4262166 by Patrick.Boutot

	Add support for MediaSourceProxy and MediaOutputProxy.

Change 4262535 by Andrew.Rodham

	Sequencer: Added a method for user-defined capture protocols to resolve a buffer and pass it directly to a bound delegate handler

	Originating source CL#4261391

Change 4262669 by Patrick.Boutot

	Add MediaProfile. It let the user select their media sources and media outputs by machine by user.

Change 4264577 by Patrick.Boutot

	Change the type of FMediaFrameworkCaptureCameraViewportCameraOutputInfo.LockedCameraActors to LazyObject to enable cross level reference.
	#jira UE-62438

	Include dependence to settings

Change 4265750 by JeanLuc.Corenthin

	Fix array's size issues with MeshDescription utility functions

	#jira UEENT-1574

Change 4268181 by Patrick.Boutot

	Mark LockedCameraActors as deprecated.

[CL 4279869 by JeanMichel Dignard in Main branch]
2018-08-13 12:29:41 -04:00
Max Chen
ba80165ab6 Copying //UE4/Dev-Sequencer to //UE4/Dev-Main (Source: //UE4/Dev-Sequencer @ 3946692)
#lockdown Nick.Penwarden
#rb none

============================
  MAJOR FEATURES & CHANGES
============================

Change 3801826 by Max.Chen

	PR #4304: Level Sequence crash fix - Guarded against dereferencing null componen. (Contributed by DSDambuster)


Change 3801828 by Max.Chen

	PR #4302: Movie Scene Visibility Template unitialised variable, causing random . (Contributed by DSDambuster)


Change 3801837 by Max.Chen

	Sequencer: Delay spawning/construction for convert to possessable. This fixes a bug where property values would be lost when
converting back and forth from possessable to spawnable.

	#jira UE-52400

Change 3801841 by Max.Chen

	Sequencer: Make spacer nodes not selectable.

	PR #4194: Improvements to Sequencer (Contributed by projectgheist)

	#jira UE-53117
	#jira UE-52139

Change 3804183 by Max.Preussner

	MediaAssets: Added missing lock in media sound component

Change 3805414 by Max.Preussner

	MediaAssets: Setting valid GUID when initializing media texture resource

Change 3819578 by Max.Chen

	PR #4370: When enabling the "MovieCapture", do not turn off the Stereo-3D display. (Contributed by yehaike)

	#jira UE-53647

Change 3823414 by Max.Chen

	Curve Editor: Lock down the first and last keys in the redundant keys removal range so that they're unaffected.

	#jira UE-53591

Change 3826406 by Max.Chen

	Sequencer: Move OnStartedPlaying() to within first update in UpdateTimeCursorPosition(). This fixes an issue where setting the
hud/player visibility was getting stomped on later.

	#jira UE-52772

Change 3827044 by Max.Preussner

	MediaAssets: Added sprite visualization to media sound component

	#jira UE-53594

Change 3827988 by Max.Preussner

	MediaPlayerAssets: Fixed Media Texture is not linked to Media Player when created together

	#jira UE-53532

Change 3828506 by Max.Preussner

	MediaPlayerEditor: Added attenuation visualizer for media sound components

	#jira  UE-53594

Change 3832590 by andrew.porter

	EngineTest: Added a keep state check in Property Animation sequencer test

Change 3833053 by andrew.porter

	EngineTest: Adding Hierarchical Bias test

Change 3835683 by andrew.porter

	EngineTest: Adding UMG Animation screenshot test

Change 3836076 by Max.Chen

	Sequencer: Fix audio volume and pitch multiplier deprecation.

Change 3836230 by andrew.porter

	EngineTest: Adding Sequence Bone Position automation test

Change 3836347 by Max.Chen

	Sequencer: Fixes to shot name parsing.

	When a shot doesn't contain a shot number, assume, [ShotName]_[TakeNumber].
	When duplicating a shot, put the new shot in the same path of the original shot, so that the take numbers will increment
properly.

	#jira UE-51868

Change 3836552 by Max.Chen

	Sequencer: Sub section now has a takes menu

Change 3838094 by Max.Chen

	UMG: Fix template finish not getting called on stop. This fixes a bug where sections aren't restored when finished.

	#jira UE-52285

Change 3838708 by Max.Chen

	Sequencer: Add notification when the blend type is changed.

	#jira UE-54046

Change 3840295 by Max.Chen

	Sequencer: Fix copy/paste crash for lights

	#jira UE-54084

Change 3840957 by Mike.Zyracki

	Added Show Only Keyable and Show Only Animated to the filter list in the property editor.

	Added IsPropertyAnimated to IDetailKeyframe Interface which already had support for showing properties which are keyable (which
is used for the key icon next to the properties.).  Could have created another interface but then would have had to mimic the sequencer
binding, releasing also, so this seemed best way.

	One issue still left is that custom built detail items currently don't store associated properties(usually) and so certain
properties, in particulalry transforms, won't show up as keyable or animated.  Note this also shows up with the keyable icon not showing
up next to transform tracks, and other filters like Show Only Modified not working with transforms/customs.  Not sure best way to tackle
this.

	#jira UESEQ-328

Change 3841756 by Max.Chen

	Sequencer: Fix unbound possessable components when pasting spawnables.

	#jira UE-54104

Change 3843950 by andrew.porter

	EngineTest: Renaming LevelStreaming tests/content to LevelVisibility

Change 3844082 by Mike.Zyracki

	Missing file for animated filter in property editor.
	When finding if a track is animated we need to find it but we can't easily induce the MovieTrack class for any particular
property. So we don't set a class for it and just search by it's ID and name.

	#jira UESEQ-328

Change 3846902 by Max.Preussner

	ImgMedia: Fixed image media player never finished initialization if loading failed

	#jira UE-54247

Change 3849820 by Mike.Zyracki

	Reassigning deleted widgets didn't work since the menu extender mechanism needs a valid UObject in order to perform an operation
on it. So to fix we replaced GetObjectBindingContextMenuExtender in WidgetBlueprint with new delegate mechanism
(OnBuildCustomContextMenuForGuid) that supports FGuid in addition to UObjects which is needed to handle re-binding deleted widgets. Note
that the default sequencer hacks this for replacing deleted actors in SequencerObjectBindingNode to check to see if a LevelSequence is
active. We could move to this mechanism there also.

	#jira UE-53163

Change 3852211 by Max.Chen

	UMG: Indicate name of the property that is not bound.

	#jira UE-54350

Change 3854120 by Max.Chen

	Sequencer: Fix sibling folders being allowed to have the same folder name.

	#jira UE-54363

Change 3854627 by Max.Chen

	Sequencer: Step to next/previous key should work for all tracks if there aren't any selected.

	#jira UESEQ-391

Change 3855825 by andrew.porter

	EngineTest: Adding animation blending automation test

Change 3855950 by andrew.porter

	EngineTest: Adding correct expected valuues to animation blending test

Change 3856237 by Matt.Hoffman

	UESEQ-336 - Sequencer Track Reordering
	Adds the ability to re-order Master Tracks, Folders and Object Bindings within sequencer hierarchies (including UMG). Adds the
ability to do a one-off sorting of the content under the old sorting behavior if the user wants to reset their layout to how it was
under legacy behavior.

	Modifies SequencerTrackNodes, SequencerFolderNodes and SequencerObjectBindingNodes to handle CanDrop/OnDrop for above, below and
ontop of.

	Fixes a Slate Issue that forcibly expanded a TreeviewRow if an item handled OnDrop. Slate will now only forcibly expand the row
if the item says the drop happened ontop of the item, and not above or below it like it previously did.

Change 3856503 by andrew.porter

	EngineTest: Adding automation test for using animation blueprint with blend multi node in sequencer

Change 3857875 by Max.Chen

	Sequencer: Assign the sequence id after the template is compiled.

	#jira UE-54462

Change 3858344 by Max.Chen

	Sequencer: Prevent Goto and Transform boxes from overlapping by allowing them to be visible at the same time in an autosized
horizontal box. Also, added close button to the goto box.

	PR #4425: Prevent Goto and Transform boxes from overlapping in Sequencer ... (Contributed by projectgheist)


	#jira UE-54210

Change 3860566 by andrew.porter

	MediaFrameworkTest: Set the option to index 0 for the audio and video track list by default

Change 3860654 by andrew.porter

	EngineTest: Enabling Camera Cut + FOV test

Change 3860981 by andrew.porter

	EngineTest: Updating skeletal mesh tests with a delay after set playback position

Change 3861256 by Max.Chen

	Sequencer: Add all bindings if none selected.

	#jira-54440

Change 3862154 by Andrew.Rodham

	Added TimeManagement module

Change 3862424 by andrew.porter

	EngineTest: Turned on the test Bone Positions with Blend Multi Node

Change 3862573 by andrew.porter

	EngineTest: Adding test to compare bone positions in a sequence that is blending an animation that is using an AnimBP

Change 3865117 by Max.Chen

	Sequencer: Stop auto scroll on mouse release of movement.

	#jira UE-31212

Change 3865303 by Max.Chen

	Sequencer: Add drag and drop transactions

	#jira UE-54662

Change 3865304 by Max.Chen

	Sequencer: Fix crash when an actor factory is not found.

Change 3865361 by Max.Chen

	Sequencer: Don't change the camera/shot lock button when popping out of a sequence.

	#jira UE-54665

Change 3865412 by Max.Chen

	Sequencer: Determine whether a transform track is for a camera by using the spawned object or template

	#jira UE-54666

Change 3865685 by Max.Chen

	Sequencer: Clear autoscrub offset when stopping autoscroll

	#jira UE-31212

Change 3865886 by Max.Chen

	Sequence Recorder: Log an error if the number of frames changes while recording. This can happen if the skeleton changes while
recording.

	#jira UE-48715

Change 3866925 by Andrew.Porter

	MediaFrameworkTest: Changing the current PNG test video image sequence to 1024 x 576

Change 3867705 by andrew.porter

	QAGame: Adding Audio Sort Sequence to dev folder

Change 3867890 by andrew.porter

	QAGame: Adding a sequence for testing a sorting crash to my dev folder

Change 3872628 by Max.Chen

	Movie Scene Capture: Split delay before warmup into split delay before shot warmup so that there's separate controls for when
the movie scene capture warmups up vs. shot boundaries.

Change 3873131 by Matt.Hoffman

	UE-54732 - Crash reordering a folder with a track.
	This was caused by folders being the only type of track to check if someone was putting a parent track into a child track.
Object Binding tracks and Tracks now check as well so that you can't use the above/below drop targets to add parents as children.
	This also fixed a typo in the localization keys.

	#jira UE-54732

Change 3873301 by Mike.Zyracki

	Added ability to support continous euler angle changes when changing rotations, in particularly with the rotation gizmo's. To do
this we effectively added a form an of 'euler filter'(https://en.wikipedia.org/wiki/Euler_filter) to find the closest euler angle to the
current euler angle.
	Three functions were added to FRotator to make this possible, one to get the euler angle that's has the same rotation as it, one
to get the difference between two euler angles via Manhattan distance and a third using the previous two to choose a Rotator value
that's closest to it. We then use these functions before calling UComponent::SetRelativeRotation to make sure we use the correct Euler
after the Quat conversion. We also no longer limit(bound) the euler angles to -180,180, which is obviously necessary to avoid flips.

	I also changed how we caluclate yaw and roll when pitch is -90 or 90 to make it the standard approach of zeroing out roll and
just setting yaw.  Main reasons are the previous implementation had precision issues so things like 180, 90, -180 would show up due to
numbers being nearly zero but negative,(this would break any smooth interpolations), and this facilitates having a 'gimbal' rotation
mode (like Maya, Blender etc..) if we ever want that also.  If needed we could keep the previous implementation but would  need to add
some FMath::IsNearlyZero checks, with less performance.

	Note we only do this special filtering when applying delta's to actors or components in the editors, which then call
UComponent::SetRelativeRotationExact, which is a new function to foces the RelativeRotation to be equal to the new rotation. This allows
us to store un-nomalized Rotators at the cost that the RotationCache may be broken. We didn't change any of the other UComponent
functions that set rotations (via Quats or Transforms) so they will still be bounded and unwound.

	In SetInternalWorldLocationAndRotation we only set the rotation if the rotation has changed, which fixes the rotation getting
changed and re-normalized if just translate happens.

	In TransformTrackEditor, we correclty use the bUndwing flag and in MovieScene3DTransformSection there was an un-needed winding
check there, it will be unwound earlier if needed, which happens if Sequence Recording is happening. Max we should talk about what to do
about this .

	Note the euler angle drag via the widget is still bound to 0-360. I think we should just unbound that now since the rotations
value are now unbound.

	This review now includes fixes suggested by Zak.

	#jira UE-UE-22228

Change 3873483 by Matt.Hoffman

	Sequencer Tracks can now be inserted above the spacer at the bottom of the tree.

	#jira UE-54706

Change 3873899 by Max.Chen

	Sequencer: Add section selection throbbing

Change 3873908 by Max.Chen

	Movie Scene Capture: Added logging per frame

Change 3873924 by Matt.Hoffman

	Adds the ability to store Sequence Recorder setups into profiles that stay with the map and can be re-loaded later. Profiles
store the Actor Recordings so the settings for each actor should carry with them.

	#jira UESEQ-339

Change 3874726 by Matt.Hoffman

	Disable drag-and-drop targets on spacers that come between rows in Sequencer. This prevents extra drag/drop targets showing up
between each row.

	#jira UE-54706

Change 3874862 by Matt.Hoffman

	Audio Track no longer gets reordered when adding sub-audio tracks, as sub-tracks are no longer counted towards the sorting order
index when normalizing indexes.

	#jira UE-54727

Change 3875905 by Matt.Hoffman

	Disable Fade Track UI if a fade track already exists in the sequence.

	#jira UESEQ-393

Change 3876163 by Max.Chen

	Sequencer: Swap the camera object to the camera component's owner if it's not the same.

	#jira UE-54874

Change 3876971 by Andrew.Porter

	EngineTest: Moved Media Player Seek test to new folder. Also enabled the test with new ground truth image.

Change 3877040 by Max.Chen

	Cine Camera: Split camera properties to two groups, "Camera Options" and "Camera Settings". The cine camera now hides properties
in the "Camera Settings" group so that properties like bConstrainAspectRatio (in the "Camera Options" group) can be visible.

	#jira UE-54192

Change 3877763 by Max.Chen

	Curve Editor: Fix curve changed on end drag so that only curves that had keys/tangents that were changed receive notification,
otherwise all loaded curves were getting notified that they were changed.

	#jira UE-54951

Change 3878234 by Matt.Hoffman

	Disable "Drop Below" targets for Sequencer Tree nodes to prevent a confusing UX issue where dropping underneath a Object Binding
Node puts it after the object binding node but the UI looks like it's inserting it inside the Object Binding node.

	#jira UE-54743

Change 3879359 by Mike.Zyracki

	If a track is inactive we dim it a bit which seems to be the UE4 way to show inactive or disabled state. We changed the active
logic so that all subtracks need to be inactive for the track to also be inactive(instead of all active for active). This conforms to
how the active state actually works, e.g if you have two sections and only one is active the track is still active above it.

	#jira UESEQ-388

Change 3879462 by Max.Chen

	Sequencer: Allow dragging onto a particular row which would move out any overlapping sections to make space for the newly
created section. Newly created sections are now selected and throbbed to draw attention to themselves.

	#jira UE-54664

Change 3879464 by Max.Chen

	Sequencer: Fixed overlapping ranges being inserted into the evaluation field during compilation

	  - The issue was that track segments that had been combined with adjacent segments (due to them being identical) would
potentially cause a subsequently compiled frame to overlap with a range that had already been inserted into the evaluation field.
	  - The insertion code previously asserted that only minor overlaps were catered for (due to fp rounding errors) and assumed
that a supplied range could not entirely contain any other range in the field.
	  - The solution is to supply the insertion time along with the range to know exactly where the data should live in the field,
and crop the range to the maximum allowable space between adjacent ranges.

	#jira UE-54922

Change 3879590 by Matt.Hoffman

	Items that are now added to the Sequencer via the "+Track" menu will be selected after being added.
	Items can now be added inside of folders instead of just to the root level.

	#jira UE-27397

Change 3879612 by Mike.Zyracki

	Display Nodes with no children are always active.
	#jira UESEQ-388

Change 3879730 by Matt.Hoffman

	Sequence Recorder's actor recording groups now remove items from the group when removed via the UI.

	#jira UESEQ-339

Change 3880256 by Mike.Zyracki

	Fix issue with inactive display with folders and other track nodes.
	#jira UESEQ-388

Change 3883491 by Max.Chen

	Fix issue where tick is skipped due to last ticked pose isn't cleared after AnimInstance changes.

	Copy from Release-4.19

	#jira UE-51323

Change 3883603 by Max.Chen

	Movie Scene Capture: Add option toggle disable screen percentage. By default this is on (no change in current behavior).

	#jira UE-51898

Change 3885074 by Max.Preussner

	MediaCompositing: Resetting media texture & freeing resource on section end; removed dead code

Change 3887220 by Max.Preussner

	MediaCompositing: Defaulted media section duration to 1 sec (since we do not know the actual duration in most cases)

Change 3887478 by Matt.Hoffman

	Sequences now show [Inactive] in their title bars when they're disabled. This helps communicate why a sequence isn't being
evaluated.

	#jira UE-51469

Change 3888985 by Max.Chen

	Movie Scene Capture: Clamp HDR Compression Quality between 0 and 1.

	#jira UE-55136

Change 3893519 by Max.Chen

	Sequence Recorder: Clarified tooltip for bRecordNearbySpawnedActors - spawned actors will still be recorded if they match the
ActorFilter.

	#jira UE-55238

Change 3893546 by Max.Chen

	Sequence Recorder: If a selected actor already has a recording, add a blank recording.

	#jira UE-55239

Change 3894044 by Max.Preussner

	MediaCompositing: Added support for seeking into a media section

Change 3894310 by andrew.porter

	MediaFrameworkTest: Adding Img media sources for 1080 and 2160 ravent test content

Change 3894426 by Max.Preussner

	MediaAssets: Letting media textures with AutoClear retain their clear color when player is reset

Change 3895717 by Max.Chen

	Sequencer: Null checks to prevent crash when saving the default state of a spawnable

	#jira UE-55304

Change 3897388 by Max.Chen

	Sequencer: Don't update current time to be within the view range when stepping into a sequence.

	#jira UE-55322

Change 3897452 by Max.Chen

	Audio: Fix crash when trying to record audio without any active capture devices. Log warning if the number of input channels is
not 1 or 2.

	#jira UE-55223

Change 3897619 by Max.Preussner

	MediaCompositing: Removed commented out code

Change 3898072 by Max.Chen

	Sequencer: Override the animation asset in the player state if it doesn't match the animation asset that's being evaluated.

	#jira UE-55328

Change 3898272 by Max.Preussner

	MediaPlayerEditor: Made slate brush constants static

Change 3898704 by Max.Chen

	Sequencer: Skip if the binding id's sequence can't be found.

	#jira UE-55337

Change 3899855 by Max.Preussner

	MediaCompositingEditor: Added cache state visualization to media track

Change 3900300 by Max.Preussner

	MediaCompositingEditor: Added loop indicators to media sections

Change 3900694 by Max.Preussner

	ImfMedia: Looping cache only when player is looping

Change 3900892 by Max.Preussner

	Stats: Added stats category for media framework

Change 3900954 by Max.Preussner

	MediaCompositing: Don't evaluate at the end of media section

Change 3901348 by Max.Preussner

	Core: Replaced TLruCache autos for better readability

Change 3901655 by Max.Preussner

	ImgMedia: Added more perf stats to EXR reader

Change 3901972 by Max.Preussner

	MediaAssets: Added getter for media player in media sound components

Change 3902233 by Max.Preussner

	MediaAssets: Enabling media textures to receive samples right after player is assigned

Change 3902238 by Max.Preussner

	MediaCompositing: Working around init/shutdown idiosyncracies in sequencer

Change 3904045 by Max.Chen

	Sequencer: Fix copy/paste crash. Only process UMovieSceneCopyableBinding and objects that can be spawned by the movie scene
spawn register.

	#jira UE-55314

Change 3905605 by Max.Chen

	Sequencer: Restrict spawnables from being created if they have a ClassWithin that UMovieScene is not a child of.

	#jira UE-55429

Change 3906550 by Max.Chen

	Sequencer: Add media track icon

	#jira UE-55480

Change 3907101 by Max.Chen

	Sequence Recorder: Fix bugs related to not recording a level sequence. There were certain assumptions that creating a level
sequence meant that sequence recording was in progress. This is not always the case - the recorders can record animation assets and not
create a level sequence.

	Changed the notion of IsRecording() to having at least one actor recording that is recording. Countdown timer, recording
displays, etc should function if IsRecording() and not based on whether a level sequence is created.

	#jira UE-55485

Change 3907247 by Max.Chen

	Sequence Recorder: Fix crash not removing PrepareToCleanseEditorObject delegate. Repros when opening sequence recorder, closing
it, and then opening or creating a level.

Change 3910343 by Max.Preussner

	Core: Added async helper for executing functions on a given thread pool

Change 3910346 by Max.Preussner

	ImgMedia: Added separate thread pools for loading/decoding and deleting image frames

Change 3910829 by Max.Preussner

	Profiler: Increased visible range of profiler graph

Change 3910841 by Max.Preussner

	MediaCompositing: Displaying asset name instead of full media source path in media section

Change 3910870 by Max.Preussner

	ImgMedia: Using deallocation thread pool only in debug builds

Change 3919642 by Max.Chen

	Sequence Recorder: Clarify active tooltip

	#jira UE-55661

Change 3919660 by Max.Chen

	Sequencer: Sequence template source signatures are now also compared to catch the case where a sub-sequence asset has been saved
but not modified

	  - The following sequence of events exposes this issue:
	    - Create a master sequence with a single shot that spawns a cube
	    - Add this sequence to a level and set it to auto-play
	    - Save everything and restart
	    - Resave just the inner shot asset without opening it
	    - PIE
	    - The inner shot never spawns its cube because its template was wiped on save, but its signature never changed. Since the
master sequence previously didn't check the template source signature, it ends up trying to evaluate an empty template.

	#jira UE-55626
	#jira UE-55490

Change 3921825 by Max.Chen

	Sequencer: "Run Construction Script in Sequencer" is off by default for blueprints but on for Sequencer. This allows the content
author to switch it on for specific blueprints and sequencer will be default, run those with construction scripts enabled.

Change 3922232 by Max.Chen

	Sequence Recorder: Reset countdelay on stop.

	#jira UE-55755

Change 3922306 by Max.Chen

	Sequence Recorder: Don't automatically mark transforms to be recorded by sequence recorder. Instead, log a warning if the user
toggled it off to warn that the resulting animation might not match gameplay.

	#jira UE-55758

Change 3922912 by Max.Chen

	Sequence Recorder: Fix refresh next sequence name

	#jira UE-55757

Change 3927654 by Max.Chen

	Movie Scene Capture: Added format mapping for the name of the current camera

	#jira UE-55769

	PR #4537

Change 3927658 by Max.Chen

	Sequencer: Added fbx property mapping for "FocusDistance" to "FocusSettings.ManualFocusDistance"

	#jira UE-55782

Change 3932022 by Max.Chen

	Sequencer: Add import animation track section to next available row index.

	#jira UE-55892

Change 3933919 by Max.Chen

	Sequencer: Jump to playback start frame and not 0 to start playback for recording.

	#jira UE-55933

Change 3934307 by Andrew.Rodham

	Sequencer: Add template signature that is re-generated every time the base template is regenerated, which invalidates evaluation
fields

	This fixes an issue where the same sequence is instantiated multiple times in a sequence.
	 If the source sequence was saved, its template would be wiped, which would invalidate the template ID
	When an instance tries to evaluate the master template, it would only invalidate a range in the evaluation field that was the
hull of any invalid sub sequences overlapping the current time, potentially leaving invalid data in the evaluation field at positions
later (or earlier) on in the sequence
	When the sub template was re-generated, it receives the same SequenceSignature as it had before (because the sequence hasn't
actually changed), which causes the stale evaluation field data to fail the IsDirty check (because the sequence is the same as it
thought, but the *template* has changed)

	This has been addressed be adding a signature to templates themselves, and checking both the template signature and sequence
signature as a part of the IsDirty check. This ensures that we regenerate if either the template, or the sequence have changed.

	#jira UE-55934

Change 3936327 by Andrew.Rodham

	Sequencer: Removed increment when trimming right

	UMovieSceneSection::TrimSection already explicity assigns an exclusive bound to the time passed in. The new behavior means we
can trim a section to the right, and insert another section without changing the time to create adjacent sections.

	#jira UE-42652

Change 3936328 by Andrew.Rodham

	Fixed KeyFrameManipulator assignment operators and copy/move constructors
	  - These types are potentially self-referential so cannot use default constructors/assignment

Change 3936330 by Andrew.Rodham

	Converted UMGSequencePlayer to use frames internally

	#jira UE-54878

Change 3936726 by Max.Chen

	Sequencer: Set track node as the parent of the key area node. The key area switcher needs the object binding id from the parent
object binding node. Without this, the binding to the external value fails.

	#jira UE-55931

Change 3936775 by Max.Chen

	Sequencer: Should stop or loop should compare DurationFrames with Current Time from StartTime.

	The bug is that if you set 30 warmup frames in movie rendering for a range of 0-100, the FrameRange will be starting at -30 and
have a duration of 130. Without this fix, the playback will continue until frame 130, rather than 100.

	#jira UE-55933

Change 3936935 by Matt.Hoffman

	Easing Curves are now represented in Play Rate resolution instead of internal resolution.

	#jira UE-55937

Change 3937069 by Matt.Hoffman

	Users can toggle if the is infinite on each side, limited by which tracks support infinite ranges.

	#jira UE-55891

Change 3937516 by Max.Preussner

	ImgMedia: Added support for single-threaded platforms

	#jira UE-55986

Change 3937826 by Max.Preussner

	MediaAssets: Disabling media sound components on HTML5 if AudioMixer is not enabled

Change 3937997 by Max.Chen

	Curve Editor: Add Zoom to Fit Curves so that selected curves from Sequencer can be focused on. Tested that undo doesn't re-zoom.

	#jira UE-55935

Change 3938000 by Max.Chen

	Sequencer: Stop all sounds before generating audio waveforms.

	#jira UE-55951

Change 3938376 by Max.Preussner

	XGEController: Disabled XGE Controller in single-threaded apps to prevent crash

Change 3938444 by Max.Preussner

	Core: Added async support for single-threaded applications

Change 3938445 by Max.Preussner

	Networking: Added support for single-threaded applications in UDP socket sender/receiver

Change 3938447 by Max.Preussner

	Messaging: Added support for single-threaded applications

Change 3939432 by Max.Chen

	Sequence Recorder: Append command list to global level editor actions so that shortcuts are accessible in level editor.

	#jira UE-55798

Change 3940229 by Andrew.Rodham

	Added prospective display rate upgrade to UMovieScene::PostLoad

	  - There was previously some very odd behaviour that would assign the fixed frame interval only when a sub sequence was focused
in SSequencer. This meant that many sequences could have a frame interval of 0 set in the data.
	  - Under the old method of snap interval display this would have fallen back to getting the display interval from the sequencer
settings, but we no longer look at these.
	  - The USequencerSettings properties have been removed and in their place, a prospective data upgrade for sequences that have a
fixed frame interval old 0fps that sets the play rate to the previous defaults based off the old USequencerSettings defaults.
	  - This could end up 'changing' the display rate for sequences where the user has changed the snap interval in the settings for
a particular sequence editor, but there's not much we can do about that given we don't have access to the USequencerSettings classes in
UMovieScene

	#jira UE-55919

Change 3940277 by Andrew.Rodham

	Sequencer: Added ability to default frame resolutions and play rates for newly created actor sequences

Change 3940378 by Andrew.Rodham

	Sequencer: Post move import dialog now defaults to the playback framerate of the sequence, and floors to frame numbers

Change 3940559 by Andrew.Rodham

	Reinstated primed or recording sequence color

Change 3940642 by Max.Preussner

	ImagePlate: Removed image plate media playback functionality

Change 3940843 by Max.Preussner

	Core: Made TCircularQueue actually thread-safe; improved code comments

Change 3940860 by Max.Chen

	Sequencer: Changed StructNameToKey to StructPathToKey

	Previously, keying a PropertyPath of [RenderTransform][Shear][X] would get trimmed to X, which doesn't map to a channel name as
considered by Sequencer2dTransformTrackEditor. Instead, trim the resulting property path to [Shear][X] so that track editors can
determine the desired struct path and channels to key.

	#jira UE-52966

Change 3941292 by Mike.Zyracki

	Fix for trajectories out of range not showing up.

	1) If we had no key data we would pop the time, so wouldn't get the section ranges.
	2) Calculating of upper bound was wrong, checking against -1 and not key == num of keys when doing algo::lower_bound.
	3) No need to do the Bck-- for the bakward iterators since we fixed #2. We start now from the upper bound correctly.
	4) If we had no keys (at section start,end) we would incorrectly say we were any key type, so since we draw constant keys as
dashed we would do so incorrectly around section end points.

	#jira UE-55929

Change 3941424 by Max.Chen

	Curve Editor: Change Zoom to Fit to use TArrayView

Change 3941498 by Max.Preussner

	Core: Added FMath::DivideAndRoundNearest function

Change 3942097 by Matt.Hoffman

	Drop Frame Timecode Support for NTSC rates.

Change 3942104 by Matt.Hoffman

	Sequence Recorder Group is no longer visible inside the World Outliner after using one.

	#jira 55266

Change 3942107 by Max.Chen

	Sequencer: Resurrect logic to find or extend an existing section when adding keys.

Change 3942330 by Max.Chen

	Sequence Recorder: Better tooltip for default animation settings.

	#jira UE-55636

Change 3942339 by Max.Chen

	Sequence Recorder: Better tooltip for default animation settings.

	#jira UE-55636

Change 3942507 by Andrew.Rodham

	Sequencer: We no longer pad the time overlap threshold with a small number that is not scaled by the current zoom level
	  - The presence of this pad was causing keys that were far apart to be grouped when zoomed in a long way

Change 3942509 by Andrew.Rodham

	Sequencer: Only pad total view range, rather than section range as well when retrieving keys to render
	  - This stops us from rendering keys that are within the view range, but outside the section range

Change 3942512 by Andrew.Rodham

	Added transactions to some sequencer details customizations

Change 3942513 by Andrew.Rodham

	Sequencer: Reinstated validation checks to UMovieSceneSection::SetStartFrame and SetEndFrame, changed erroneous uses to use
SetRange

Change 3942560 by Andrew.Rodham

	Pass by rvalue reference to appease error C2719 on Win32
	('InChannels': formal parameter with requested alignment of 8 won't be aligned)

Change 3942697 by Andrew.Rodham

	Newly Created Level Sequences and Actor Sequences now default to 24000 fps frame resolution (+/- ~24hrs range, supporting all
integer rates + 23.976)

Change 3942700 by Andrew.Rodham

	Sequencer: Added legacy out-of-bounds errors for times that are not supported by the current legacy upgrade frame resolution

Change 3942989 by Max.Preussner

	Core: Fixed circular queue count calculation

Change 3943538 by Max.Preussner

	MediaAssets: Reverted workaround for procedural audio log spam in HTML5

	(Actor component initialization cannot be skipped if the component is used in a level)

Change 3944071 by Max.Preussner

	QAGame: Fixed Media Texture keeps last frame of Media when PIE ends

	#jira UE-53360

Change 3944292 by Max.Chen

	Sequencer: Added extra flags to ensure that asset initialization does not occur on template actor sequences

	#jira UE-56113

Change 3944364 by Max.Chen

	Sequencer: Prevent circular shot/master tracks.

	Tested adding master -> child -> master as drag and drop cinematic shot tracks and sub tracks as well as through the + button.

	#jira UE-56091

Change 3944422 by Max.Chen

	Sequence Recorder: Disable transform recording if off.

	#jira UE-56061

Change 3944745 by Andrew.Rodham

	Sequencer: Key rendering fixes

	  - Fixed assert  that occured when keys happened to reside on some times due to KeyTime + TimeOverlapThreshold - KeyTime being
slightly larger TimeOverlapThreshold
	  - Fixed keys sometimes being clipped when zoomed right in due to lack of half-frame offset
	  - Added missing documentation to MovieSceneTimeHelpers.h

	#jira UE-56107

Change 3945231 by Andrew.Rodham

	Sequencer: Reconstruct channel proxy on Serialize to catch all cases of undo/redo, PostLoad and duplication

	#jira UE-56089

Change 3945301 by Andrew.Rodham

	Sequencer: Added safety checks during initial sequence recording to guard against applying negative or 0-sized sequence ranges

	#jira UE-56125

Change 3946627 by Max.Preussner

	Fortnite: Fixed game crashes closing editor while in PIE - Pure virtual function being called

	#jira UE-56144

[CL 3946896 by Max Chen in Main branch]
2018-03-14 22:09:33 -04:00
Ben Marsh
13d012685f Merging copyright update from 4.19 branch.
#rb none
#rnx
#jira

[CL 3818977 by Ben Marsh in Staging-4.19 branch]
2018-01-02 15:30:26 -05:00
Chris Bunner
77adbcb22a Copying //UE4/Dev-Rendering to //UE4/Dev-Main (Source: //UE4/Dev-Rendering @ 3809756)
#rb None
#lockdown Nick.Penwarden

============================
  MAJOR FEATURES & CHANGES
============================

Change 3629223 by Rolando.Caloca

	DR - Rollback //UE4/Dev-Rendering/Engine/Source/Runtime/VulkanRHI to changelist 3627847

Change 3629708 by Rolando.Caloca

	DR - vk - Redo some changes from DevMobile
	3601439
	3604186
	3606672
	3617383
	3617474
	3617483

Change 3761370 by Arne.Schober

	DR - Added CityHash to use with conatiners and stuff. It provides good performance and high quallity across multiple platforms.

Change 3761437 by Guillaume.Abadie

	Optimises motion blur compute shader for consoles.

Change 3761483 by Guillaume.Abadie

	Fixes D3D11 RHI lying to dynamic resolution heuristic with t.MaxFPS.

Change 3761995 by Mark.Satterthwaite

	Add the Metal compiler path to the local .pch filename to avoid problems when Xcode moves.

Change 3761996 by Mark.Satterthwaite

	Emit more details when a pixel shader is found to have no outputs at all which Metal doesn't permit. More likely this is a bug in the shader compiler not configuring the in-out mask correctly...

	#jira UE-52292

Change 3761999 by Mark.Satterthwaite

	No need to avoid tessellation for FMetalRHICommandContext::RHIEndDrawIndexedPrimitiveUP anymore - that was from back when the tessellation logic was replicated in each RHI*Draw* implementation.

	#jira UE-51937

Change 3762181 by Joe.Graf

	Changed MaxShaderJobBatchSize to 25 on Mac as it reduced shader compile time by 21%

Change 3762607 by Mark.Satterthwaite

	Remove accidentally included changes from 3761995.

Change 3762612 by Mark.Satterthwaite

	Enable the explicit sincos intrinsic for Metal to avoid instances of UE-52477 that can cause shaders to compile incorrectly through hlslcc.
	#jira UE-52477

Change 3762772 by Michael.Lentine

	Move RHI calls to render thread.

Change 3763021 by Richard.Wallis

	Remove shader cache tool project and implementation.
	#jira UE-51613

Change 3763082 by Guillaume.Abadie

	More SceneTexture, SceneColor and SceneDepth automated tests

Change 3763111 by Richard.Wallis

	Clone of CL 3763033 (Release-4.18):
	Fix for crash upon launching packaged game on Mac with Share Material Shader Code enabled.
	#jira UE-52121

Change 3763657 by Michael.Lentine

	Invalidate ddc for skeletal mesh render data so that the duplicated vertex render structures are properly serialized.

Change 3763727 by Jian.Ru

	Fix Player Collision view mode. It is caused by checking an uninitialized vertex buffer so the check always fail.
	#jira UE-52052

Change 3763738 by Guillaume.Abadie

	Implements SSR input post process material location.

Change 3764271 by Mark.Satterthwaite

	Allow ControlPointPatch lists to flow through MetalRHI as it was setup to handle this transparently - the VSHS compute shader will convert them to triangles to draw. Report the same warning as in the pipeline creation stage as this hasn't been formally validated.

	#jira UE-52454

Change 3764316 by Daniel.Wright

	Added AVolumetricLightmapDensityVolume - gives local control over Volumetric Lightmap density.  Dropping the top mip outside of the play area in Monolith saves 20Mb (35Mb original).
	Volumetric Lightmap no longer refines around static translucent geometry - saves 5Mb in Monolith
	Reworked brick culling by error mechanism.  Now compares error to interpolated parent lighting instead of the brick average - prevents dropping constant value bricks which are near a wall and cause leaking due to parent interpolation after being culled.

Change 3764318 by Daniel.Wright

	Missing file

Change 3764321 by Daniel.Wright

	Shader compiling memory optimizations
	* Editor memory: Sharing uniform buffer includes and GeneratedInstancedStereo.ush per FShaderType (was previously duplicated per FShader job)
	* SCW input size: Sharing uniform buffer includes and SharedEnvironment per batch
	* 7.6Gb of shader job inputs in memory -> .5Gb (13x less) when doing a full shader compile of Paragon Editor
	* 13.8Gb written into worker input files -> 2.9Gb (4.7x less).  Global shaders are never batched when sent to SCW so unoptimized by these changes.

Change 3764595 by Daniel.Wright

	Added VolumetricLightmapDensityVolume asset icons

Change 3764701 by Michael.Lentine

	Add duplicated vertices merging for meshmerge.

Change 3766002 by Guillaume.Abadie

	Fixes a crash in translucency.

Change 3766007 by Guillaume.Abadie

	Oups.... Fixes compilation failure.

Change 3766697 by Guillaume.Abadie

	Giant refactor of global shader interface for upcoming native support of permutation.

	CL generated by python script.

Change 3767205 by Chris.Bunner

	Deferring FMaterial::RenderingThreadShaderMap update to render-thread rather than assumption commands have been flushed.

	#jira UE-50652

Change 3767207 by Chris.Bunner

	Clamp fetched texture coordinates to those available on the mesh.

Change 3767209 by Chris.Bunner

	PR #4203: Early-outs in UMaterialInstance parameter setters (Contributed by stefanzimecki)

	#jira UE-52193

Change 3767772 by Mark.Satterthwaite

	MetalShaderFormat will no longer fallback to text shaders when you ask it to compile to bytecode but the bytecode compiler is not available (either locally or remotely) - this ensures that the DDC can't be poisoned by incorrectly configured clients. The Editor is already setup such that if the remote shader compiler is not configured & Xcode is not available locally the shader-compiler will be invoked to generate text shaders.

	#jira UE-52554

Change 3768604 by Guillaume.Abadie

	Polish up with new global shader function signature.

Change 3768993 by Guillaume.Abadie

	Fixes r.Upscale.Panini cvars

Change 3769478 by Mark.Satterthwaite

	Move the ue4_stdlib.metal & PCH into a temporary directory that exists for the lifetime of the SCW on the remote side as well as the local one and add this path as an include directory.
	#jira UE-52587

Change 3769703 by Mark.Satterthwaite

	For all Metal platforms >= Metal v1.2 transform mul(a,b) into fma(a,b,0) to prevent the Apple compiler reordering operations differently between the base & depth passes which results in variance in the position output.
	For iOS disable fast-math when the vertex-shader uses World-Position-Offset because there are additional problems on the iOS shader compiler that result in position variance even with the above fix - WPO performance will suffer but I don't have any alternatives.
	Remove the depth-offset hack from the depth-only vertex shader again.

	#jira UES-5651

Change 3769763 by Mark.Satterthwaite

	Handle swizzle's in the hlslcc fma identification pass so that we reduce the number of instructions and the platform compiler can't break the instructions up.

Change 3769849 by Mark.Satterthwaite

	Fix CIS error.

Change 3770517 by Richard.Wallis

	Fix for crash when creating a new media texture (AppleIntelHD5000GraphicsMTLDriver!SamplerStage::bindSamplerToTexture()).  Missing texture resource for binding.  Old InitDynamicRHI() code has been refactored out into seperate functions which leaves us on Mac with a NULL resource initially after creation which Metal doesn't like.  This fix puts InitDynamicRHI down the default setup/clear path which inits default resources - I don't think we should use a global dummy in this instance as this is a render target.

	#jira UE-51940

Change 3770688 by Uriel.Doyon

	Fixed texture resolution returning 0 when running blueprint construction scripts at cook time.

Change 3771115 by Mark.Satterthwaite

	Report errors from failed attempts to compile global shaders or we can't see why things fail on non-Windows platforms.

Change 3771263 by Mark.Satterthwaite

	Change the way ManualVertexFetch is enabled on Metal platforms so that it is enabled when targeting Metal v1.2 and higher (macOS 10.12+/iOS 10+). This brings iOS in the Desktop Forward renderer back into line with the Mac.

	#jira UERNDR-300

Change 3773472 by Guillaume.Abadie

	Fixes a crash on PIE of SimpleComposure project.

Change 3773475 by Guillaume.Abadie

	Fixes bug in editor viewport caused by SSR input changes.

Change 3774677 by Arne.Schober

	DR - Deprecated SetLocal from the RHICmdlist
	Fixed some unnecessary PSO collisions.

Change 3777037 by Mark.Satterthwaite

	Remove incorrect change that caused a reference to "accurate::sincos" to appear in some Metal shaders rather than "precise::sincos".

Change 3777122 by Mark.Satterthwaite

	Back out changelist 3777037 - I'm blind and wasn't seeing the real problem was a stale shader cache...

Change 3777196 by Mark.Satterthwaite

	Fix text-shader compilation on iOS 10 - maybe iOS 9 too (untested!).

	We need our own make_scalar type-trait template for ue4_stdlib.metal so that we still compile with older iOS runtime compilers and we can't use as_type to directly implement the packHalf2x16/unpackHalf2x16 intrinsics for these older runtime compilers either.

Change 3779098 by Rolando.Caloca

	DR - vk - Fix query index

Change 3779275 by Mark.Satterthwaite

	Silence the Metal runtime compiler warning caused by use of a deprecated enum value when running text shaders compiled for Metal v1.0/1.1 on a Metal v1.2+ OS.

	#jira UE-52554

Change 3779427 by Rolando.Caloca

	DR - vk - Fix for allocator contention

Change 3779608 by Uriel.Doyon

	Fixed invalid access in the resave package commantlet when building texture streaming material data for materials enabling tesselation.

Change 3784496 by Mark.Satterthwaite

	Temporarily disable USE_OBJECT_COMPOSITING_TILE_CULLING  for Metal shader compilation only - other platforms are unaffected - as it isn't working properly for some reason. need to work out what's up but don't want Distance Fields to be completely snookered in the interim.

	#jira UE-52952

Change 3784608 by Rolando.Caloca

	DR - Copy 3784588
	- Fix for drivers returning out of date swapchains during resizes

Change 3784734 by Mark.Satterthwaite

	Real fix for UE-52952 - MetalShaderFormat wasn't propagating the full thread-group value.

	#jira UE-52952

Change 3784741 by Mark.Satterthwaite

	More Metal debugging commandline options "-metalfastmath" & "-metalnofastmath" to force fast-math on or off for all shaders, must be using runtime-compiled shaders (i.e. -metalshaderdebug or r.Shaders.Optimise=0) to take effect.

Change 3787103 by Guillaume.Abadie

	Kills BuiltinSamplers UB

Change 3787207 by Guillaume.Abadie

	Sorry, compile fix that were fine with local changes...

Change 3787396 by Marcus.Wassmer

	PR #4271: UE-52901: Set VIS_Max meta to hidden (Contributed by projectgheist)

Change 3788028 by Peter.Sumanaseni

	Working linear HDR exr output from sequencer

Change 3788536 by Mark.Satterthwaite

	Track whether the Metal shader uses the discard_fragment function as when this is used but without any other outputs we know we need to bind at least one render-target or a depth-stencil surface but we don't know which. This lets us correctly error when we encounter a shader with no outputs at all which Metal doesn't permit.
	#jira UE-52292

Change 3788538 by Mark.Satterthwaite

	Let's try mitigating UE-46604 on Nvidia by retaining resource references in the command-buffer. This shouldn't be necessary and isn't typically on other vendors but we haven't been able to reproduce this reliably enough to get to the bottom of it.

	#jira UE-46604

Change 3789083 by Guillaume.Abadie

	Implements global shader permutations. Example in ScreenSpaceReflections.cpp.

Change 3789090 by Guillaume.Abadie

	Fixes linux build.

Change 3789106 by Guillaume.Abadie

	Fixes compilation failure in niagara plugin.

Change 3789274 by Guillaume.Abadie

	Avoid hit proxies to clobber TAA's hitsory.

	#jira UE-52968

Change 3789380 by Guillaume.Abadie

	Back out changelist 3789083: global shader permutation because compilation failure in clang.

Change 3789648 by Guillaume.Abadie

	Relands global shader permutation, with clang support.

Change 3789712 by Guillaume.Abadie

	Fixes TestImage show flag with TAAU on.

	#jira UE-53061

Change 3791593 by Guillaume.Abadie

	Reinvalidates shaders with shader permutations.

Change 3791884 by Daniel.Wright

	Added BP setter for LowerHemisphereColor

Change 3791886 by Daniel.Wright

	Added LightmapType to PrimitiveComponent
	* ForceVolumetric allows forcing static geometry to use Volumetric Lightmaps, which can be useful on instanced foliage where seams are prevalent.  Lightmass internal caching still requires lightmap UVs and reasonable lightmap resolution.
	* ForceSurface replaces bLightAsIfStatic
	Improvements to Volumetric Lightmap quality needed for static geometry
	* Stationary light shadowing is now dilated inside geometry
	* Now doing two dilation passes since samples near geometry see inside due to ray start bias
	* Refinement around geometry uses an expanded cell bounds when the geometry is going to use Volumetric Lightmaps, since cross-resolution stitching causes leaking
	Lightmass debug primitives are now tied to a swarm task instead of global - allows debugging of Volumetric Lightmap tasks

Change 3792256 by Guillaume.Abadie

	Fixes a bug where permutation was not actually serialised in FShader, so was ending up recompiling shader at every load.

Change 3792884 by Marcus.Wassmer

	Copying //UE4/Partner-AMD to Dev-Rendering (//UE4/Dev-Rendering)

Change 3793200 by Marcus.Wassmer

	Copying //UE4/Partner-IDV-SpeedTree to Dev-Rendering (//UE4/Dev-Rendering)
	Speedtree 8 support

Change 3793206 by Brian.Karis

	Added color grading control BlueCorrection to correct for artifacts with "electric" blues due to the ACEScg color space. Bright blue desaturates instead of going to violet.

	Added color grading control ExpandGamut which expands bright saturated colors outside the sRGB gamut to fake wide gamut rendering.

	ACES changes.

Change 3793344 by Marcus.Wassmer

	Fix editortest compile

Change 3794285 by Guillaume.Abadie

	Serializes PermutationId according to archive rendering version to avoid issues with old material that were serializing a shader map into UObject.

Change 3794307 by Guillaume.Abadie

	Resaves uassets that were modified between 3789648 and 3794285

Change 3794627 by Mark.Satterthwaite

	Implement two components for MTLPP, an IMP cache for Objective-C selector implementations & an interposition framework for those same selectors:

	- imp_SelectorCache & friends provide the IMP caching for each of the Metal protocols which constitute most of the API, so far I've not covered the Metal classes used for the various descriptor/initializer types. Each type has its own IMPTable which caches the selector's implementation pointer and provides the mechanism to hook that implementation. As Objective-C is runtime dynamic this look up must be performed on the actual Class value returned by an object at runtime - you can't do this at compile time. Even things like NSString which appear compile-time static are really not as NSString is an alias for a class-cluster (NSString, NSMutableString, __NSInlineString and more).
	- The interpose directory contains MTI* files which are the framework for interposing all the functions in Metal's runtime API - I deliberately omit the descriptor classes & read-only functions as there's no benefit to interposing them - which I can build off to create a trace tool or a superior validation layer. Right now this is Mac only as there'll be some problems to solve for iOS/tvOS due to difference in linking requirements - not insurmountable.
	- Rebuild MTLPP's implementation of the C++ wrapper classes around the IMPTable's - this means we avoid all the objc_msgSend overhead for all the classes and functions whose implementations are cached. Right now the IMPTable is going to incur a look-up for all non-copy/move constructors which is suboptimal - ideally the Metal IMPTables would be cached in the Device object as they will be consistent within a single Device.
	- Sort out the MTLPP availability logic - it now exports the availability warnings to the caller and internally just blithely assumes it may call the functions, the caller is responsible for ensuring that calls are made only on appropriate devices & OSes. This reduces MTLPP complexity and better fits how MetalRHI works.
	- Fix a number of retain/release bugs that were lying dormant in MTLPP but exposed by the switch to IMPTables.
	- Add tvOS support.

	Next up, put this into MetalRHI and start fixing all the fallout.

Change 3794631 by Mark.Satterthwaite

	Missed updating mtlpp's build.cs for TVOS.

Change 3794651 by Uriel.Doyon

	UPointLightComponent::GetUnitsConversionFactor() now takes the cone angle as parameter. This allows to fix spotlight unit conversion when using lumens.

Change 3794720 by Guillaume.Abadie

	Fixes a bug in Global{Bilinear,Trilinear}ClampedSampler that was actually doing a Point sampling.

Change 3794749 by Mark.Satterthwaite

	Fix mtlpp.build.cs paths.

Change 3794856 by Mark.Satterthwaite

	Fix some shadowing warnings.

Change 3795484 by Daniel.Wright

	Implemented the Spherical Harmonic windowing algorithm from 'Stupid Spherical Harmonics (SH) Tricks'
	New WorldSettings Lightmass property VolumetricLightmapSphericalHarmonicSmoothing controls the global amount of smoothing applied

Change 3795590 by Brian.Karis

	Area light fixes

	Fixed order of operations. This helps mixing of SourceRadius, SourceLength, and SoftSourceRadius.

Change 3796832 by Marcus.Wassmer

	Correct shouldcache condition for new resolve shader

Change 3796884 by Marcus.Wassmer

	Doing it right this time.

Change 3797196 by Mark.Satterthwaite

	More updates to MTLPP to make things simpler and reduce the number of spurious Objective-C warnings that are emitted because of the way we are using the runtime.

Change 3797200 by Daniel.Wright

	Lightmass now uses the highest density VolumetricLightmapDensityVolume settings that affect any part of a cell

Change 3797221 by Daniel.Wright

	Reduced default SphericalHarmonicSmoothing based on RoboRecall tests.  Now only active with strong direct lighting from static lights by default.

Change 3797411 by Brian.Karis

	Disable ExpandGamut for old tone mapper.

Change 3797462 by Mark.Satterthwaite

	More build warnings silenced after changing to the lowest possible deployment target OS for each library.

Change 3797585 by Mark.Satterthwaite

	Range-based-For support in the NSArray wrapper.

Change 3797836 by Mark.Satterthwaite

	Even more forward-declarations to avoid system headers poking through to the including code from mtlpp.

Change 3798027 by Mark.Satterthwaite

	Fix handling of nil objects, on which no functions may be called, command-buffer retention and IMP declaration.

Change 3798154 by Mark.Satterthwaite

	Fix some egregious memory leaks that rewriting to use mtlpp exposed before we carry on - don't want these slipping into 4.19.

Change 3800990 by Mark.Satterthwaite

	Typedef all the completion-handler callback types in mtlpp to make future me's life easier.

Change 3801400 by Chris.Bunner

	Improving automated test errors on failure to generate report data.

Change 3801726 by Mark.Satterthwaite

	Correct some function availability and the command-buffer error status in mtlpp.

Change 3801808 by Chris.Bunner

	Added DefaultScalability.ini to EngineTest that forces all quality levels to Engine default Epic for now to improve consistency.

Change 3801862 by Marcus.Wassmer

	Update automated tests with color gamut change

Change 3802214 by Chris.Bunner

	When running automated tests in and editor-locked PIE viewport, skip resizing as the editor can't handle this.
	Added bindable delegate called when ScreenshotRequest is processed - Useful to allow screenshots to override and restore settings per capture.

	#jira UE-53188

Change 3802243 by Chris.Bunner

	Added button to automated test screenshot browser to add or replace all outstanding test reports if appropriate.
	DeleteAllReports button is now only enabled whilst there are reports in the list.

Change 3802372 by Chris.Bunner

	Updating more test screenshots.

Change 3803683 by Chris.Bunner

	Adding more logging and multiple attempts to automated test report network save.
	Added small wait on repeated operations that are known to fail.

Change 3803826 by Rolando.Caloca

	DR - vk - Fix merge issue

Change 3804181 by Chris.Bunner

	Tentative fix for CIS test failure.

Change 3804236 by Chris.Bunner

	Additional logging for case where file write silently fails, report platform-specific error.

Change 3804303 by zachary.wilson

	Cleaning up assets in QAGame saved with empty engine versions to resolve warnings seen when launching on

Change 3804410 by Chris.Bunner

	Added additional logging when automated screenshot test fails due to size mismatch.
	Mismatched bounds are colored red in the delta.

Change 3804455 by Mark.Satterthwaite

	Fix a small number of persistent memory leaks on the Mac build that slowly consume more and more memory as you use the Editor - interacting with menu's was particularly egregious as each NSMenu would leak after you move away.

	#jira NA

Change 3804667 by Chris.Bunner

	Speculative CIS fixes.

Change 3806008 by Chris.Bunner

	Partially reimplementing backed-out CL 3804181 to improve consistency of how automated screenshot test settings are applied/restored.

	#tests CIS preflight job 8174412

Change 3806909 by Mark.Satterthwaite

	Use the vertex-shader's in-out mask to ensure that we only validate legitmate vertex-streams in Metal's DrawIndexedPrimitive implementation.

	#jira UE-53046

Change 3807059 by laz.matech

	Checking in QAGame Rendering Map, QA-PhysicalLightingUnits, for testing Physical Light Units.
	Wanted to get this in before copy up.

	#Jira none

Change 3807726 by Chris.Bunner

	Removed a check that we can't fix up. The check hits unbound buffers which it assumes means a failure but is actually due to m.v.fetch. We don't have the information available to know which are which removed from the input without reading from the shader.

	#jira UE-53046

Change 3807800 by Guillaume.Abadie

	Fixes some warning in shader headers.

Change 3807804 by Guillaume.Abadie

	Back out changelist 3807800

Change 3807807 by Guillaume.Abadie

	Relands shader header warnings.

Change 3808046 by Chris.Bunner

	Dropping a new automated test error back to a warning as this may lead to genuine issues being ignored in the short term.

Change 3809579 by Chris.Bunner

	Back out changelist 3774677.

	#jira UE-53483

Change 3809620 by Chris.Bunner

	Updating animated cloth test screenshot.

Change 3803629 by Chris.Bunner

	Rebuilt CornellBox and DistanceField test maps, updated screenshots.

Change 3787045 by Guillaume.Abadie

	Moves some global samplers to Common.ush

Change 3809756 by Chris.Bunner

	Updating animated cloth test screenshot.

[CL 3809764 by Chris Bunner in Main branch]
2017-12-15 12:47:47 -05:00
Chris Bunner
337291cb1d Copying //UE4/Dev-Rendering to //UE4/Dev-Main (Source: //UE4/Dev-Rendering @ 3760894)
#rb Rendering
#lockdown Nick.Penwarden

============================
  MAJOR FEATURES & CHANGES
============================

Change 3658809 by Chris.Bunner

	Changing default HDR display gamut to P3 as in practice that's more common than Rec2020, this should be a user-facing option where possible though as we can't automatically retrieve that data.

Change 3658842 by Chris.Bunner

	Backing out previous HDR default gamut change as it conflicts with mandatory platform defaults.

Change 3695269 by Arne.Schober

	DR - Make clang happy wreorder

Change 3695418 by Guillaume.Abadie

	Fixes compilation failure in FoliageType_InstancedStaticMesh.cpp.

Change 3695430 by Guillaume.Abadie

	Fixes missing BeginFrame dynamic resolution event in EngineTest.

Change 3695469 by Guillaume.Abadie

	Fixes crash when passing down an invalid parameter on the sample material expression's DDX, DDY parameters.

Change 3696091 by Guillaume.Abadie

	Fixes Linux compilation failure in DynamicResolution.cpp

Change 3696593 by Chris.Bunner

	Fixed typo in vetex factory enum.

Change 3696596 by Chris.Bunner

	Added material attributes type checking to If material expression.
	Updated If material expression to validate compilation of inputs.

Change 3696597 by Chris.Bunner

	Allow visible parameter retrieval to correctly traverse through internally called functions. Previous check was intended to prevent function previews from leaving their graph through unhooked inputs, but unintentionally blocked all function inputs.

Change 3696599 by Chris.Bunner

	Fixed material instance parameter visiblity when using nested static switches across functions.

	#jira UE-50878

Change 3696734 by Chris.Bunner

	Return type fix.

Change 3697123 by Guillaume.Abadie

	Fixes compilation failure in PostProcessWeightedSampleSum.cpp on Windows 32bits.

Change 3697125 by Guillaume.Abadie

	Fixes compilation failure in MaterialExpressionIf.h

Change 3697127 by Guillaume.Abadie

	Fixes compilation failure in DynamicResolution.cpp on shipping build.

Change 3697135 by Guillaume.Abadie

	Fixes crash in dynamic resolution event frontend when resizing game play viewport in EngineTest.

Change 3697199 by Guillaume.Abadie

	Fixes TAA upsample's shader compilation failure on Mac.

Change 3697220 by Guillaume.Abadie

	Makes static analysis happy again.

Change 3697280 by Chris.Bunner

	Fixing up invalid casts in material layers validation.

Change 3697366 by Rolando.Caloca

	DR - hlslcc - Fix warning

	#jira UE-43988

Change 3697451 by Rolando.Caloca

	DR - vk - Per pipeline descriptor pools
	Descriptor pool are now allocated per PSO instead of globally to reduce peak mem consumption and fragmentation
	Enabled on Windows only via VULKAN_USE_PER_PIPELINE_DESCRIPTOR_POOLS

Change 3697477 by Rolando.Caloca

	DR - vk - Custom memory allocator
	Remove old/unused stats

Change 3697486 by Rolando.Caloca

	DR - vk - Fix validation issue

Change 3697488 by Richard.Wallis

	Fix for Mac editor session no longer accurately tracking Mouse location after moving between Desktops in Mission Control on 10.12.6.  Problem stems from the extra call to update the slate cached window position in mouse move while dragging, which is itself is a hack but apparently this is needed as we don't get window position updates on Mac while dragging (although I couldn't see any -ve side effects without it) then the OS (in 10.12.6) doesn't always push out a final window did move notificaiton when changing desktops which leaves the window according to slate incorrectly positoned to it's frame.

	Solution is to either remove the mouse-move-while-drag window position hack or add a final window position update to the mouse-up event while dragging - this change is the latter.

	#jira UE-37553

Change 3697501 by Richard.Wallis

	Move audio processing over to audio bus tap.  Currently on Mac Media audio playback uses OS media player mixer rather than Engine as existing implemtation, using AVAssetReader, now suffers from poor performance with new Media Framework.  This audio tap version replaces that asset reader implementation but also suffers from bad quality audio hence is still disabled at the top of AvfMediaTracks.cpp.

	Original Code Review Description:

	Convert Mac to Play audio through the engine MediaFramework API rather than using AVMediaPlayer.  This is the Mac implementation only - this should work ok on iOS but unable to test due to missing audio type implementation (throws error "Init Buffer on unsupported sound type name = Synth type = 5"), as such is only enabled for Mac.  There maybe some extra tweaks required for iOS on app backgrounding etc if this feature is enabled.

	- Stuttering Audio Performace issue investiagation:  Re-Tested this implementation against [now fixed] current Mac implementation which was working fine last year and that implementation now has the same audio output quality (performance) issues as this one.  Basic investigation seems to point to somewhere in the engine audio handing.  When poor audio is heard the FMediaAudioResampler::Generate() function is dequeing an IMediaAudioSample sample buffer and the audio sample queue usually has 50-100 of these IMediaAudioSample buffers waiting in the queue.  I think the AvfMedia playback system is providing the sample buffers in good time but they are not getting consumed "fast" enough.  This under consuming also occurs if I force the Core Audio - Audio Unit mixer to use 48000 samples/sec.

	#jira UEPLAT-1677

Change 3697517 by Richard.Wallis

	XCode 9.0 extra nullability specifiers required.

Change 3697537 by Richard.Wallis

	Back out revision 23 from //UE4/Dev-Rendering/Engine/Plugins/Media/AvfMedia/Source/AvfMedia/Private/Player/AvfMediaTracks.cpp

Change 3697670 by Rolando.Caloca

	DR - vk - Fix mapstaging surface

Change 3697846 by Uriel.Doyon

	Allow denormalized values when converting float32 to float16.

Change 3697892 by Uriel.Doyon

	Fix for unaligned structure elements

Change 3699335 by Richard.Wallis

	Mac compile fix - turns out I did need these nullability specifiers here.

Change 3699663 by Guillaume.Abadie

	Fixes time unit conversions from microseconds to milliseconds error in dynamic resolution heuristic when using GPU busy time queries.

Change 3699959 by Rolando.Caloca

	DR - Fix barrier in the middle of render pass

Change 3699969 by Rolando.Caloca

	DR - vk - Change dump layer location so it prints out validation ids

Change 3700356 by Guillaume.Abadie

	Implements secondary screen percentage to be able to do TAA upsample followed spatial upscale so that the editor viewport still have same TAA upsample screen percentage range to test the content with no matter monitor's DPI.

Change 3701105 by Guillaume.Abadie

	Ignore per view automatic mip bias on texture type other than 2d textures.

	#jira UE-51396

Change 3702297 by Richard.Wallis

	Mac compile fix for nullable specifier.  Looks like Obj class using the C++ class also needs this otherwise it throws.  Seems to be some kind of xcode/compiler caching bug with this stuff as it'll report the error once then on subsequent compiles say everything is ok.

	#jira UE-51386

Change 3702357 by Richard.Wallis

	Mac nullability compile fix - again.  Looks like I fell foul of that xcode compile caching!
	#jira UE-51386

Change 3702424 by Guillaume.Abadie

	Fixes planar reflection from drowing themselves in their own FSceneRenderer in forward shading.

	#jira UE-51395

Change 3702464 by Guillaume.Abadie

	Fixes wrong viewport to buffer conversion of the distortion.

	#jira UE-51406

Change 3702819 by Guillaume.Abadie

	Fixes planar reflections with secondary screen percentage for HighDPI editor viewports.

Change 3703732 by Guillaume.Abadie

	Removes unecessary check(); when there is more than 2 players with planar reflections.

	#jira UE-51436

Change 3704302 by Guillaume.Abadie

	Removes unecessary Interface suffix on new dynamic resolution related interfaces

Change 3704390 by Chris.Bunner

	Fixed a coincidentally correct define.

Change 3704730 by Rolando.Caloca

	DR - vk - Fix map for depth surfaces

Change 3704739 by Rolando.Caloca

	DR - Debug label on D3D11 UAVs
	- Validate when running -d3debug

Change 3705000 by Chris.Bunner

	Skip compiling opacity and opacity mask inputs on opaque surface materials. Previously the code was always added to the shader, sometimes we force opaque materials down a masked path which then calls the dormant code unintentionally. A safer fix for UE-48254.
	Partially reverted previous fix in CL 3608303 which removed a material instance optimization caching the overridden base properties.

Change 3706065 by Guillaume.Abadie

	Does some renaming for primary screen percentage, and move the primary screen percentage method selection from dynamic resolution driver to FSceneView.

Change 3706464 by Chris.Bunner

	Fixed material property translate overrides that were generating code in the wrong entry.
	Fixed conditions  in If material expression GetInputType and IsMA check.

	#jira UE-51368

Change 3706641 by Chris.Bunner

	Missing "break" in switch statement (which unfortunately needs another bump to resolve).

Change 3706642 by Guillaume.Abadie

	Fixes assertion failure when r.TemporalAA.EnableUpscale = 1

Change 3706650 by Gil.Gribb

	UE4 - UE4 - Changes from intel. Increase number of worker threads on Windows to if hyperthreads (hyperthreads √ 2) else cores √ 1 up to a max of 22 workers. Increase MAX_THREADS multiplier per bank from 22 to 26. Intel VTune ITT event annotations. Wrapped in same function as your existing CPU events and enabled with √vtune. Optimize NV cloth by consuming FVector instead of FVector4 out of the solver. Vertex buffers were using FVector all along. ~15% improvement. Optimize cloth copy to vertex buffer by adding prefetch (similar to how bones are already done). Move local to world cloth transform from CPU to GPU. When simulating lots of vertices game thread was becoming bottleneck doing matrix multiply. Add your TaskGraph task switch latency test code.

Change 3706733 by Daniel.Wright

	Print Embree Build time

Change 3706841 by Daniel.Wright

	EmbreeFilterFunc4 now handles masked out intersections properly

Change 3707437 by Rolando.Caloca

	DR - vk - Android compile fix

	#jira UE-51474

Change 3707785 by Guillaume.Abadie

	Fixes viewport issue in bloom setup pass with TAA upsample.

Change 3709623 by Rolando.Caloca

	DR - vk - Missing barrier for reading into cpu

Change 3709633 by Rolando.Caloca

	DR - vk - Compile fix

Change 3710454 by Mark.Satterthwaite

	Refactor the way we compile Buffer<> & RWBuffer<> types for Metal so that we can support the type-conversion semantics of HLSL/D3D.
	- Buffer<> types are converted to Linear Textures unless the internal type is 3-compnent or the STRONG_TYPE macro is added as a type-qualifier. Linear Textures require an MTLTexture "view" object be created around the MTLBuffer which is the backing-store and it is typically best if that buffer is marked as Private (GPU-only) memory, reading from this in the shader then uses the texture-fetch hardware to perform the format conversion on load.
	- RWBuffer<> & 3-compnent Buffer<> types are converted to use template functions to load/store - the implementation of which will read the format from the BufferSizes meta-table and determine which type-conversion to apply. Function-constants are used to specialise the shader where feasible to reduce branch costs (function-constants are a Metal feature that allow efficient runtime recompilation of bytecode shaders).
	- Buffer<> & RWBuffer<> types where the STRONG_TYPE macro is added as a type-qualifier (only does something on Metal, everywhere else it is #define'd away) are compiled as "raw" Metal buffers of the inner-type (e.g. float4 for Buffer<float4>) and the MetalRHI runtime will enforce that only SRVs/UAVs of the proper format are bound to it. This is necessary in a couple of cases (BoneMatrices, NumCulledLightsGrid, CulledLightDataGrid & ForwardLocalLightBuffer buffers) which are used in a larger number of shaders as Linear Textures have poorer performance than Buffer<>/RWBuffer<>.
	- Most of the complications to generating subtly different Metal code for different OS/device combinations have been factored out into ue4_stdlib.metal which acts as an extension to the Metal shader standard-library and helps simplify the MetalBackend code - particularly helpful for Buffer<>/RWBuffer<> but also texturecube_array and the SM6 wave-related intrinsics.
	- Reverted some of the awkward Metal-specific changes Richard.Wallis & Arne had to make to the high-level shaders as they aren't necessary anymore.
	- Made the existing Metal-specific changes to use uint32 for all light-grid injection buffers apply to all Metal platforms again (I had hoped that it would not be necessary anymore, but it is much faster this way).
	- STRONG_TYPE is actually hlslcc's "invariant" keyword applied as a type-qualifier to a Buffer<>/RWBuffer<> type - only valid when using Metal which exports this through ILanguageSpec and #define'd out for everyone else.
	- Old versions of iOS (anything earlier than iOS 10.3) won't be able to use this new code, so every buffer will be treated as "raw" and the MetalRHI will now properly report when something goes awry rather than it leading to mysterious rendering errors and crashes.

Change 3710456 by Mark.Satterthwaite

	Fix the Eddie workset project generator so that Enterprise projects don't get mixed in with regular projects at the top-level because of the way Eddie combines workset groups.

Change 3710457 by Mark.Satterthwaite

	DX11 texture formats for Mac Metal please!

Change 3710480 by Mark.Satterthwaite

	Permit RHI thread and parallel execution in Mac -game mode again.

Change 3710522 by Mark.Satterthwaite

	MSVC type-mismatch error fixes.

Change 3710580 by Mark.Satterthwaite

	Alright then - if I can't use the C++11 extended string semantics I'll have to use "xxd -i" to generate a hex-dump include header from ue4_stdlib.metal instead. This can only be updated from a machine with access to the POSIX xxd command (Mac & Linux, possibly the new Linux sub-system for Win10).

Change 3710616 by Mark.Satterthwaite

	Missing file.

Change 3712972 by Guillaume.Abadie

	Fixes Circle DOF's negative alpha channel getting clamped to 0 in TAA pass.

Change 3712979 by Guillaume.Abadie

	Fixes wrong RT reallocation when doing TAA upsample in editor viewports with secondary upscale.

Change 3713406 by Mark.Satterthwaite

	Use GPU morph targets on Mac - the necessary buffer conversions will always be available there. For iOS it can only be supported if iOS 10 is the minimum OS & Metal standard so leave that on the CPU path for now.

Change 3713494 by Richard.Wallis

	Fix for hitch when PIE unloading sublevel.  PerformReachabilityAnalysisOnObjects is spawing multiple threads in Editor builds as there is an extra code path that results in Critical Section locking within a singleton type static object - this is a bottle neck for multiple threads.  However they all just need to read the data not change it.  Replaced FScopeLock with a Read/Write version allowing these threads to all take a read lock at the same time to reduce contention.

	Changed the FUObjectAnnotationDense implementation only - left the sparse implementation alone as its not currently affecting this - although we could proactivly change that too.

	Also tested again repro in linked bug UE-24711.

	#jira UE-40533

Change 3713612 by Mark.Satterthwaite

	Integrate LPV_STORE_INDEX_IN_HEAD_BUFFER related changes from //depot/Partners/Microsoft/UE4-MS/Engine-Fable @ 2954744

	This should make Light Propagation Volumes potentially viable on non-Microsoft platforms.

Change 3713623 by Mark.Satterthwaite

	Implement ByteAddressBuffer/RWByteAddressBuffer in hlslcc in a similar manner to StructuredBuffer/RWStructuredBuffer so that the backends don't need too much modification. Implement the necessary changes into MetalBackend to make this work for Metal.

	Load/Store{+2,3,4} & Atomics are supported. Counter operations are not supported and aren't likely to be.

Change 3713636 by Mark.Satterthwaite

	Enable LPVs for Mac Metal.
	- Rework some multi-dimensional arrays & array-index dependent HLSL code that hlslcc simply can't cope with, the mesa-glsl compiler core is only capable of dealing with 1 dimensional arrays and array-indexing can't itself be directly dependent on the result of an array-index operation.
	- MetalRHI needs to ignore any SetRenderTargets call that binds nothing at all as you must bind at least one target (UAV, RT, Depth/Stencil) for it to be able to do anything sensible.
	- Turn on LPVs for Metal as it works now.

Change 3714049 by Guillaume.Abadie

	Do not set screen percentage method to TAA upsample when anti aliasing method is not TAA even if there is automatic fallback in the renderer.

Change 3714306 by Guillaume.Abadie

	Fixes assertion failure in dynamic resolution state proxy with GPU busy time queries.

Change 3714714 by Mark.Satterthwaite

	Tweak Metal GPU identification so that it works with eGPU boxes and protoype hardware - these changes only apply to macOS 10.13 so the system as a whole remains.

Change 3716104 by Mark.Satterthwaite

	Fix 10.12/Xcode 8 compile errors from the build-farm which is still split until Fortnite can update.

Change 3716120 by Mark.Satterthwaite

	Silence static-analysis.

Change 3716158 by Guillaume.Abadie

	Rewrites editor primitive compositing to support TAA upsample.

	This takes the oportunity to remove the manual depth testing in base pass pixel shader of editor primitives.

Change 3716271 by Daniel.Wright

	Lightmass correctness fixes
	* After these changes, point, spot, directional and sky lights closely match reference renderer Mitsuba after light unit conversions
	* Photon density trimming intended for direct photons was affecting indirect photons as well.  This caused high noise for point / spot lights with a large attenuation radius.  Indirect photon density even for small lights is 5x with this change, which improves 2nd bounce quality.
	* Removed legacy fudge factor on point / spot light photon energy
	* Spotlights no longer emit based on indirect photon paths.  Fixes excessive photon energy from spot lights as they were emitting outside of the cone.
	* Fixed photons computing one more bounce than requested.
	* Added an option to use the Radiosity solver for all multibounce, replacing photons.  Useful as a reference but generally too much noise indoors.
	* Fixed visualization of photons without final gather

Change 3716434 by Mark.Satterthwaite

	Backout the remaining change from 3632041 that is no longer necessary - this was the last of the 4.18 Metal workarounds.

Change 3716491 by Chris.Bunner

	Fixing up an edge-case on a recent optimization.

Change 3716611 by Guillaume.Abadie

	Allows secondary screen percentage >= 100%.

Change 3716977 by Guillaume.Abadie

	Back out changelist 3716158 to unblock QA pass.

	#jira UE-51580

Change 3717111 by Arne.Schober

	Fixing nomalization of Morph Tangents https://udn.unrealengine.com/questions/392462/
	Also implemanted batching of the dispatches which should help worst case perfomance where dispatches become too small.
	CalculateInverseAccumulatedWeights is not cheap and proably should be moved onto a task thread that runs as soon as the input weights are ready.

Change 3717127 by Mark.Satterthwaite

	Fix a mismerge from the reversion of 3632041 - part of the modified code had been moved into another file and I didn't initially notice.

Change 3717178 by Mark.Satterthwaite

	Remove useless copy-pasted expressions from glsl_type::GetByteAddressBufferInstance & force MetalBackend to relink. Apparently the previous Mac libs were mysteriously broken.

	#jira UE-51583

Change 3717476 by Marcus.Wassmer

	Fix PS4 compile.  funciton local statics not allowed on PSSL
	Also enabled the new atomics method for LPVs for all platforms

Change 3717502 by Arne.Schober

	DR - Compiletime option for compressed ruleset (0.02ms perf gain on PS4 and disabled by default as it limits array size to 2million entries)

Change 3717601 by Arne.Schober

	DR - Move cycle counter into more meaningfull locations.

Change 3718054 by Guillaume.Abadie

	Removes unecessary check() failure on secondary upscale that fires when testing raw output screen percentage method.

Change 3718066 by Guillaume.Abadie

	Reland: Rewrites editor primitive compositing to support TAA upsample.

	This takes the oportunity to remove the manual depth testing in base pass pixel shader of editor primitives.

Change 3718589 by Mark.Satterthwaite

	Console-variable to enable and disable Manual-Vertex-Fetch for Metal and fix the internal code to handle the subtle changes in behaviour for vertex-declarations so we don't explode under the Metal validation layer. MVF works on macOS, though testing did expose an error with Tessellation on Nvidia (true for MVF enabled & disabled).

Change 3718633 by Guillaume.Abadie

	Fixes temporal instability issue of TAA upsample with secondary screen percentage.

Change 3718658 by Arne.Schober

	DR - 25% MorphTarget Speed increase because there was a bit of cache thrashing between the waves going on.

Change 3718818 by Mark.Satterthwaite

	Fix compilation on hlslcc - integral values are not automatically converted into comparisons with zero.

Change 3719004 by Guillaume.Abadie

	Lets the game viewport client automatically set raw output screen percentage method when doing dynamic resolution with stereo rendering but without TAA upsample.

Change 3719375 by Mark.Satterthwaite

	Extend mtlpp compiler testing app to support Metal tessellation compute shaders so we can send Nvidia a much simpler reproduction of their regression.

Change 3720099 by Mark.Satterthwaite

	Make the left-hand arguments work in airdiff.

Change 3720413 by Mark.Satterthwaite

	Support standalone compute shaders in the mtlpp compiler test app.

Change 3721232 by Mark.Satterthwaite

	No more Metal Shader Model 4 - instead we have to have a Metal Shader Model 5 w/o Tessellation as Nvidia's shader compiler is broken on all tessellation shaders in 10.13.0 and above. There is no guarantee that they will fix this prior to 10.14 and I can't afford to disable tessellation entirely as if I do that then the AMD & Intel compilers will also regress. As there is no Shader Model 4 platform on Mac anymore I've amended the LevelEditorActions to disable the preview modes when no appropriate shader platform is available.

Change 3721244 by Mark.Satterthwaite

	Fix incorrect enum handling for Metal features due to overflow.

	#jira UE-51643

Change 3721338 by Mark.Satterthwaite

	MIssing file from 3721232

Change 3721818 by Mark.Satterthwaite

	Fix the Intel vector-array-dereference workaround so that it doesn't cause the AMD compiler to explode instead.

Change 3722139 by Arne.Schober

	DR - [UE-51602] -Fixed Typo that accidently bound the LightingInstancebuffer to the Transform one

	#jira UE-51602

Change 3722165 by Rolando.Caloca

	DR - Default -opengl to GL4

Change 3722682 by Guillaume.Abadie

	Fixes wrong clear color in SSR important for VR that has a HMD mesh.

Change 3722766 by Rolando.Caloca

	DR - Fix static analysis

Change 3722943 by Mark.Satterthwaite

	Disable the METAL_SM5_NOTESS shader platform again - I can workaround the Nvidia pipeline state compiler crash by changing the buffer address space from "constant" to "device" as we're managing to confuse the poor thing. This won't materially affect AMD or Intel as they don't care much about this, but to limit performance issues on Nvidia we only need to do this for Tessellation Compute shaders.

Change 3723100 by Mark.Satterthwaite

	Apparently users like enabling Metal shader standards that won't work on their current OS, so don't display those that aren't going to work & display an error message before quitting rather than crashing when trying to load a project that tries to use an incompatible shader version.

Change 3723121 by Mark.Satterthwaite

	Fix build error.

Change 3723245 by Daniel.Wright

	Ensure for when a reflection capture upload fails due to incorrect lighting scenario level handling
	Reflection captures with no data use an array index of 0, instead of -1.  Might avoid reading uninitialized memory on PS4.

Change 3723387 by Arne.Schober

	DR - Metal already applies the instance and vertexoffset in the shader

Change 3723393 by Mark.Satterthwaite

	More fixes to the mtlpp compiler test application.

Change 3725258 by Guillaume.Abadie

	Improves fast TAA upsample shader permutation by 15% on console.

Change 3725555 by Chris.Bunner

	[Dupliate] CL 3725548 - Fixed invalid screenpercentage value in VehicleGame sample (was setting -1 but should default to 100). This has always been broken but was recently exposed by CL 3686200.

Change 3726845 by Guillaume.Abadie

	Exposes SvPosition to material through screen position material expression, so that material no longer have SvPosition * InvViewSize * ViewSize precision loss.

	#jira UE-51428

Change 3728014 by Guillaume.Abadie

	Uses ScreenPosition material expression's PixelPosition pin in existing engine functions to improve precision.

	#jira UE-51428

Change 3728053 by Richard.Wallis

	Duplicate CL 3727958: Crash fix when using shared material libraries.  Initial shader code library offset is not zero'd so all entry offsets were garbage.

Change 3728339 by Guillaume.Abadie

	Adds project setting for TAA upample, and officialises TAA upsampling CVar.

Change 3728549 by Guillaume.Abadie

	CsvProfiler is pretty cool, but even better with console autocompletion for lazy developers.

Change 3728752 by nick.bullard

	Built and re-saved QA-MeshPaint
	#jira UE-50978

Change 3728775 by Guillaume.Abadie

	Implements r.DynamicRes.ChangePercentageThreshold to stabilize primary screen percentage.

Change 3729224 by Uriel.Doyon

	Hidden levels now keep their last build data when using lighting scenarios.
	Hidden levels don't affect the scene anymore volumetric lighting when not using lighting scenarios.

	#jira UE-40454
	#jira UE-38131

Change 3729243 by Marcus.Wassmer

	Update Ansel to 1.4
	#github 4159
	#jira UE-51545

Change 3729325 by zachary.wilson

	Adding indirect lighting to TM-LightingChannels
	#jira UE-47069

Change 3729485 by zachary.wilson

	Fixing ambient occlusion bias on QA-LightsStationary. Removed global PPV with bad settings, also fixed the shadow on the roof.
	#jira UE-50972

Change 3729629 by Uriel.Doyon

	Fixed crash when using debug view modes.
	Fixed d3ddebug error when clearing quad overdraw buffer.

	#jira UE-51836

Change 3730053 by Guillaume.Abadie

	Allows edititing of AScreenshotFunctionalTestBase::ScreenshotCamera.

Change 3730308 by Guillaume.Abadie

	Disables TAA upsample on buffer visualization, and disallow screen percentage preview in editor viewport with any buffer visualization.

Change 3730355 by Guillaume.Abadie

	Sacrifices consistency for good cvar name for TAA upsample.

Change 3731403 by Daniel.Wright

	Reduced slider for ContactShadowLength to .1, algorithm produces poor results with larger values.

Change 3731404 by Daniel.Wright

	Checkpoint for ScreenShadowMaskTexture, allowing 'vis ScreenShadowMaskTexture'

Change 3731407 by Daniel.Wright

	Must opt-in for FDistanceFieldSceneData::VerifyIntegrity

Change 3731517 by Guillaume.Abadie

	Freezes dynamic resolution heuristic when doing pause.

Change 3732168 by Guillaume.Abadie

	Renames TAA upsampling cvar.

Change 3732295 by Guillaume.Abadie

	Lets the scene texture's size and texel size return the correct sizes after TAA upsample.

Change 3732313 by Guillaume.Abadie

	Implements SceneTexture material expressions' automated tests.

Change 3734928 by Guillaume.Abadie

	Adds panic mode when the last N frames are over budget to the dynamic resolution heuristic.

Change 3735966 by Ryan.Vance

	Fixing mac steamvr compile issue. Missed a few lines in the refactor because mac.

Change 3736104 by Guillaume.Abadie

	Removes FSceneViewInitOptions::bDisableGameScreenPercentage brought by 4.18, that new screen percentage API do in a better way.

Change 3736346 by Daniel.Wright

	Volumetric fog is always interpolated in the pixel shader, since per-vertex interpolation gives consistently poor results.  Fixes Volumetric Fog on opaque in Forward, and on transparent in Deferred.
	Forward shading: per-pixel height fog is always done in the base pass, to work with MSAA correctly

Change 3736348 by Daniel.Wright

	Forward shadowing of directional light for translucency
	 * Static shadowing and CSM supported with minimal filtering (1 PCF)
	 * Deferred renderer: affects translucency using 'Surface ForwardShading' lighting mode.  Forward renderer: affects all translucency.

Change 3736650 by Rolando.Caloca

	DR - vk - # of desc pools

Change 3737985 by Guillaume.Abadie

	Fixes pixel inspector with primary and secondary screen percentage.

Change 3738638 by Michael.Lentine

	Compile fix due to unclear operator precendence.

Change 3739417 by Daniel.Wright

	Fixed a few issues with irradiance cache visualization

Change 3739447 by Daniel.Wright

	Skip forward static shadowing in projects with static lighting disabled

Change 3739595 by Daniel.Wright

	ConditionalPostLoad DistanceFieldReplacementMesh.  Should fix a crash on load when static mesh derived data is being rebuilt, and the DistanceFieldReplacementMesh is in use.

Change 3739598 by Daniel.Wright

	Disable capsules shadows on lowest shadow quality

Change 3739611 by Daniel.Wright

	Added r.CapsuleDirectShadows and r.CapsuleIndirectShadows for more specific scalability control over capsule shadow features
	New Lighting Feature show flags for RTDF shadows and Capsule Shadows

Change 3740516 by Guillaume.Abadie

	Fixes VR editor rendering only on eye with TAA upsample.

	#jira UE-52016

Change 3740580 by Guillaume.Abadie

	Fixes chromatic aberration with TAA upsample and multiple view rendering.

	#jira UE-51993

Change 3740588 by Guillaume.Abadie

	Gives to FXAA a more explicit draw event name for easier UDN support.

Change 3740845 by Michael.Lentine

	Fix shipping build.

Change 3740903 by Guillaume.Abadie

	Disables dynamic resolution threading outliers detection by default and includes editor UI GPU cost within dynamic resolution's begin/end frame events for better reliability of timestamp query based dynamic res in editor.

Change 3741355 by Daniel.Wright

	Normalize planar reflection plane - fixes crash when scaling a BP with a planar reflection component

Change 3741357 by Daniel.Wright

	More info on volumetric lightmap import failure

Change 3742535 by Ryan.Vance

	Fix for view rect changes.

Change 3743282 by Guillaume.Abadie

	Fixes a bug in dynamic resolution heuristic's outlier detection that was preventing the over budget panic to react.

Change 3743559 by Michael.Lentine

	Port Siren changes for recompute tangents. This adds recompute tangents for cloth as well as the ability for recompute tangents to work across seams where vertices are duplicated.

Change 3743679 by Guillaume.Abadie

	Cherry-pick 3743621: Fixes subsurface profile fallback to lit shading model when Opacity == 0, introduced by 3447144.

	#jira UE-51569

Change 3743906 by Ryan.Brucks

	BlueprintMaterialAndTextureNodes Plugin:  Fix for clamping sampled HDR render target values by setting  ERangeCompressionMode in the FReadSurfaceDataFlags to RCM_MinMax

Change 3744096 by Ryan.Brucks

	BlueprintMaterialAndTextureNodes Plugin:  removed Mip option from Texture2D_SampleUV_EditorOnly for now since reads from source data cannot access mips and it can be misleading.

Change 3744253 by Guillaume.Abadie

	Fixes merge collisions of debug canvas rendering with High DPI, fixes stat unit on high DPI monitors, and fixes secondary screen percentages.

Change 3744953 by Chris.Bunner

	Crash workaround.

Change 3745628 by Marcus.Wassmer

	Temporarily disable recalctangent normal-smoothing

	#jira UE-52166

Change 3745942 by Guillaume.Abadie

	Fixes a todo in FCommonViewportClient

Change 3746005 by Guillaume.Abadie

	Fixes stat UnitGraph on high DPI monitor.

Change 3746029 by Guillaume.Abadie

	Oups.... Fix compilation. :D

Change 3748322 by Guillaume.Abadie

	Shows dynamic resolution's primary screen percentage on stat unit/unitgraph console commands.

Change 3748346 by Chris.Bunner

	Potential static analysis fix.

Change 3748349 by Chris.Bunner

	Mac feature support flag fix on versions < 10.30.

Change 3749336 by Guillaume.Abadie

	Fixes some spelling mistakes in dynamic resolution cvars. Thanks Daniel!

Change 3749374 by Guillaume.Abadie

	Adds a black background on the stat unitgraph so timing curves can be seen no matter the content.

Change 3749437 by Guillaume.Abadie

	Final UI polish up for `stat unitgraph`

Change 3749719 by Guillaume.Abadie

	Fixes a crash when changing r.DynamicRes.MaxScreenPercentage below current screen percentage.

Change 3750243 by Chris.Bunner

	Increasing controller's automated test timeout to allow for slower machines to complete the longest tests.

	#jira UE-48494, UE-51907

Change 3750728 by Guillaume.Abadie

	Fixes merge collision in chromatic aberration.

	#jira UE-52282

Change 3750791 by Guillaume.Abadie

	Fixes chromatic baerration R and G channel swap.

Change 3751246 by Guillaume.Abadie

	Bypasses screen percentage apply with mobile LDR rendering.

	#jira UE-52089

Change 3752624 by Guillaume.Abadie

	Simplies dyn res state's event interface to a single virtual method.

Change 3753766 by Chris.Bunner

	Rebuilt volumetric baked lighting test map and updated screenshots.

	#jira UE-52322

Change 3755108 by Guillaume.Abadie

	Fixes a bug where default dynamic resolution state was created at startup of server build.

	#jira UE-52345

Change 3755267 by Mark.Satterthwaite

	Fix condition controlling which features are enabled when iOS >= 10.3 - it wasn't working for iOS 11+ which was causing all kinds of problems.

	#jira UE-52301

Change 3755811 by Chris.Bunner

	Disable some new logging that was causing a stack overflow during EnginePreInit.

	#jira UE-52345

Change 3756983 by Mark.Satterthwaite

	Prevent different versions of metal_stdlib/ue4_stdlib from causing shader compilation failures due to a time-stamp mismatch between the local file & the PCH. This can happen when working with Xcode Beta releases that change the modification date, but not the content or compiler version, amongst other possibilities.

	#jira UE-52073

Change 3757156 by Guillaume.Abadie

	Fixes editor compositing with wireframe rendering.

	#jira UE-52017

Change 3757435 by Mark.Satterthwaite

	Workaround a bug in the MobileSceneCaptureRendering where it was copying the ViewInfo's ViewRect prior to it being configured by the mobile renderer.
	#jira UE-52327

Change 3757523 by Uriel.Doyon

	Fixed d3ddebug warning with unused inputs

Change 3758318 by Guillaume.Abadie

	Cleaner fix for mobile scene captures.

	#jira UE-52327

Change 3759541 by Mark.Satterthwaite

	Don't enable Manual Vertex Fetch on iOS Metal for the moment as it isn't well tested there and will probably need further changes.

Change 3695086 by Guillaume.Abadie

	Render thread dynamic resolution & TAA upsample.

	Merging //Tasks/UE4/Dev-DynamicRes/...@3694528 to //UE4/Dev-Rendering/...

	New features breakdown:
	- TAA upsample compute shader that accepts screen percentage from 50% to 200%, with a faster shader permutation for consoles;
	- Material no longer have to deal with BufferUV, and post process material after TAA upsample can sample any scene buffer seamlessly;
	- Material texture per view mip bias to produce sharper images with TAA upsample;
	- Render thread dynamic resolution heuristic is fully plugable by game code (for VR plugin specific heuristics);
	- Dynamic resolution in PIE and game builds;
	- Busy time queries in the RHI to be implemented on the different platforms so that the dynamic resolution heuristic can  exactly associate GPU frame times with screen percentages in its history;
	- Game user settings to enable/disable dynamic resolution;
	- In editor viewport screen percentage config to previsualise and test content at different screen percentage.

	Fixes:
	- Various fixes for algorithms producing different outputs at different screen percentage.
	- Various fixes for algorithms sampling outside view rects.

	Refactors:
	- TAA shader
	- Moved some screen percentage specific members from FSceneView to FViewInfo for thread race bullet proofing.

	Aknowledgements:
	- VR plugins are broken
	- DFAO still have some artifacts

	Premiliminary review: Marcus.Wassmer
	Review for TAA refactor and TAA upsample shader: Brian.Karis
	Review for dynamic resolution: Brian.Karis

[CL 3761165 by Chris Bunner in Main branch]
2017-11-16 11:36:35 -05:00
Ryan Vance
0d75f1d94e Copying //UE4/Dev-VR to //UE4/Dev-Main (Source: //UE4/Dev-VR @ 3636795)
#lockdown Nick.Penwarden

============================
  MAJOR FEATURES & CHANGES
============================

Change 2932765 by Nick.Whiting

	Merging updated license files for Oculus libraries

Change 3480552 by Dustin.Holmes

	Added map and gamemode for calibration
	#jira UEVR-808

Change 3502253 by Nick.Whiting

	Trying to fix up p4's botch of the merge

Change 3513736 by Keli.Hlodversson

	Move duplicated late update code into a common FLateUpdateManager

	#jira UEVR-893

Change 3514798 by Mike.Beach

	#4.17
	Exposing a way for Blueprint users to remap the SteamVR controller's d-pad buttons (clashes with the Oculus mappings).

	#jira UE-42634

Change 3516042 by Dustin.Holmes

	Runtime handedness changes in Vive controllers are now reflected when a new device is connected.  Device mappings are also reset when a device disconnects, so that if it connects again it fully reregisters instead of just assuming the role it previously had.

Change 3517781 by Keli.Hlodversson

	Remove unused local variable bUseCustomPresentTexture

Change 3517951 by Mike.Beach

	#4.17
	Guarding against dereferencing a null pointer. Defaulting to the identity when we don't (yet) have a valid head pose to use.

	#jira UE-43685

Change 3518142 by Mike.Beach

	#4.17
	Resolving fallout from bad merge (CL 3514868) - checking for teminating null in array (which was added to keep ARRAY_COUNT from acting on an empty array).

Change 3523183 by Ryan.Vance

	#jira UE-46493, UEVR-661

	Fixes GearVR only displaying a black screen on startup
	Fixes GearVR rendering incorrectly with mobile multi-view w/o direct mode enabled
	Adding mobile multi-view direct support to Daydream

Change 3523718 by Nick.Whiting

	Adding core controller recentering delegate, and moving Google over to that system.

Change 3527263 by Dan.Oconnor

	Mirror 3526925 for Nick Donaldson

Change 3533596 by Dustin.Holmes

	Add garbage matte map, gamemode, and blueprints.

Change 3533598 by Dustin.Holmes

	Expose the Set Tint Color and Opacity function for Widget Components as a Blueprint node.

Change 3538139 by Mike.Beach

	Moving Oculus debug shader directly into Oculus plugin.

	#jira UE-47134

Change 3543185 by Nick.Atamas

	Address UEVR-891 : Merge in changes to Google Tango plugin.

	#jira UEVR-891

Change 3543285 by Nick.Atamas

	Merging using //UE4/Release-4.17/... -> //UE4/Dev-VR/... :
	  Fixed UEVR-852:
	  Adjusted Google Tango Plugins copyright to Copyright Google 2017.
	  Removed Apache 2.0 license.

Change 3545505 by Nick.Atamas

	Fix UEVR-851 : some fix-ups to MeshReconHUD and overlay material now has a material parameter for tinting the reconstructed mesh to help debug visualization.

Change 3547549 by Jeff.Fisher

	Fixing DefaultSpectatorScreenController comment.

Change 3551339 by Ryan.Vance

	#jira UE-44947

	Editor primitives we not being handled correctly with ISR.

Change 3554169 by Dustin.Holmes

	Reconcile missed Mixed Reality blueprint

Change 3566825 by Mike.Beach

	Fixing some bad merges from Main (fallout from CL 3566309)

Change 3567143 by Mike.Beach

	Copying //Tasks/UE4/Dev-MixedReality to Dev-VR-Minimal (//UE4/Dev-VR-Minimal)

Change 3567572 by Mike.Beach

	[WIP] Adding some MR plugin dependencies to keep CIS quiet (SteamVR is just temporary, and will be removed).

Change 3569116 by Jeff.Fisher

	Mixed reality build breaks for PS4
	-Module is dependent on steamvr, so don't build it for PS4.
	-Removed unused class that doesn't compile with clang.

Change 3569362 by Mike.Beach

	Organizing MR plugin content, to make way for new calibration modes.

Change 3572802 by Jeff.Fisher

	UEVR-832 Add save/load system for calibrated camera settings
	-Moved MixedRealityConfigurationSaveGame to c++.

	#review-3571779
	#jira UEVR-832

Change 3573864 by Mike.Beach

	[WIP] Initial work on MR cam alignment controller - records point/frustum data from user input.

Change 3575900 by Jeff.Fisher

	Vive spectator flat rect expanded to match other platforms.
	-The vive 'full flat eye' rect was narrower than other platforms.  Expanded it to be closer to the other platforms.

Change 3578684 by Mike.Beach

	Static analysis fixes for CIS.

	#jira UE-48204, UE-48203, UE-48206

Change 3579460 by Mike.Beach

	[WIP] New calibration mode for camera alignment.

	#jira UEVR-785

Change 3581232 by Mike.Beach

	[WIP] Saving off alignment calibration data, and loading it on initialization. We skip alignment calibration if it has been configured.

	#jira UEVR-832

Change 3588411 by Mike.Beach

	[WIP] Adding calibration for compositing (chroma color, etc.).

	#jira UEVR-785

Change 3588541 by Mike.Beach

	[WIP] Cleaning up some display issues with the MR calibration.

	#jira UEVR-785

Change 3588680 by Mike.Beach

	Re-organizing the MR content, now that the alignment controller calibrates more than just alignment (renaming, etc.).

Change 3588694 by Mike.Beach

	Renaming the MR calibration pawn (since it doesn't do any calibrating itself).

Change 3591518 by Mike.Beach

	Copying //Tasks/UE4/Dev-MixedReality to Dev-VR-Minimal (//UE4/Dev-VR-Minimal)

Change 3591671 by Ryan.Vance

	Debug stereo layer support
	This adds an option to render the debug canvas to a stereo layer which greatly improves console and stat readability in an hmd.

Change 3591812 by Ryan.Vance

	Don't snap motion controllers to the origin when tracking is lost.

Change 3594681 by Mike.Beach

	[WIP] Copying //Tasks/UE4/Dev-MixedReality to Dev-VR-Minimal (//UE4/Dev-VR-Minimal)

Change 3596679 by Mike.Beach

	CIS fix (likely fallout from CL 3591671) - changing the order of initialization to better match the order of declaration.

Change 3598191 by Jeff.Fisher

	UEVR-807 Setup M_MRVidProcessing to use 3D garbage matte data.
	-Created MixedRealityGarbageMatteCaptureComponent.  An instance of this is spawned by and attached to MixedRealityCaptureComponent.  Saved config data is loaded into it.  It spawns a garbage matte actor.  It then captures the garbage matte actor into a render target (which is set on MixedRealityCaptureComponent).
	#jira UEVR-807

	#review-3598179

Change 3598276 by Mike.Beach

	Copying //Tasks/UE4/Dev-MixedReality to Dev-VR-Minimal (//UE4/Dev-VR-Minimal)

Change 3598332 by Mike.Beach

	Guarding against a blind cast in the SteamVRChaperone component, which can be used cross platform (can't assume SteamVR).

Change 3605271 by Mike.Beach

	Copying //Tasks/UE4/Dev-MixedReality to Dev-VR-Minimal (//UE4/Dev-VR-Minimal)

Change 3608490 by Jeff.Fisher

	UEVR-987 Social Screen PS4 need to go to 'mirroring' for hmd setup dialog because system dialogs are not visible in separate mode.
	UEVR-988 SpectatorScreen Flickering
	UE-47234 Spectator screen: need frame delay before assigning dynamically created rendertarget to spectator texture
	UE-47310 Spectator Screen: crash if you release a render target which is assigned as the spectator texture
	-Test level content for all of these bugs.

Change 3608883 by Jeff.Fisher

	UEVR-807 Setup M_MRVidProcessing to use 3D garbage matte data.
	-Set material to use the garbage matte render target.

Change 3613292 by Mike.Beach

	Moving header fcn decl up, under the proper interface section (for organization's sake).

Change 3616943 by Nick.Whiting

	Updating SteamVR libraries to 1.0.9, so we can bring back macOS support

Change 3616970 by Nick.Whiting

	Adding in steamvr visible area mesh support.  Can be toggled with vr.SteamVR.UseVisibleAreaMesh

Change 3617866 by Mike.Beach

	Updating the VR template to reflect Oculus HMD device naming that we've keyed off of in these Blueprints (when determining which VR system we're running on).

Change 3620108 by Mike.Beach

	[WIP] Adding an intermediate calibration step to tweak the MR virtual cam's alignment.

Change 3620982 by Mike.Beach

	Tying off some loose ends with the MR calibration map:
	  * Saving after each calibration phase
	  * Fixing blocked input from garbage matte creation
	  * Blocking input handling while exiting/previewing
	  * Adding minimum radius for random screen pt

Change 3621551 by Mike.Beach

	[MR] Leveraging camera support in the new media framework - working for limited cameras in calibration.

Change 3621552 by Mike.Beach

	[MR calibration] - fixing it so when you first switch into compoisiting calibration it updates the property readout.

Change 3621660 by Mike.Beach

	[MR calibration] Cleaning up how we display text (adding a struct to wrap the coresponding properties).

Change 3623323 by Dustin.Holmes

	Fix buffer overflow when using 5+ Vive generic trackers and add more Special hand designations to cover the maximum 11 trackers Vive supports

Change 3625900 by Keli.Hlodversson

	Remove fixed 16:9 aspect ratio for SteamVR and Oculus splash screens.
	Oculus was already fixed in CL#3413801, but regressed with plugin renaming and unificiation with GearVR in CL#3502152.
	#jira UE-40220 StereoLayer splash layers are hardcoded to 8 by 4.5 meters (16:9 aspect ratio)

Change 3628409 by Mike.Beach

	Speculative CIS fix.

	#jira UE-49339

Change 3628440 by Nick.Whiting

	Fix for SteamVR OSX build issues

Change 3628489 by Nick.Whiting

	Fix for win32 build break

Change 3629045 by Mike.Beach

	Shadowed variable name fix (CIS).

Change 3629202 by Arciel.Rekman

	Copying //UE4/Partner-Valve@3629179 to Dev-VR (//UE4/Dev-VR)

Change 3629340 by Nick.Atamas

	Unshelved and resolved changes from Oculus.

Change 3629772 by Ryan.Vance

	Fixing Oculus Vulkan related compile issues. This will break Oculus Vulkan support, but the code needs to be refactored anyway.

Change 3629833 by Mike.Beach

	Fixing up CIS warning introduced by Oculus 1.17 changes - "unsafe conversion" warning

	#jira UE-49376

Change 3630696 by Jeff.Fisher

	UE-49415 //UE4/Dev-VR: Incremental UE4Editor Win64 completed with errors - 5 Errors
	Switching an include to a forward declaration
	-Not sure why the previous version didn't compile on the build machine, but fewer dependencies is good.

Change 3630783 by Mike.Beach

	Fixing CIS compiler failures for our vehicle templates.

	#jira UE-49417

Change 3630802 by Mike.Beach

	Better fix than 3630783 - updating the vehicle template's stereoscopic check (fixing the VehicleHud.cpp logic as well)

	#jira UE-49417

Change 3630870 by Mike.Beach

	Pragma'ing out a function pointer cast warning. Good warning, but I figure we know what we're doing here and there's no other way around it.

	#jira UE-49376

Change 3630993 by Ryan.Vance

	Check to ensure we have a valid third camera before trying to use it.
	We could check >= 3 or if the left and right cameras are left/right stereo etc. decided to go with the simple test for now.

Change 3631322 by Jeff.Fisher

	UEVR-909 PIP in Garbage Matte
	-Added ExternalGarbageMatteActor to MixedRealityGarbageMatteCaptureComponent and exposed it to blueprint though MixedRealityCaptureComponent.  This lets us switch from using the normal mixed reality component save/load garbage matte data and instead use an external actor, in this case the actor we use to setup the garbage matte.  Then the mask is able to capture that actor live as it is edited.
	-Also implemented GetViewOwner() so that we can use SetOwnerOnlySee to prevent other cameras and captures from seeing the garbage matte actor.
	-Calibration level now uses the external garbage matte actor to let the garbate matte mask live update.  It also does a picture-in-picture preview of the mixed reality scene.  'P' can show/hide the garbage matte actor on that PIP preview.
	-Added SetUnmaskedPixelHighlightColor to MixedRealityCaptureComponent and the material.  With this one can make unmasked video pixels more obvious in the output.  The calibration level has this mapped to shift-P and makes pixels bright yellow to white.
	-Added blueprint to calibration level to make the garbage matte actor visible in the mixed reality capture.  That is bound to ctrl-g.
	-GarbageMatteActors spawned by the mixed reality capture component are now attached to the vr origin.  The calibration level now saves garbage matte mesh transforms relative to the vr origin.
	-The garbage matte mesh is now plugin content, and is referenced in the mixedrealitycomponent default object, so it is cooked in any project that includes the plugin.
	-Fog and AtmosphericFog no longer affect the garbage matte mask capture... there may be other things we need to turn off there.
	#review-3618345

	#jira UEVR-909

Change 3631362 by Keli.Hlodversson

	#jira UE-49418 Exiting Google Instant Preview displays half of the editor viewport as black.

	Note convoluted fix: passing bIsStereoScopic3D to IsActiveThisFrame. ISceneViewExtension code cannot rely on StereoRenderingDevice->IsStereoEnabled to know whether to render in stereo, as the current viewport widget may disable it. This was not a problem before the refactoring, as HMD-related viewextensions were only added to the active list after establishing that stereo indeed was enabled and allowed by the current view port widget.

Change 3631887 by Jeff.Fisher

	Fixing IsActiveThisFrame build break.

Change 3632206 by Nick.Atamas

	Fix for UE-49413.
	Registering FOculusHMD as an extensions the same way as others: now creates an XRCamera that passes all the calls back to the HMD.

Change 3632264 by Nick.Whiting

	Fix for Vive rendering getting cropped off due to invalid subrect values being submitted to the compositor.

Change 3632340 by Nick.Atamas

	Merged in change from Loren; opted for our solution to ViewExtensions instead of the one in the changelist.
	Original description below.

	Change 3632214 by Loren.McQuade@Loren.McQuade_Dev-VR on 2017/09/07 19:51:29 *pending*

	     [Dev-VR] Added OculusHMD_SceneViewExtension, PlayerPosition/PlayerOrientation values, FOculusHMD::GetRelativeEyePose cross-eyed madness (CL 3631541, 3631687)

Change 3632353 by Ryan.Vance

	#jira UE-49468

	Don't apply xr camera rotation on the player controller when not using xr tracking.

Change 3632735 by Keli.Hlodversson

	Better fix for #jira UE-49413.
	Revert oculus xr camera code and use that one can have more than one view extension registered instead.
	Use GetPriority to have the OculusHMD view extension code execute after the default xr camera.
	The xr camera subclass did not forward the calls to ISceneViewExtension to the parent, breaking various functionality such as late update.
	Fixes a crash when entering VR pie twice, back to back.

Change 3632752 by Keli.Hlodversson

	Applying change 3632592 by Loren.McQuade@Loren.McQuade_Dev-VR_Branch on 2017/09/08 02:08:22

	     [Dev-VR] Push //UE4/Partner-Oculus@3632591 #rb merge
	     //UE4/Partner-Oculus to //UE4/Dev-VR/...

	Reverted OculusHMD_XRCamera changes, as that clas has been removed in the interim.

Change 3633211 by Mike.Beach

	Backing out Oculus MotionController hiding that accidently got submitted - we decided not to adopt this change originally.

Change 3633315 by Jeff.Fisher

	merge from main with dev-platform problem children
	-expecting SDRBackBuffer stuff to be wrong.

Change 3634006 by Mike.Beach

	Resurecting Oculus clip plane settings which got dropped in the IXR refactor.

	#jira UE-49520

Change 3634639 by Keli.Hlodversson

	Avoid include cycle

	https://ec-01.epicgames.net/commander/link/jobStepDetails/jobSteps/68863219?stepName=UE4Editor%20Static%20Analysis%20Win64%20%28IncludeTool%29&jobId=7995809&jobName=UE4%20Dev-VR%20-%20CL%203632752%20-%20Nightly%20Build&tabGroup=diagnosticHeader&firstPage=1

Change 3634641 by Jeff.Fisher

	UE-49535 Lighting is blown out when playing in VR Preview on Vive
	-Need pixel format to be PF_B8G8R8A8 for vr, now the plugins all build their render target and use that format.

	#review-3634623

Change 3634682 by Jeff.Fisher

	IHeadMountedDisplay forward declarations needed.

Change 3634690 by Ryan.Vance

	We can't override the screen percentage when rendering for stereo

	#jira UE-49287

Change 3635970 by Keli.Hlodversson

	#jira UE-49563 Crash while opening QA-Game Referencing SharedPointer.h

	Verify that StereoRendering is valid before calling IsStereoEnabled()

Change 3635979 by Mike.Beach

	CIS static analysis fix - checking a ptr for null before we use it.

	#jira UE-49531

Change 3636059 by Mike.Beach

	Fixing XR system name aliasing for the -hmd command.

[CL 3638830 by Ryan Vance in Main branch]
2017-09-12 11:27:30 -04:00
Ben Marsh
20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00