Commit Graph

203 Commits

Author SHA1 Message Date
Benn Gallagher
8757cb3641 Physics interface cleanup.
* Removed deprecated or dead code paths
* Simplified build system setup for physics support
* Deprecated build system flags and unsupported macros

#jira none
#rb Chris.Caulfield, Kriss.Gossart
#preflight 62963ec0fe779f23c8ea0c5e

[CL 20450744 by Benn Gallagher in ue5-main branch]
2022-06-01 06:59:18 -04:00
tyson brochu
e78697a2c1 SetCollisionGeometryTool: add Mesh to Level Set / SDF conversion
#rb jimmy.andrews
#preflight 62952aa7e61254772f6b4b5e

[CL 20432875 by tyson brochu in ue5-main branch]
2022-05-30 16:48:48 -04:00
Jimmy Andrews
b95ec506ae Make voronoi fracture run in a background thread w/ a regularly-sampled progress/cancel UI
#rb david.hill
#rb rinat.abdrashitov
#preflight 6291238b6d1aaeda58f92d18

[CL 20397644 by Jimmy Andrews in ue5-main branch]
2022-05-27 15:42:05 -04:00
Leon Huang
19877e39c5 Fix for duplicate localization key warnings and missing localization defines/undefines in various files.
#rnx
#rb: Vincent.Gauthier
#jira: UE-151614
#preflight: 628fc4a98c23e52ef0fdfa7d

[CL 20384450 by Leon Huang in ue5-main branch]
2022-05-26 16:11:10 -04:00
Jeremy Moore
ff967b1163 Remove PRIMITIVE_SCENE_DATA_FLAG_DRAWS_VELOCITY and only use PRIMITIVE_SCENE_DATA_FLAG_OUTPUT_VELOCITY.
Tidy up use of FPrimitiveSceneProxy velocity getters.
Now DrawsVelocity() is only for velocity relevance.
And HasDynamicTransform() is for determining if we need to store previous transform state.
VSM caching was using PRIMITIVE_SCENE_DATA_FLAG_DRAWS_VELOCITY so replaced that with PRIMITIVE_SCENE_DATA_FLAG_SHOULD_CACHE_SHADOW which should use the old behavior and can be tweaked in future using ShouldCacheShadow().

A common pattern for determining whether to output velocity now is to check if a previous transform exists, and to OR in AlwaysHasVelocity().
I found some proxy types that don't check for previous transform.
Also I found that the debug physics aggregate types *never* check for previous transform.
These are pre-existing potential bugs for fixing in another pass.

Also I found some proxies that don't currently fill out velocity relevance.
These are pre-existing potential bugs for fixing in another pass.

#preflight 62863f789016c6dd897f1cd2
#fyi andrew.lauritzen

[CL 20279797 by Jeremy Moore in ue5-main branch]
2022-05-19 10:08:15 -04:00
Sebastien Lussier
89e0808daa StaticMeshLODResourcesMeshSurfaceAdapter generates a bad TriangleOffsetArray in certain cases
* TriangleOffsetArray range must be [0, NumTriangles)
#jira UE-151762
#rb patrick.enfedaque
#preflight 6283ab394316db80d18e2ad9

[CL 20242244 by Sebastien Lussier in ue5-main branch]
2022-05-17 10:15:02 -04:00
semion piskarev
51b6474352 MeshModelingTools: Make offset and inset work in pathological bowtie-related cases. Fix DisconnectTriangles in cases of bowties.
#rb Jimmy.Andrews, Rinat.Abdrashitov
#jira UE-150128, UE-150574
#preflight 6283abd4730e8423d125ff9a

[CL 20242223 by semion piskarev in ue5-main branch]
2022-05-17 10:13:11 -04:00
Andrew Davidson
9741042a2b Reduce use of UE_DECLARE_LWC_TYPE macro to improve Intellisense.
Moved Math forward declarations from CoreFwd.h to Math/MathFwd.h
#rb steve.robb
#preflight 62837df43c1cdc59e2b07dd5

[CL 20240602 by Andrew Davidson in ue5-main branch]
2022-05-17 07:05:35 -04:00
semion piskarev
327f7480d7 MeshModelingTools: Fix selection getting cleared in PolyEd Inset and Disconnect and undo being a little broken for selection after CL 18570424.
#rb Matija.Kecman
#jira none
#preflight 62753035491d570f22430512

[CL 20225114 by semion piskarev in ue5-main branch]
2022-05-16 11:23:56 -04:00
matija kecman
c0efeb5f4f Render Capture Baking: Add FScopedSlowTask to give user progress feedback on game thread scene capture
#rb lonnie.li
#rnx
#jira none
#preflight 62822298046b81bf9399584e

[CL 20221812 by matija kecman in ue5-main branch]
2022-05-16 06:50:35 -04:00
matija kecman
b47e74f1a8 Render Capture Baking: Move visibility raycast from evaluators to detail sampler
Benchmark configuration:
- Test scene with 4 meshes: a mossy stone nanite mesh, a beach ball, a ball with an emissive blue cross and a hut mesh
- Target mesh: 11.8k triangles mesh, created by voxel wrapping the meshes in the test scene elements
- 4096x4096 output texture with 16x multisampling baking BaseColor, Emissive, PackedMRS and Normal maps
- 4096x4096 photo capture resolution

Unreal Insights reports the following times for the Bake call:
- Before this change: 2 mins 45 seconds
- After this change: 55.9 seconds

Aside: (Unaffected by this change) In both cases the photo capture, which is done on the game thread, took about 1 min

#jira none
#rb
#rnx
#preflight 627e64e01748fbc85bb24a42

[CL 20221383 by matija kecman in ue5-main branch]
2022-05-16 05:13:25 -04:00
Jimmy Andrews
10153ffb90 Deprecate TTransformSRT3::Inverse() and attempt to fix usages of it and also FTransform::Inverse() in the modeling code
#rb david.hill
#preflight 627d2b99a82f3adab87fb87f

[CL 20165573 by Jimmy Andrews in ue5-main branch]
2022-05-12 12:08:26 -04:00
Ryan Schmidt
06b0aa99b6 ModelingComponents: Handle ChildActorComponent with null child Actor in WorldRenderCapture
#rb lonnie.li
#preflight 6272ca4e5b2c5e1b52c612b0

[CL 20051642 by Ryan Schmidt in ue5-main branch]
2022-05-04 18:31:59 -04:00
sebastien lussier
18bb7adcec Support building HLODs meshes using cooked data
* Tested mesh merge/simplify/approximate methods
* Fixed issue in Mesh Approximate where import build scale would be applied twice (as LODRenderData is already scaled)
#rb jeanfrancois.dube
#preflight 62693fdc4c0942024111839b

#ROBOMERGE-OWNER: sebastien.lussier
#ROBOMERGE-AUTHOR: sebastien.lussier
#ROBOMERGE-SOURCE: CL 19939143 via CL 19945922 via CL 19946391 via CL 19946484
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19952398 by sebastien lussier in ue5-main branch]
2022-04-28 01:59:21 -04:00
matija kecman
929525effb Render Capture Baking: Support correspondence sample validity checking, use BSpline filtering and enable multisampling
#rb lonnie.li
#rnx
#jira none
#preflight 6262d4dbd558dfdec3934905

[CL 19899614 by matija kecman in ue5-main branch]
2022-04-25 05:41:52 -04:00
jimmy andrews
8383d20898 #jira UE-146998
Make split/mshmrg preserve mesh pivots so users can round-trip through them w/out losing the pivot location

#rb lonnie.li
#preflight 6262f6f6d929bc34a3370ae4

#ROBOMERGE-AUTHOR: jimmy.andrews
#ROBOMERGE-SOURCE: CL 19870983 in //UE5/Release-5.0/... via CL 19873739
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v940-19807014)

[CL 19878005 by jimmy andrews in ue5-main branch]
2022-04-22 19:55:01 -04:00
ryan schmidt
daea05da21 ModelingMode: add cvar to control snapping to Volumes. Disable by default.
#rb tyson.brochu
#jira UE-149912
#preflight 6261df5e6119a1a496c94568

#ROBOMERGE-AUTHOR: ryan.schmidt
#ROBOMERGE-SOURCE: CL 19859555 in //UE5/Release-5.0/... via CL 19859900
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v940-19807014)

[CL 19869486 by ryan schmidt in ue5-main branch]
2022-04-22 15:01:13 -04:00
tyson brochu
087f3b0d0f Remesh Tool: initial implementation of (optional) boundary constraint projection:
- Constrained edges along a boundary are allowed to collapse, and vertices are allowed to move, but they are projected back to the original boundary curve geometry
- Additionally, vertices at boundary "corners" (defined using an angle threshold criterion) are constrained to not move or be deleted


#jira UE-149616
#rb rinat.abdrashitov
#preflight
#preflight 6262dc97e87284a93cd6bd44

[CL 19867177 by tyson brochu in ue5-main branch]
2022-04-22 12:56:47 -04:00
semion piskarev
86b2b0b7d0 MeshModelingTools: Minor rephrasing in CubeGrid UV flipping logic to appease the static analyzer.
#rb Jimmy.Andrews
#jira UE-149826
#preflight 6261bc9ca21b75437123164c

[CL 19855728 by semion piskarev in ue5-main branch]
2022-04-21 16:49:13 -04:00
semion piskarev
3bd16bc588 MeshModelingTools: Prevent a crash from trying to dereference a failed cast to UStaticMeshComponent in ModelingSceneSnappingManager.
#rb Ryan.Schmidt
#jira UE-149358
#preflight 62608da3886befa9a5cee5c9

#ROBOMERGE-AUTHOR: semion.piskarev
#ROBOMERGE-SOURCE: CL 19853050 in //UE5/Release-5.0/... via CL 19854409
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v940-19807014)

[CL 19855693 by semion piskarev in ue5-main branch]
2022-04-21 16:47:07 -04:00
semion piskarev
342f52f89f MeshModelingTools: Add defensive nullptr check in tool targets' CommitDynamicMesh to avoid crashing when the underlying asset is deleted.
#rb Lonnie.Li, Matija.Kecman
#jira UE-148700
#preflight 62603e879c5ff79f3c4b259d

#ROBOMERGE-AUTHOR: semion.piskarev
#ROBOMERGE-SOURCE: CL 19835061 in //UE5/Release-5.0/... via CL 19838321
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v940-19807014)

[CL 19840638 by semion piskarev in ue5-main branch]
2022-04-20 18:56:00 -04:00
semion piskarev
61527278b2 MeshModelingTools: Make the UV's created by CubeGridTool not be flipped when cutting things away.
#rb Nathan.Mitchell
#jira none
#preflight 6255e6033e1d412540e1384f

[CL 19833633 by semion piskarev in ue5-main branch]
2022-04-20 13:32:57 -04:00
semion piskarev
f4faae3551 MeshModelingTools: Change how HoleFillOp assigns UV's to single trianges to avoid an unnecessary connected component search for the whole mesh. Also make it work in the presence of unset UV's though this currently can't happen inside the HoleFill Tool because it passes everything through a MeshDescription conversion.
#rb Jimmy.Andrews, Tyson.Brochu
#jira UE-147181
#preflight 62602a4add47b4ad2173633f

[CL 19831940 by semion piskarev in ue5-main branch]
2022-04-20 12:00:18 -04:00
semion piskarev
48099e42d8 MeshModelingTools: Fix minor static analysis complaint in CubeGridTood.
#rb none
#rnx
#jira UE-144617
#preflight 624c7f30a64871f1a10f8d2b

[CL 19628145 by semion piskarev in ue5-main branch]
2022-04-05 13:48:12 -04:00
nathan mitchell
559622e6cf ClothEditor: Add new tool derived from the Modeling Mode Group Paint tool for weight painting with dynamic meshes and the brush tool infrastructure
#rb tyson.brochu
#rnx
#preflight 62462ecbb33098a72dd3eb09

[CL 19611005 by nathan mitchell in ue5-main branch]
2022-04-04 12:41:00 -04:00