Commit Graph

14 Commits

Author SHA1 Message Date
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
Ben Marsh
ea340d3fbf Copying //UE4/Fortnite-Staging to Dev-Main (//UE4/Dev-Main)
#rb none
#lockdown Nick.Penwarden

[CL 4567513 by Ben Marsh in Main branch]
2018-11-14 19:05:13 -05:00
Yuriy ODonnell
2fce49e85a Moved duplicated code from MeshUtilities and MeshDescriptionOperations (FLayoutUV, FAllocator2D, FOverlappingCorners, etc.) into a new single module MeshUtilitiesCommon.
Add a generic opaque mesh view interface FLayoutUV::IMeshView to abstract mesh data access and allow FLayoutUV to be used with any mesh type in any module.
Replaced few instances of using an old version of overlapping corners data structure (multi-map) with new specialized FOverlappingCorners container.

#rb Alexis.Matte
#rb Brian.Karis

[CL 4242975 by Yuriy ODonnell in Dev-Editor branch]
2018-07-31 05:49:40 -04:00
Richard TalbotWatkin
24a2a24011 New attribute array API.
Fixed some flaws in the original API, deprecated various methods, and introduced some new features.
- Now attribute arrays are accessed via TAttributesRef or TAttributesView (and corresponding const versions). These value types hold references to attribute arrays, and individual elements can be accessed by their element ID and attribute index. Using a value type is safer than the previous method which required assignment to a const-ref (and not doing so would take a temporary copy of the attribute array).
- The attribute set has been totally flattened, so all attributes of different types are added to the same container. This greatly improves compile times, prevents attributes from being created with the same name but different types, and permits the view feature.
- The class hierarchy has changed to have generic base classes where possible with no particular ElementID type. This reduces the code footprint by no longer generating nearly identical copies of templated methods.
- A TAttributesView allows the user to access an attribute array by the type of their choosing, regardless of its actual type. For example, the Normal attribute may be registered with type FPackedVector, but accessed as if it was an FVector. This allows us to move away from very strong typing, and instead transparently store attributes of a more efficient size, while the user is not affected.
- A transient attribute flag has been added, to denote that a particular attribute should not be saved.
#rb none

[CL 4226081 by Richard TalbotWatkin in Dev-Editor branch]
2018-07-20 18:58:37 -04:00
Alexis Matte
c4400128f5 Update the staticmesh LOD model max deviation when generating a LOD
#jira UE-60353
#rb none

[CL 4134543 by Alexis Matte in Dev-Editor branch]
2018-06-16 10:22:53 -04:00
Richard TalbotWatkin
9015f50d9e - Refactor to put UStaticMesh Mesh Descriptions in a separate object which is not loaded by default, but which can be requested when needed. This needs to be kept in sync with the number of SourceModel LODs.
- Various refactors to import/building.
- Changed UMeshDescription to FMeshDescription, and made its preferred semantics pass-by-reference rather than by pointer.
- Deprecated UMeshDescription.
#rb Alexis.Matte

[CL 4118758 by Richard TalbotWatkin in Dev-Editor branch]
2018-06-07 16:22:56 -04:00
projectgheist
27ae5afdcb PR #4726: Update copyright notices to 2018. (Contributed by projectgheist)
#rb none
#lockdown Nick.Penwarden

[CL 4070389 by Ben Marsh in Main branch]
2018-05-14 07:48:19 -04:00
Alexis Matte
0c878e4e62 Fix automation tests warning, we always make sure there is no degenerate NTBs
#rb none
#jira UE-58071

[CL 4023424 by Alexis Matte in Dev-Geometry branch]
2018-04-23 18:11:15 -04:00
Alexis Matte
137e7dbf97 Degenerate polygons rejection during staticmesh import do not anymore mess the vertexinstance normals
Degenerate polygon rejection during staticmesh build is done has the first step when computing the render mesh
#rb none
#jira UE-57815

[CL 4006506 by Alexis Matte in Dev-Geometry branch]
2018-04-16 17:40:43 -04:00
Alexis Matte
23bb6528fa Fix old faceted meshes, bump version to ensure static mesh are rebuild build
- Add some normals and tangents tests but they are disable until the new compute tangents return the same value then the original FRawMesh code.
#rb none
#jira UE-56965

[CL 3973085 by Alexis Matte in Dev-Geometry branch]
2018-03-29 16:39:17 -04:00
Alexis Matte
c186cbd8b4 When StaticMesh build options are set to use the imported normals, we now use the imported normals to compute the tangents when using the builtin option.
#rb none
#codereview richard.talbotwatkin

[CL 3961006 by Alexis Matte in Dev-Geometry branch]
2018-03-22 20:14:49 -04:00
Alexis Matte
793a2b1fe1 Move Normals tangents creation in MeshDescription module, this will allow to share the code between editable mesh and staticmesh builder
#rb none
#codereview richard.talbotwatkin

[CL 3960212 by Alexis Matte in Dev-Geometry branch]
2018-03-22 16:02:58 -04:00
Matt Kuhlenschmidt
a02c4a86f6 Fix CIS
#rb none

[CL 3931019 by Matt Kuhlenschmidt in Dev-Geometry branch]
2018-03-07 09:10:20 -05:00
Alexis Matte
f158f6f053 Move MeshBuilder module from runtime to developper and make it editor only
#rb none

[CL 3914382 by Alexis Matte in Dev-Geometry branch]
2018-02-28 10:07:25 -05:00