Commit Graph

4972 Commits

Author SHA1 Message Date
Chris Burel 7bcd4baec4 Use a bunch of temporaries in order to make position const
Signed-off-by: Chris Burel <burelc@amazon.com>
2021-07-19 14:37:57 -07:00
Chris Burel 70a8214c2d Add logging call to show mesh optimizer effect on vertex count
Signed-off-by: Chris Burel <burelc@amazon.com>
2021-07-19 14:37:55 -07:00
Chris Burel 8702f0cd2e Add test for the mesh optimizer's ability to weld nearby vertices
Signed-off-by: Chris Burel <burelc@amazon.com>
2021-07-19 14:37:53 -07:00
Chris Burel 38046bd0c9 Don't attempt to weld similar vertices if there's blendshapes
Signed-off-by: Chris Burel <burelc@amazon.com>
2021-07-19 14:37:51 -07:00
Chris Burel cbb4778ef5 Use a filter view instead of reimplementing a filter view
Signed-off-by: Chris Burel <burelc@amazon.com>
2021-07-19 14:37:50 -07:00
Chris Burel e4e1946018 Determine the original vertex index based on the position
The Assimp library does not expose the FBX control point indices. This
change causes vertices that are close enough in their position to be
considered as coming from the same control point. This allows the mesh
optimizer to consider vertices with the same control point index (or
"original vertex index" as it is called in the code) for deduplication.

Signed-off-by: Chris Burel <burelc@amazon.com>
2021-07-19 14:37:48 -07:00
Mike Balfour 6d563e2e19 [GHI 2178] Vegetation Debugger info was sometimes getting culled (#2209)
* [GHI 2178] Fixed missing vegetation info
The entity debug drawing culling system was removing it due to the level entity not having an AABB.  Since this component can draw infinitely far, it just needed a max AABB.
With the culling fixed, it made another culling problem evident - a bug in the font code where it wasn't culling 3D text rendered behind the camera.  Now it is.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Fix problem with debug rendering not immediately showing up.
When using FloatMax for the AABB, it causes math overflows with the initial camera frustrum.  Changing to max/2.0f is sufficient to avoid the overflows.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Fixed normals on mesh raycasts.
The normals needed to be normalized after transformation, and didn't need the non-uniform scale applied to them, since they're normals.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Fixed the bug that prevented max-size AABBs from working with ShapeIntersection::Overlap.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>
2021-07-19 15:43:56 -05:00
lumberyard-employee-dm 4d927cb26e Merge pull request #2247 from aws-lumberyard-dev/Prefab/ClearEntityMapsTogether
Remove container entity from all maps when entities are cleared from a prefab instance
2021-07-19 14:12:51 -05:00
dmcdiarmid-ly 2bf29dca75 Merge pull request #2249 from aws-lumberyard-dev/Atom/dmcdiar/ATOM-16002
Minor improvements to the DiffuseProbeGridRenderPass
2021-07-19 12:06:27 -07:00
Guthrie Adams 7cb2f62d4b Merge pull request #1250 from aws-lumberyard-dev/lawalfua/commonToolsApplication
Addition of a base AzQtToolsApplication class
2021-07-19 13:32:09 -05:00
srikappa-amzn ef68a07a40 Merge branch 'development' into Prefab/ClearEntityMapsTogether
Signed-off-by: srikappa-amzn <srikappa@amazon.com>
2021-07-19 10:52:15 -07:00
Dayo Lawal 0ffd151da6 Removing name setting in main.cpp for Atom tools
Signed-off-by: Dayo Lawal <lawalfua@amazon.com>
2021-07-19 12:42:38 -05:00
Qing Tao 9053079a56 ATOM-15935 Adding draw to pass support to DynamicDrawContext (#2248)
The DynamicDrawContext can output to different scopes: Scene, RenderPipeline or RasterPass.
Updated RasterPass so it can handle not only draw calls from Views but also from DynamicDrawContexts.
2021-07-19 10:03:59 -07:00
amzn-sean b01cd0c788 UI tweaks of the physics doc link widget (#2259)
Signed-off-by: amzn-sean <75276488+amzn-sean@users.noreply.github.com>
2021-07-19 17:25:23 +01:00
hultonha d6acac2dd4 Merge pull request #2258 from aws-lumberyard-dev/hultonha_LYN-5102_camera-context-menu
Continue to show cursor while using RMB
2021-07-19 16:36:45 +01:00
Esteban Papp adc0403c7f Issues/2045 3rdParty runtime dependencies copied multiple times (#2058) (#2236)
* 3rdParty runtime dependencies copied multiple times

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>

* 3rdParty to update timestamps when uncompressing to provoke copy of runtime dependencies

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>

* typo fix

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
2021-07-19 07:29:37 -07:00
hultonha 080d10ede9 continue to show cursor while using RMB until context menu pop-up is fixed
Signed-off-by: hultonha <hultonha@amazon.co.uk>
2021-07-19 11:55:38 +01:00
dmcdiar 918224e2d5 Moved render checks to a ShouldRender() helper function.
Skipped attachment readback on RealTime DiffuseProbeGrids if raytracing is not supported by the hardware.

Signed-off-by: dmcdiar <dmcdiar@amazon.com>
2021-07-16 18:21:50 -07:00
srikappa-amzn ebf0ea6a69 Remove container entity from all maps when entities are cleared from a prefab instance
Signed-off-by: srikappa-amzn <srikappa@amazon.com>
2021-07-16 17:03:03 -07:00
Terry Michaels d9ec159f0e Merge pull request #2235 from aws-lumberyard-dev/daimini/gitflow_210716_o3de
Gitflow 7/16/21 - O3DE
2021-07-16 17:50:44 -05:00
Danilo Aimini 512fbbe6b2 Adjust debug text sizing for Vegetation Debugger in viewport. (#2183)
Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>
2021-07-16 17:49:33 -05:00
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00
sconel b05984d4ca Prevent cached world transform and parent data from being serialized in prefab (#2219)
Porting over @AMZN-daimini 's work to clean up unneeded data from prefabs by removing cached transform data from json serialization. This is done by writing an explicit json serializer for the Editor Transform component and opting not to store or load the cached Transform fields.

Tested by creating new prefabs, loading and as well as resaving old prefabs which included patches aimed at cached transform data.

Signed-off-by: sconel <sconel@amazon.com>
2021-07-16 15:20:52 -07:00
Steve Pham 18611a95eb Update qt package hash for Linux
Update to pull in fixed Linux QT Package to resolve missing runtime dependencies
Signed-off-by: spham-amzn <spham@amazon.com>
2021-07-16 15:07:11 -07:00
moudgils 00d9f4e25b Quick compile fix (#2234)
Signed-off-by: moudgils <moudgils@amazon.com>
2021-07-16 13:50:34 -07:00
jckand-amzn ed788090d3 Adding xfail mark to test_LandscapeCanvas_GraphClosed_OnEntityDelete due to #2201 (#2208)
Signed-off-by: jckand-amzn <jckand@amazon.com>
2021-07-16 15:37:16 -05:00
jckand-amzn 4c8befe759 Removing obsolete Vegetation Debugger CVar test. CVars now function without the component present (#2200)
Signed-off-by: jckand-amzn <jckand@amazon.com>
2021-07-16 15:37:05 -05:00
Fabio Anderegg 21cb3329fd atom: correctly initialize bufferDeviceAddressFeatures (#2211)
Signed-off-by: Fabio Anderegg <fabioa@kythera.ai>
2021-07-16 13:24:06 -07:00
Fabio Anderegg c0276d22b0 shaders: make file references use CamelCase naming, linux shader compilation is case sensitive (#2212)
Signed-off-by: Fabio Anderegg <fabioa@kythera.ai>
2021-07-16 13:23:31 -07:00
Danilo Aimini bf8897551f Merge branch 'development' of https://github.com/o3de/o3de into daimini/gitflow_210716_o3de 2021-07-16 13:22:03 -07:00
Danilo Aimini e9270e491a Merge branch 'stabilization/2106' into daimini/gitflow_210716_o3de
Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>

# Conflicts:
#	scripts/build/bootstrap/incremental_build_util.py
2021-07-16 13:21:55 -07:00
Steve Pham 6909968ffb Add SPIRVCross for Linux
Signed-off-by: spham-amzn <spham@amazon.com>
2021-07-16 13:18:31 -07:00
lumberyard-employee-dm 448469025b Updated the AZ Path Code to perform case-insensitive hashing of path (#2226)
segments when using the Windows Path Separator

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
2021-07-16 15:13:47 -05:00
jiaweig 57f5e6b2fb Apply maybe_unused to tracing only variable (#2217)
Signed-off-by: jiaweig <jiaweig@amazon.com>
2021-07-16 13:08:29 -07:00
dmcdiarmid-ly bb5e9503dd Merge pull request #2221 from aws-lumberyard-dev/Atom/dmcdiar/ATOM-15994
DiffuseProbeGridRenderPass should always be enabled
2021-07-16 11:58:16 -07:00
Gene Walters 90763faeae Remove redundant scope from autocomponent functions (#2134)
Signed-off-by: Gene Walters <genewalt@amazon.com>
2021-07-16 11:05:20 -07:00
amzn-mike 8116e239f4 Restore fix lost in merge: [LY-121929] Asset Processor Error : Sqlite - Failed to prepare statement. (#2202)
Fixed unresolved product dependency query to be able to handle much larger queries (tested with 100,000 products) by storing queried products in a temp table first

Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>
2021-07-16 10:50:39 -07:00
yuriy0 ccd4cc65a5 Use SampleLevel instead of Sample to sample shadow maps. (#1370)
* Use SampleLevel instead of Sample to sample shadow maps.

This allows shadow code to be used from computer shaders which don't allow Sample. Shadow maps don't have LODs anyways

* Fix some very silly typos
2021-07-16 12:26:09 -05:00
amzn-phist 4407891740 Update audio cvars from legacy to AZ_CVARs (#2182)
* Upgrade s_AudioLoggingOptions to AZ_CVAR

Removes this legacy CVar and reimplements it as an AZ_CVAR with similar
functionality of setting flags using alpha characters.

Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>

* Upgrade s_DrawAudioDebug to AZ_CVAR

Removes the legacy CVar and reimplements it as an AZ_CVAR with similar
functionality and options.

Additional updates to the logging options CVar to fix up flag enums.

Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>

* Upgrade s_FileCacheManagerDebugFilter to AZ_CVAR

Removes the legacy CVar and reimplements it as an AZ_CVAR with similar
functionality.

Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>

* Removal of legacy IConsole dependencies from Audio

Moves a g_languageAudio cvar from CrySystem to AudioSystem.
Convert all cvar commands to AZ_CONSOLEFREEFUNC's.
Remove IConsole.h includes from source files.
Removes the CSoundCVars class.

Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>

* Minor update to cvar comments etc.

Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>
2021-07-16 12:25:32 -05:00
lumberyard-employee-dm 67c37762a3 Fixed iteration of the gem_assets_paths variable in the (#2222)
Install_common.cmake to make sure the the Gem assets are copied to the
install layout

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
2021-07-16 11:22:21 -05:00
lumberyard-employee-dm 6b747cf1e0 Added missing EMotionFX.Editor target as a runtime dependency of the EMotionFXAtom.Editor target to fix launching of the Editor when the EMotionFX gem isn't explictly enabled. (#2228)
Filled the dependencies of the AtomContent.Builders gem with the AtomConent_ReferenceMaterial and AtomContent_Sponza gem

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
2021-07-16 11:20:43 -05:00
hultonha 23e22dbb4c Merge pull request #2131 from aws-lumberyard-dev/hultonha_LYN-2348_tube_render_crash
Ensure empty geometry buffers are not submitted for render
2021-07-16 17:13:54 +01:00
Benjamin Jillich c1ebbbc176 EMotion FX: Root bone not initialized without opening Scene Settings #2088 (#2231)
User provided model was exporting correctly with an .assetinfo while it was not when just placing the .fbx file in the project folder.
Turned out that the best matching root bone was set by opening the Scene Settings for the first time, so after saving it again it worked correctly.
We're now chosing the best matching root bone when initializing the actor group, which fixes the issue.

Signed-off-by: Benjamin Jillich <jillich@amazon.com>
2021-07-16 17:53:04 +02:00
jjjoness facd1e18b5 One hamburger menu to rule them all (#2232)
* Icon changes

Signed-off-by: John Jones-Steele <jjjoness@amazon.com>

* Icon changes to svg files

Signed-off-by: John Jones-Steele <jjjoness@amazon.com>
2021-07-16 10:17:11 -05:00
hultonha 21784fd27b Merge remote-tracking branch 'upstream/development' into hultonha_LYN-2348_tube_render_crash 2021-07-16 15:16:10 +01:00
hultonha c76298acc3 Merge pull request #2135 from aws-lumberyard-dev/hultonha_LYN-2349_tube_delete_crash
Ensure the final vertex in a spline cannot be deleted using a manipulator
2021-07-16 15:15:16 +01:00
hultonha 6839ef1512 Merge remote-tracking branch 'upstream/development' into hultonha_LYN-2349_tube_delete_crash
Signed-off-by: hultonha <hultonha@amazon.co.uk>
2021-07-16 12:58:39 +01:00
hultonha 7bdc1bebaa Merge remote-tracking branch 'upstream/development' into hultonha_LYN-2348_tube_render_crash
Signed-off-by: hultonha <hultonha@amazon.co.uk>
2021-07-16 12:57:16 +01:00
hultonha d55f1b748d Merge pull request #2136 from aws-lumberyard-dev/hultonha_LY-69118_lambda_crash
Update MSVC to use new lambda processing
2021-07-16 12:55:29 +01:00
Benjamin Jillich d16b810075 Transform node animations ignored (#2160)
* Fixing user asset issue having a transform node as root rather than a bone making the whole character not animate.
* Enabled the ability to export animations for transform nodes.

Signed-off-by: Benjamin Jillich <jillich@amazon.com>
2021-07-16 13:47:47 +02:00