Commit Graph

151 Commits

Author SHA1 Message Date
ryan schmidt
ddfa3ebbe8 ModelingTools: add option to visualize Tangent seams in Inspector Tool. Add action to AttributeEditorTool to reset/clear Tangents.
GeometryScripting: add new functions GetMeshHasTangents, DiscardTangents, GetMeshPerVertexTangents, SetMeshPerVertexTangents, SetMeshPerVertexNormals, UpdateVertexNormal
#rb david.hill
#preflight 63752617bf76990b71d37988

[CL 23179229 by ryan schmidt in ue5-main branch]
2022-11-17 13:01:04 -05:00
Jimmy Andrews
739139364a Add more consistent clarification to the bDiscardAttributes UPROPERTY in various places where it is exposed w/ comment
#rb david.hill
#preflight 636e873a0c74adb48b61a4c5

[CL 23100849 by Jimmy Andrews in ue5-main branch]
2022-11-11 12:41:41 -05:00
ryan schmidt
8d7f939151 GeometryScript: add new MeshBoneWeightFunctions library with functions MeshHasBoneWeights, GetMaxBoneWeightIndex, GetVertexBoneWeights, GetLargestVertexBoneWeight, SetVertexBoneWeights
#rb none
#preflight 636d36cfa430c8fbeaa930a2

[CL 23091029 by ryan schmidt in ue5-main branch]
2022-11-10 19:58:07 -05:00
henrik karlsson
d5026d4d83 Strategical submit which adds includes in preparation for coming change which removes includes in headers
#preflight 636531a1581dc906bce283d1
#rb none

[CL 22994620 by henrik karlsson in ue5-main branch]
2022-11-04 16:37:48 -04:00
ryan schmidt
394026a5a5 GeometryScript: functions for working with 3D AABBs
#rb none
#preflight 636454d34b0e01486a1df1ff

[CL 22990112 by ryan schmidt in ue5-main branch]
2022-11-04 13:06:33 -04:00
matija kecman
b39658d261 RenderCaptureBaking: Expose render capture baking function to geometry script blueprints
#rnx
#rb ryan.schmidt
#jira none
#preflight 63639fe054471d10be59b31a

[CL 22950334 by matija kecman in ue5-main branch]
2022-11-03 07:15:45 -04:00
henrik karlsson
4a5e13525d Fixed non-unity non-pch compile errors
#preflight skipped
#rb none

[CL 22788359 by henrik karlsson in ue5-main branch]
2022-10-26 16:22:34 -04:00
ryan schmidt
8550cb705b GeometryScript: undo deprecation of nanite settings fields in create and update static mesh functions, as it breaks Lyra blueprints
#rb
#preflight 6356b718cb31f106ce9cb92a
#jira UE-168116

[CL 22783366 by ryan schmidt in ue5-main branch]
2022-10-26 13:06:30 -04:00
henrik karlsson
b5b86c796c This change is a strategical submit for a coming change that removes lots of includes in headers that are included by many files. This change contains adding of includes in files that previously got those includes transitively from other inclkudes
#preflight 6355d4940313c24974b2107b
#rb none

[CL 22783162 by henrik karlsson in ue5-main branch]
2022-10-26 12:57:32 -04:00
ryan schmidt
c10ece84e8 fix Geometry Script function SetMeshSelectionVertexColor so that it works even if mesh does not have vertex colors defined. Fix DynamicMeshComponent ConstantColor override, the override was ignored if the mesh had vertex colors defined.
#rb none
#preflight 634a23b9a8717e9453042b08

[CL 22549055 by ryan schmidt in ue5-main branch]
2022-10-15 13:03:38 -04:00
david hill
b680134d9b GeometryScript : MeshAssetFunctions - Fix Localization error
[CL 22549048 by david hill in ue5-main branch]
2022-10-15 13:03:26 -04:00
david hill
bf2c749236 Geometry Script: Adding the ability to set hi-res mesh.
#rb ryan.schmidt

[CL 22534627 by david hill in ue5-main branch]
2022-10-14 17:05:28 -04:00
bryan sefcik
50d4fac9e0 Updated ../Engine/Plugins/... to inline gen.cpp files
Before:
3548 unity files
Total CPU Time: 47343.578125 s
Total time in Parallel executor: 494.60 seconds

After:
3445 unity files
Total CPU Time: 46044.671875 s
Total time in Parallel executor: 468.51 seconds

#jira
#preflight 63336159b20e73a098b7f24f

[CL 22218213 by bryan sefcik in ue5-main branch]
2022-09-28 01:06:15 -04:00
jimmy andrews
3957f7740b Fix attributes getting lost by AppendMesh in geometry script
#rb ryan.schmidt
#preflight 6332562eb20e73a0986b4d14

[CL 22203101 by jimmy andrews in ue5-main branch]
2022-09-27 07:00:02 -04:00
ryan schmidt
4ffc24f96e Modify various interfaces in ModelingComponents and GeometryScripting to use the engine FMeshNaniteSettings instead of just a "nanite proxy percentage" parameter or custom nanite settings struct. Update affected callers and Lyra assets.
This change does break existing Blueprints that have used the now-deprecated pins/properties. There is no way to gracefully handle this as deprecating the uproperty requires that it no longer be editable in the Blueprint.

#rb jimmy.andrews
#preflight 632b846e10030508061417a9
#jira UE-151882

[CL 22145808 by ryan schmidt in ue5-main branch]
2022-09-22 17:36:58 -04:00
ryan schmidt
ae72511e29 ModelingComponents: Modify AssetUtils::ReadTexture()'s PlatformData path to catch and error out if being used in non-Editor builds and the texture format is not TC_VectorDisplacementMap. We cannot change texture format at runtime, because UpdateResource() depends on the source data being available. This is old code that never worked and would just crash outside the Editor.
Add messaging in geometry script functions that call ReadTexture, to hint to the user how to configure their textures to use at runtime

#rb david.hill
#preflight 632a2db16919ce3998922aab
#jira UE-164548

[CL 22114020 by ryan schmidt in ue5-main branch]
2022-09-21 11:37:26 -04:00
ryan schmidt
9d9ec2fe0f GeometryScript: fix loctext issue
#rb none

[CL 22084446 by ryan schmidt in ue5-main branch]
2022-09-19 19:43:26 -04:00
ryan schmidt
c2a3d2f5fd GeometryScript: add AppendSweepPolyline function, mirrors UE5.1 AppendSweepPolygon but for open 2D path
#rb none
#preflight 63238301c225e8be38160fb9

[CL 22052321 by ryan schmidt in ue5-main branch]
2022-09-16 12:46:59 -04:00
ryan schmidt
2570102ec2 Various improvements to (Generated)DynamicMeshActor. Harden registration/unregistration of GeneratedDynamicMeshActor with GeometryGen Subsystem, to avoid recomputing procedural mesh blueprints in objects duplicated for PIE and other temporary object copies. Add support for built-in "frozen" flag on GeneratedDynamicMeshActor, when toggled on, OnRebuildGeneratedMesh event will not be fired (ie mesh is "frozen" in it's current state). Add ability for GeneratedDynamicMeshActor to start a SlowTask dialog during long mesh recomputes, and provide a few functions that a BP can use to update the progress.
#rb jimmy.andrews
#preflight 6323576b63312bbbbb06fa21
#jira UE-155683

[CL 22041549 by ryan schmidt in ue5-main branch]
2022-09-15 19:35:13 -04:00
robert millar
5396f7f214 FNames containing asset paths are deprecated. FSoftObjectPath or FTopLevelAssetPath should be used instead.
Fixups for some misc code in plugins.

#jira UE-161932
#rb matt.peters
#preflight https://horde.devtools.epicgames.com/job/631fa3f6bd77c5883fe68184

[CL 21984919 by robert millar in ue5-main branch]
2022-09-13 12:20:10 -04:00
Jimmy Andrews
6fe4d60ab1 Handle mesh inversions due to transforms in ComponentCollisionUtil + add missing transform calls
#rb ryan.schmidt
#preflight 630d2ad8e54ec9d58164fba7

[CL 21707736 by Jimmy Andrews in ue5-main branch]
2022-08-30 15:41:50 -04:00
Jimmy Andrews
3f0fdaddb4 When applying MeshTransforms' transform and transforminverse, generally pass bReverseOrientationIfNeeded=true
(+ for code that was passing false then manually applying the same logic, remove the extra reverse orientation logic)

#rb david.hill
#preflight 630d245fe352708d44f9e007

[CL 21706500 by Jimmy Andrews in ue5-main branch]
2022-08-30 14:40:56 -04:00
ryan schmidt
51538e7929 GeometryScript: add auto-compacting option, enabled by default, to Simplify and Remesh functions. Some nodes require compacted meshes and most geoscript users do not seem to understand compact vs non-compact meshes, this will avoid issues in common cases (and in the context of Simplify or Remesh operations, compacting is a small overhead).
#rb none
#preflight 63093d3fe45e4787a3f9e561

[CL 21688349 by ryan schmidt in ue5-main branch]
2022-08-29 16:52:29 -04:00
ryan schmidt
99945ee54c GeometryScript: detect/prevent non-compact mesh input in AutoGeneratePatchBuilderMeshUVs
#rb none
#preflight 63093aa2e41c77ba7a250e4d

[CL 21688324 by ryan schmidt in ue5-main branch]
2022-08-29 16:51:49 -04:00
ryan schmidt
07f2ba973b GeometryScript: add ThickenShells option to ApplyMeshSolidify. Explicitly initialize new mesh generated in ApplyMeshSolidify and ApplyMeshMorphology to have per-vertex normals. Add handling for OffsetDistance=0 in ApplyMeshMorphology, because TImplicitMorphology does not allow this.
#rb none
#preflight 6309339ae45e4787a3f92c70

[CL 21660256 by ryan schmidt in ue5-main branch]
2022-08-29 02:21:56 -04:00