Commit Graph

6 Commits

Author SHA1 Message Date
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
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
lonnie li
8ed8a29e69 GeometryScript: Added CreateNewTexture2DAsset function
#rb semion.piskarev
#jira none
#preflight 62278b28e83598518f37e7b2

[CL 19309284 by lonnie li in ue5-main branch]
2022-03-08 15:11:38 -05:00
ryan schmidt
58db90e0d8 GeometryScript: add CreateUniqueNewAssetPathName Function
#rb none
#rnx
#preflight 616770c0bf7be80001eec475

#ROBOMERGE-AUTHOR: ryan.schmidt
#ROBOMERGE-SOURCE: CL 17810762 in //UE5/Release-5.0/... via CL 17810769 via CL 17810777
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v881-17767770)

[CL 17810785 by ryan schmidt in ue5-main branch]
2021-10-13 21:45:44 -04:00
Ryan Schmidt
44ea0cc771 GeometryScripting: ongoing evolution
- CopyMeshToStaticMesh now supports control of relevant build options on output, prefers to save incoming normals/tangents by default
- added ApplyMeshPlaneSlice
- added ApplyMathWarpToMesh (only sin waves currently), ApplyPerlinNoiseToMesh, ApplyIterativeSmoothingToMesh, ApplyDisplaceFromTextureMap
- added ComputeTangents
- added GetHasPolygroups, GetNumExtendedPolygroupLayers, EnablePolygroups, SetNumExtendedPolygroupLayers, ClearPolygroups, CopyPolygroupsLayer, ConvertUVIslandsToPolygroups, ComputePolygroupsFromAngleThreshold
- added AppendRevolvePath, converted various Primitive box/box2d inputs to separate floats, added Origin option to relevant primitives
- added ApplyRecursivePNTessellation, ApplyPolygroupCatmullClarkSubD, ApplyTriangleLoopSubD
- added SetMeshConstantVertexColor
- added CopyUVSet, SetMeshUVsFromCylinderProjection, RecomputeMeshUVs, AutoGeneratePatchBuilderMeshUVs, AutoGenerateXAtlasMeshUVs
#rb none
#rnx
#jira none
#preflight 614421964778fa000186f97a

[CL 17551456 by Ryan Schmidt in ue5-main branch]
2021-09-17 09:44:28 -04:00
Ryan Schmidt
fdc14d7be4 GeometryScript: continue building out library (still at the trivial-wrappers stage)
- ComputeMeshConvexHull, ComputeMeshSweptHull
- CreateNewVolumeFromMesh, CreateNewStaticMeshAssetFromMesh
- DeleteVerticesFromMesh, DeleteTrianglesFromMesh, AppendBuffersToMesh
- AppendSimpleExtrudePolygon, AppendTriangulatedPolygon, hole parameter for Append Disc (to make punctured disc)
- IsSameMeshAs, MeasureDistancesBetweenMeshes, IsIntersectingMesh
- SplitMeshByComponents, SplitMeshByMaterialIDs, GetSubMeshFromMesh, CopyMeshToMesh
- ApplyFlareWarpToMesh, changed other warps to use FTransform for orientation instead of multiple axis parameters
- GetHasMaterialIDs, GetMaxMaterialID, EnableMaterialIDs, ClearMaterialIDs, RemapMaterialIDs, GetTriangleMaterialID, GetAllTriangleMaterialIDs, SetTriangleMaterialID, SetAllTriangleMaterialIDs
- SetNumUVSets, TranslateMeshUVs, ScaleMeshUVs, RotateMeshUVs, SetMeshUVsFromPlanarProjection, SetMeshUVsFromBoxProjection, RepackMeshUVs
- GetNumConnectedComponents, GetAllVertexPositions
- aded FGeometryScriptDynamicMeshBVH wrapper for AABBTree & FWNTree. Somewhat risky but avoids a UObject wrapper, and these objects are (currently) intended to have a lifetime that does not extend outside a single BP
- BuildBVHForMesh, IsBVHValidForMesh, RebuildBVHForMesh, FindNearestPointOnMesh, FindNearestRayIntersectionWithMesh, IsPointInsideMesh

#rb none
#rnx
#jira none
#preflight 6142c4d4599fd8000183db48

[CL 17537493 by Ryan Schmidt in ue5-main branch]
2021-09-16 08:27:29 -04:00