Commit Graph

1645 Commits

Author SHA1 Message Date
Peng 2c7fc4e391 take out warning and un-used variable 2021-06-17 17:00:36 -07:00
Peng 609752b79e ATOM-15808 [RHI][Vulkan] Take out the early memory check exit to let the developers decide what to do if device memory is less than the requirement.
JIRA: https://jira.agscollab.com/browse/ATOM-15808
2021-06-17 14:55:13 -07:00
Alex Peterson b0bb29373b Removed legacy PhysicsEntities gem 2021-06-16 11:43:21 -07:00
mrieggeramzn a505ed8a51 Merge pull request #1302 from aws-lumberyard-dev/Atom/mriegger/esmexponent2106
Atom/mriegger/esmexponent2106
2021-06-16 10:47:26 -07:00
Benjamin Jillich 2cfa1de148 [LYN-3117] Adding a skeletal mesh to a project doesn't include an Actor by default (#1303)
* Before we were skipping actors in case there was animation data present in the source asset to avoid having many duplicated actors.
* There was an issue though for simple test fbx files containing a full character with a test motion.
* The new rule is that we will be exporting actors on default whenever there is a skeleton including either skinning data or morph targets, as these usually are not included for animation assets to not increase disk space heavily.
* Tested with several of our assets and always showed the expected behavior with the new way.
2021-06-16 19:08:16 +02:00
Chris Burel 5946a5981e Fix code that triggers -Wnon-pod-varargs (#1354)
This fixes mac-specific instances of the `-Wnon-pod-varargs` warning.
2021-06-16 08:35:07 -07:00
Chris Santora 634b755338 Merge pull request #1323 from aws-lumberyard-dev/santorac/stabilization/2106/HotReloadFixes
Fixed Shader Hot-Reload Race Condition

ATOM-15728 Shader Hot Reload Fails in Debug Build

The main change was to add OnAssetReady handlers to each of the asset classes. See comments in ShaderAsset::OnAssetReady for a detailed explanation. In short, OnAssetReloaded gets missed while assets are being reloaded at the same time on multiple threads, but OnAssetReady is always called whenever connecting to the AssetBus because of its AssetConnectionPolicy.

The above change required the addition of a new AssetInitBus to call the PostLoadInit() functions. Because OnAssetReady connects to buses that are not mutex-protected, they have to be connected on the main thread. AssetInitBus::PostLoadInit is called every frame in RPISystem::SimulationTick. All Atom's asset handlers that need to do post-load initialization must connect to the AssetInitBus, and the asset will disconnect itself after initialization is complete.

We also need the Shader class to handle OnShaderAssetReinitialized to properly handle the shader reload.

With these changes I can click back and forth between "Blending On" and "Blending Off" many times (like 20 times) without issue.

Testing: AtomSampleViewer passes in dx12 and vulkan (except for known issues). Opened several AtomTest levels. Opened a multilayer material in material editor and made changes to the multilayer forward pass .shader file and saw proper reload.
2021-06-15 19:05:39 -07:00
lumberyard-employee-dm 4014cacff8 Added a ${GemName}.Builders variant to Asset-Only Gems (#1324)
* Creating Builder variant aliases for all Asset Gems

* Added an AssetGem template for creating an Asset Gem

The AssetGem template is meant for non-code Gems

* Updated the engine_template.py commands to use pathlib

Each of the four commands: create-template, create-from-template,
create-project and create-gem have been updated to use pathlib.Path or
any path manipulation

Fix several python errors when instantiating a template with missing
o3de objects.
For example attempting to use the create-project command with the
"DefaultGem" template would result in a python exception instaed of a
error log and a return value 0..

Added a **force** option to the engine_template commands
to force overriding of existing files

* Optimized search through text files when the create-template command is
run when attempting to replace the license text section

* Adding a Minimal Project Template that contains the minimal set of gems
as stated by UX

* Minor changes to the DefaultProject template. Added a license section to the EngineFinder.cmake

* Adding the MinimalProject to the engine.json file
2021-06-15 20:44:23 -05:00
Chris Santora 7bfc6dd7cb Merge remote-tracking branch 'upstream/stabilization/2106' into santorac/stabilization/2106/HotReloadFixes 2021-06-15 17:01:19 -07:00
Chris Santora 570f4f5f36 Fixed unit test compile issue 2021-06-15 17:00:30 -07:00
Jonny Galloway 7c28b1ff86 Merge pull request #1346 from aws-lumberyard-dev/Atom/gallowj/stabilization/2106
Removing this superfluous data not used by engine
2021-06-15 17:04:52 -05:00
carlitosan 889e6e2b14 Merge pull request #1287 from aws-lumberyard-dev/carlito/stabilization/2106
Remove unwanted entries from ScriptCanvas node palette
2021-06-15 15:01:54 -07:00
chcurran 94edb18ed0 disabled upgrade menu until we can stabilize the tool (LYN-3799) 2021-06-15 13:36:03 -07:00
Jonny Galloway 76e0f84670 Merge pull request #1342 from aws-lumberyard-dev/Atom/gallowj/stabilization/2106
Removing the LookDevStudio asset gem from primary o3de repo
2021-06-15 15:31:12 -05:00
gallowj f558e961ae Removing this superflous data not used by engine 2021-06-15 15:30:21 -05:00
Chris Santora 03171fee54 Updated AssetInitBus comments. 2021-06-15 12:17:44 -07:00
chcurran 2fd985f162 Fix for unconverted once nodes 2021-06-15 12:13:25 -07:00
chcurran 9f7f6e84a4 Merge branch 'stabilization/2106' of https://github.com/aws-lumberyard/o3de into carlito/stabilization/2106 2021-06-15 12:10:10 -07:00
gallowj 5c952e2e14 Removing the LookDevStudio asset gem from primary o3de repo 2021-06-15 13:39:18 -05:00
mrieggeramzn 51ba3e9346 Merge pull request #1300 from aws-lumberyard-dev/Atom/mriegger/bsearchstab
Fixing boundary search
2021-06-15 10:49:36 -07:00
Aaron Ruiz Mora 62f3c93c68 Fixed HelpPageURL links in physics components (#1328) 2021-06-15 17:51:15 +01:00
moudgils 82c5adaaed Merge pull request #1309 from aws-lumberyard-dev/MetalAsyncBufferFixes
Metal async buffer fixes related to meshes
2021-06-15 09:48:26 -07:00
AMZN-tpeng a671ebc699 Merge pull request #1291 from aws-lumberyard-dev/Atom/tonypeng/ATOM-15774
Atom/tonypeng/atom 15774
2021-06-15 09:08:27 -07:00
Benjamin Jillich 74e922a401 Compile fix in the editor actor component for release build (#1327) 2021-06-15 17:44:57 +02:00
Chris Santora 56cf345dba Fixed an issue where vulkan shaders didn't work in AtomSampleViewer because the correct API data wasn't being selected. 2021-06-15 00:11:43 -07:00
Chris Santora 276c3be617 Merge remote-tracking branch 'upstream/stabilization/2106' into santorac/stabilization/2106/HotReloadFixes 2021-06-14 20:45:41 -07:00
Roman 1f6bb14ed3 [EMFX][ATOM] crash during mesh reload (#1301)
* Fixed a crash when entering game mode, removing a mesh and re-adding mesh.
2021-06-14 20:38:37 -07:00
Chris Santora 982406d4d5 Fixed race conditions that could prevent successful hot-reload of shaders.
ATOM-15728 Shader Hot Reload Fails in Debug Build

The main change was to add OnAssetReady handlers to each of the asset classes. See comments in ShaderAsset::OnAssetReady for a detailed explanation. In short, OnAssetReloaded gets missed while assets are being reloaded at the same time on multiple threads, but OnAssetReady is always called whenever connecting to the AssetBus because of its AssetConnectionPolicy.

The above change required the addition of a new AssetInitBus to call the PostLoadInit() functions. Because OnAssetReady connects to buses that are not mutex-protected, they have to be connected on the main thread. AssetInitBus::PostLoadInit is called every frame in RPISystem::SimulationTick. All Atom's asset handlers that need to do post-load initialization must connect to the AssetInitBus, and the asset will disconnect itself after initialization is complete.

We also need the Shader class to handle OnShaderAssetReinitialized to properly handle the shader reload.

With these changes I can click back and forth between "Blending On" and "Blending Off" many times (like 20 times) without issue.
2021-06-14 20:36:12 -07:00
dmcdiarmid-ly 567b54ee25 Merge pull request #1297 from aws-lumberyard-dev/Atom/dmcdiar/ATOM-15767
[ATOM-15767] ReflectionScreenSpaceBlurPass uses a fixed number of mips
2021-06-14 19:06:13 -07:00
Doug McDiarmid de4605d6b7 Added comment. 2021-06-14 18:31:43 -07:00
Ken Pruiksma 5165f6ad04 [ATOM-15769] Setting minimum angle to 0.5 degrees on disk lights to avoid visual artifacts that occur at values closer to 0. Also updating the outer cone angle max to be 90 degrees since it's measured from the center point, not all the way across. (#1260) 2021-06-14 19:09:27 -05:00
Jonny Galloway cd9df163fd Merge pull request #1317 from aws-lumberyard-dev/Atom/gallowj/stabilization/2106
Atom/gallowj/stabilization/2106
2021-06-14 18:07:34 -05:00
Chris Santora 0d45ec806c Merge pull request #1314 from aws-lumberyard-dev/santorac/stabilization/2106/HotReloadFixes
Updated the usage of ShaderReloadDebugTracker to include the address of the object. This is necessary for debugging where multiple assets may be reloading at the same time. Also added a Printf function for generic messages at the current indent level.

This is specifically in support of:
ATOM-14613 Baseviewer MatertialHotReloadTest fails to change the color after turning blending on and off
ATOM-15728 Shader Hot Reload Fails in Debug Build
2021-06-14 15:42:31 -07:00
gallowj 2a2028a597 Merge branch 'stabilization/2106' of https://github.com/aws-lumberyard/o3de into Atom/gallowj/stabilization/2106 2021-06-14 15:52:35 -05:00
gallowj 6c05adddec This material did not look correct, sneaking it in 2021-06-14 15:41:50 -05:00
Santora 406792606b I missed one spot that needs to print the address. 2021-06-14 13:04:15 -07:00
dmcdiarmid-ly b1e22db0be Merge pull request #1298 from aws-lumberyard-dev/Atom/dmcdiar/ATOM-15623
[ATOM-15623] Objects excluded from ReflectionProbe still render DirectionalLight shadows
2021-06-14 12:45:55 -07:00
dmcdiarmid-ly 94729456c4 Merge pull request #1310 from aws-lumberyard-dev/Atom/dmcdiar/ATOM-15026
[ATOM-15026] Vulkan Ray Tracing crashes on Nvidia 10-series cards
2021-06-14 12:45:06 -07:00
Santora a09ddb1b89 Merge remote-tracking branch 'upstream/stabilization/2106' into santorac/stabilization/2106/HotReloadFixes 2021-06-14 12:24:56 -07:00
jiaweig eec5fc1546 Merge pull request #1257 from aws-lumberyard-dev/Atom/jiaweig/ATOM-13723_lattice_sizing_crash
ATOM-13723 BaseViewer DynamicMaterialTest Crash With Many Objects on dx12
2021-06-14 11:11:50 -07:00
Doug McDiarmid 7ef292d210 Removed VK_KHR_ray_query extension requirement for enabling ray tracing 2021-06-14 10:27:03 -07:00
dmcdiarmid-ly 0f851b1d16 Merge pull request #1296 from aws-lumberyard-dev/Atom/dmcdiar/LYN-4346
[LYN-4346] Adding the Diffuse Global Illumination component crashes the Editor (Prefab Mode)
2021-06-14 10:18:13 -07:00
Benjamin Jillich f8cf4ba087 [LYN-3416] Animation: Attachment component does not update it's location automatically (#1305) 2021-06-14 17:34:29 +02:00
gallowj 62d3f6d0f0 Merge branch 'stabilization/2106' of https://github.com/aws-lumberyard/o3de into Atom/gallowj/stabilization/2106 2021-06-14 09:02:46 -05:00
Benjamin Jillich 59f3813b10 [LYN-3481] EMotionFX crashes when reloading an Actor (#1184) (#1217)
* [LYN-3481] Added new actor instance request and notification buses
* [LYN-3481] Actor instance notifies bus about it being created or destroyed
* [LYN-3481] Selection lists are now automatically removing destroyed actor instances
* [LYN-3481] Morph targets window plugin reinitializing when used actor instance got destroyed
* [LYN-3481] Removing the OnDeleteActorInstance() from the emfx event handler/manager and porting the recorder to the new actor instance bus
* [LYN-3481] Removed the create actor instance calls from the event handler/manager
* [LYN-3481] Fixing automated tests
2021-06-14 08:45:00 +02:00
moudgils f8f282998b Added support to call not call UseResources on samee resource multiple times. 2021-06-13 23:36:56 -07:00
mriegger 4ac846383a Fixes from feedback 2021-06-13 23:13:43 -07:00
mriegger 86223703e4 removing tabs 2021-06-13 23:13:21 -07:00
mriegger f340189075 remove tabs 2021-06-13 23:12:47 -07:00
mriegger 959ec14df6 Exposing esm exponent 2021-06-13 23:07:10 -07:00