Commit Graph

29 Commits

Author SHA1 Message Date
graham wihlidal
ee8f378f7b Geometry collection assets created from one or more static meshes will have Nanite automatically enabled now, as long as at least one of the input meshes had Nanite enabled originally.
#rb trivial
#fyi brian.karis, rune.stubbe
#jira UE-104791

[CL 15028299 by graham wihlidal in ue5-main branch]
2021-01-08 20:00:52 -04:00
Rune Stubbe
dc5e9cb018 Nanite support for geometry collection
The Nanite builder now accepts a set of meshes that will be built into a single resource with a hierarchy root for each input mesh.
Updated runtime code to use this feature for Geometry collection.
Each GC now takes up just a single root page.
Changed geometry collection serialization so Nanite data is now transient similar to how it is transient in RenderData for StaticMesh.
Added bogus serialization functions for parsing and throwing away the old Nanite data, so we don't crash when parsing old files.

#rb brian.karis, graham.wihlidal

[CL 14828108 by Rune Stubbe in ue5-main branch]
2020-12-01 11:18:19 -04:00
Jon Nabozny
cf1d1c03c2 Fix initialization order issue in GeometryCollectionObject.
#fyi Brett.Miller
#rb None
#jira None

[CL 14794705 by Jon Nabozny in ue5-main branch]
2020-11-20 01:16:51 -04:00
brett miller
4359cae5c0 GeometryCollection -- Added Apply Changes button to trigger Simulation Data rebuild.
#rb none
#jira none
#fyi brice.criswell

[CL 14794036 by brett miller in ue5-main branch]
2020-11-19 22:01:51 -04:00
Rune Stubbe
df3e21a55f Fix for LZCompression crash when building multiple platforms at once
#rb graham.wihlidal

[CL 14684712 by Rune Stubbe in ue5-main branch]
2020-11-07 07:15:58 -04:00
graham wihlidal
0e876d9805 Fixed Nanite Geometry Collection crashes and incorrect rendering on cooked platforms.
#rb rune.stubbe
#fyi brian.karis, benn.gallagher, michael.lentine

[CL 14638967 by graham wihlidal in ue5-main branch]
2020-11-02 21:12:24 -04:00
Marc Audy
68150e0be7 Merge UE5/Release-Engine-Staging to UE5/Main @ 14611496
This represents UE4/Main @ 14594913

[CL 14612291 by Marc Audy in ue5-main branch]
2020-10-29 13:38:15 -04:00
Marc Audy
4c1bb11c29 Merge UE5/Release-Engine-Staging to UE5/Main @ 14548662
This represents UE4/Main @ 14525125 + cherrypicked fixes
#skipundocheck

[CL 14551026 by Marc Audy in ue5-main branch]
2020-10-22 19:19:16 -04:00
Rune Stubbe
aa79139e4e Fix for Geometry Collection not registering Nanite meshes with Nanite streamer when using Fracture tool
#jira UESP-3618
#rb graham.wihlidal

[CL 14500224 by Rune Stubbe in ue5-main branch]
2020-10-15 05:19:18 -04:00
Marcus Wassmer
3b81cf8201 Merging using //UE5/Main_to_//UE5/Release-Engine-Staging @14384769
autoresolved files
#rb none

[CL 14384911 by Marcus Wassmer in ue5-main branch]
2020-09-24 00:43:27 -04:00
Rune Stubbe
42a3b7c43f Enabled LZ4 compression of Nanite data on platforms that don't support LZ decompression in hardware.
Nanite always generates LZ compressed data. All platforms share the same DDC key. Platforms that support hardware LZ decompress during platform-specific serialization.
Added LZ hardware decompression to platform properties and target platform.


#fyi Brian.Karis
#rb Graham.Wihlidal

[CL 14277717 by Rune Stubbe in ue5-main branch]
2020-09-09 04:50:52 -04:00
graham wihlidal
431df3102b Refactor of Nanite GeometryCollection serialization code to avoid the need to do tagged property versioning when Nanite::FResources is altered. This behavior now matches how regular StaticMesh serialization is working for Nanite resource data.
#jira UESP-3364
#rb benn.gallagher, rune.stubbe
#fyi brian.karis, michael.lentine

[CL 14229143 by graham wihlidal in ue5-main branch]
2020-09-01 12:46:08 -04:00
Brian Karis
8ad4d4a7cd Fixed determinism in build.
Fixed tangents not being derived resulting in no welding for mip0 of Nanite
Ignore bHasColor from mesh desc and check if any non-white.
Misc clean up

#rb rune.stubbe

[CL 14223322 by Brian Karis in ue5-main branch]
2020-08-31 17:49:41 -04:00
Rune Stubbe
4ddc2aff3a Geometry collection:
-Fixed issue where Nanite data would disappear because of serialization issues.
-Fixed issue where Nanite data would be deserialized twice on load.
-Added assert to Nanite streaming to make sure RootPages are valid.

#rb Graham.Wihlidal

[CL 14212566 by Rune Stubbe in ue5-main branch]
2020-08-28 16:47:53 -04:00
graham wihlidal
c6add29e45 Fix Nanite geometry collection rendering when the translucent "selected geometry" materials get added automatically.
#rb none

[CL 13924823 by graham wihlidal in ue5-main branch]
2020-07-22 13:12:31 -04:00
graham wihlidal
1ca1e3c438 Cleaned up numerous hacks when build Nanite geometry from outside the static mesh builder. Further improvements can be made, but a good first step.
#rb none
#fyi brian.karis

[CL 13914585 by graham wihlidal in ue5-main branch]
2020-07-21 17:01:45 -04:00
graham wihlidal
6eecffcc08 Correctly support geometry collection clustering with Nanite. Also fixed proxy recreation when EnableNanite is toggled in the editor.
#rb none
#fyi benn.gallagher, michael.lentine

[CL 13912300 by graham wihlidal in ue5-main branch]
2020-07-21 15:17:07 -04:00
graham wihlidal
88224aa13c Fix material TSB conversion for Nanite geometry collection data.
#rb none

[CL 13861650 by graham wihlidal in ue5-main branch]
2020-07-15 05:35:35 -04:00
graham wihlidal
be384a7ef5 Added initial custom render scene proxy for geometry collections driven by Nanite.
#rb none
#fyi michael.lentine, benn.gallagher, brian.karis

[CL 13861289 by graham wihlidal in ue5-main branch]
2020-07-15 03:39:13 -04:00
graham wihlidal
1d6d62f191 Added initial functionality for building and serializing Nanite cluster pages (currently) 1:1 with Chaos geometry collection groups. This feature is still very much a work in progress.
#rb michael.lentine
#fyi michal.valient, brian.karis, benn.gallagher

[CL 13861053 by graham wihlidal in ue5-main branch]
2020-07-15 01:49:28 -04:00
Marc Audy
11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00
devin doucette
b59af50e44 Added missing DDC stats for a few types
#rb Zousar.Shaker
#rnx

#ROBOMERGE-OWNER: devin.doucette
#ROBOMERGE-AUTHOR: devin.doucette
#ROBOMERGE-SOURCE: CL 12475124 via CL 12475300 via CL 12475323 via CL 12475339
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v672-12450963)

[CL 12475349 by devin doucette in Main branch]
2020-03-27 17:52:09 -04:00
benn gallagher
6f7b8aec37 Fixed for implicit type mismatch and bad serialization.
Revived SharedImplicitsAttribute to correctly handle the type change.
Undid breaking of old assets on load.
Removed const casting from dynamic collection initialization and safely handle attribute upgrades during geometry collection serialization.
Fixed attempted copies of managed attributes of different types.
#rb Brice.Criswell
#jira

#ROBOMERGE-SOURCE: CL 12125198 in //UE4/Release-4.25/... via CL 12125214
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v659-12123632)

[CL 12140098 by benn gallagher in Main branch]
2020-03-11 17:01:25 -04: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
marc audy
c48ebb4d45 Make virtual UObject::Modify WITH_EDITOR. UObject::Modify remains defined as a forceinlined noop without editor to avoid having to fixup all existing code that exists in non-editor that calls Modify.
#rb Michael.Noland
#jira


#ROBOMERGE-SOURCE: CL 8293866 via CL 8353802
#ROBOMERGE-BOT: (v401-8057353)

[CL 8354009 by marc audy in Main branch]
2019-08-27 17:20:03 -04:00