Commit Graph

229 Commits

Author SHA1 Message Date
rinat abdrashitov
34ac3675af -Added support for skin weight and bone attributes when converting skinned meshes to dynamic meshes.
-Removed extra spaces.

#rb david.hill
#rb halfdan.ingvarsson
#rb alexis.matte
#jira none
#preflight 64343ef4b306e98c632d1bd1
#rnx

[CL 24979483 by rinat abdrashitov in ue5-main branch]
2023-04-10 13:00:44 -04:00
ryan schmidt
d83ee312b8 ModelingMode: bring back in-viewport selection toolbar. Add concept of Locking to IGeometrySelector, have StaticMeshSelector and VolumeSelector default to locked. Add util functions to check/manipulate locking state to UGeometrySelectionManager. Add locked-state indicator/button to selection toolbar.
#preflight 642df231c6769c608209676a
#rnx

[CL 24979045 by ryan schmidt in ue5-main branch]
2023-04-10 12:36:37 -04:00
dmytro vovk
6e87e7ac29 Pack FTexture2DMipMap fields
#rb Christopher.Waters
#preflight 6422d44f803cb466e8475419

[CL 24912796 by dmytro vovk in ue5-main branch]
2023-04-04 12:38:36 -04:00
Steve Robb
5b8c9537f7 Made FMeshBakerDynamicMeshSampler explicitly non-copyable to prevent a bunch of deprecation warnings about FMeshBakerDynamicMeshSampler::DetailNormalMap from their implicit copy constructors.
Made FSceneCapturePhotoSetSampler explicitly non-copyable to prevent its special member functions being DLL-exported.

#rb none
#jira none
#preflight none

[CL 24890436 by Steve Robb in ue5-main branch]
2023-04-03 06:14:42 -04:00
charles bloom
ffe45866e0 clean up code using GetMipData without checking return value
GetMipData can return false on textures that have no sources
Textures without source is common now in UEFN
also comment about some code that is broken or more fragile than necessary

#preflight https://horde.devtools.epicgames.com/job/6423434d710ec8400fe83bd6
#rb fabian.giesen,dan.thompson

[CL 24831862 by charles bloom in ue5-main branch]
2023-03-29 02:28:14 -04:00
ryan schmidt
c8acfc09b0 ModelingTools: add support for DynamicMeshComponent Simple Collision in Mesh to Collision Tool, Convert Tool, and Transfer Tool.
ModelingComponents: Add ShapeSet member for passing simple collision shapes in FCreateMeshObjectParams, support in relevant functions in UEditorModelingObjectsCreationAPI. Add UE::Geometry::GetCollisionShapes() functions in ComponentCollisionUtil.h, and update various functions to support DynamicMeshComponent

DynamicMeshComponent: change signature of GetSimpleCollisionShapes() to return const ref

#rb david.hill
#preflight 6421ca54973e609670a408c7

[CL 24819452 by ryan schmidt in ue5-main branch]
2023-03-28 11:19:32 -04:00
jimmy andrews
5337719d2e Fix vox offset tool issues:
- Warn about artifacts on meshes with open boundaries
 - Fix some settings not being saved/restored
 - Fix transaction name on undo/redo not matching the tool name

Also: Make the asset warning for base interactive tool only clear the tool's display message if it set a display message when it was last called, so that it is less likely to clear unrelated display messages when called with no warning to display.

#jira UE-180838
#jira UE-180758
#jira UE-180838
#rb rinat.abdrashitov
#preflight 641be32f25389270b7300ae4

[CL 24783364 by jimmy andrews in ue5-main branch]
2023-03-24 14:05:46 -04:00
michael balzer
178a17d074 Fix access to render LOD0 in editor
#preflight 641cfd93973e609670965d20

[CL 24780771 by michael balzer in ue5-main branch]
2023-03-24 12:15:06 -04:00
ryan schmidt
3880554a59 ModelingMode: preliminary support for selection transform visualization for Volumes and Static Meshes, and other minor improvements.
Add IGeometrySelectionTransformer::PreviewRender() API, for rendering info during selection transforms. Currently being called by  UGeometrySelectionManager::DebugRender() for active transforms.
FBasicDynamicMeshSelectionTransformer implements PreviewRender, draws selected mesh edges (tris as edges) and vertices, as well as affected edge ROI.
FDynamicMeshPolygroupTransformer overrides this behavior and draws polygroup edges/verts and edge ROI

FStaticMeshSelector and FVolumeSelector now create FDynamicMeshPolygroupTransformer for polygroup selections

FBasicDynamicMeshSelectionTransformer::bEnableSelectionTransformDrawing flag controls whether this edge drawing is enabled. Disabled on DynamicMeshComponent, enabled on StaticMesh and Volume.

Add Normals recomputation during tri and polygroup transforms in FBasicDynamicMeshSelectionTransformer and FDynamicMeshPolygroupTransformer

Add FGroupTopologyDeformer::EnumerateROIEdges() util function to support above

#rb none
#preflight 641cd27bc44ce895fc62f724

[CL 24780655 by ryan schmidt in ue5-main branch]
2023-03-24 12:08:43 -04:00
matija kecman
b4369f3873 Geometry Scripting: Add a ChannelPack node which has up to 4 input textures and creates an output texture where the RGBA channels are sourced from the inputs
#preflight 641a46d625389270b7a7a781
#jira UE-174783
#rb ryan.schmidt

[CL 24745402 by matija kecman in ue5-main branch]
2023-03-22 07:02:05 -04:00
sebastien lussier
f222818298 Use the new FBoxSphereBounds::Builder to clean other initialization of FBoxSphereBounds
* Those where correct, but did manual job to ensure the origin wasn't automatically included in the bounds
#rb jeanfrancois.dube, patrick.enfedaque

[CL 24739720 by sebastien lussier in ue5-main branch]
2023-03-21 17:09:36 -04:00
michael balzer
348da6e01b MeshModelingToolset: Fix crash when snapping to a static mesh without vertex buffer data
#preflight 641284dfd778f8897538c8ac
#rb ryan.schmidt

[CL 24667908 by michael balzer in ue5-main branch]
2023-03-16 01:21:34 -04:00
jimmy andrews
143d4cd0c4 add generated light map option to the modeling tools mesh creation settings + make the settings more consistently used by default
also, when creating a static mesh with lightmap enabled via modeling components, also set the lightmap channel and resolution to match the build settings values, to better match the importer results

#jira UE-143961
#8929
#rb ryan.schmidt
#preflight 6406adbf0c7df1967f461e2d

[CL 24542092 by jimmy andrews in ue5-main branch]
2023-03-07 12:04:54 -05:00
semion piskarev
6dd5376acb MeshModelingTools: Fix volumes always having per-triangle normals when not going through volume to mesh tool.
#rb Jimmy.Andrews
#jira UE-152032
#preflight 63f78bb0ae54ee4ce9599a84

[CL 24432234 by semion piskarev in ue5-main branch]
2023-02-27 16:25:17 -05:00
semion piskarev
51b9a59a53 MeshModelingTools: Fix depth bias issues that come about from MeshElementsVisualizer adjusting depth bias to be too high due to a setting that works poorly with percentage-wise depth offset. For now, just making it not user-visible and set to false. Will be deprecated and removed more thoroughly in a later CL.
#rb Ryan.Schmidt
#preflight 63f3db3a90198dffbaf83aac

[CL 24329160 by semion piskarev in ue5-main branch]
2023-02-20 17:59:42 -05:00
nathan mitchell
b27788dcea ModelingTools: Replaces the wireframe visuals in the UVLayoutPreview with an instance of MeshElementsVisualizer, instead of the built in wireframe provided by PreviewMesh. This helps address some of the visual z-fighting issues that were being seen and provides more control over the wireframe visuals.
#rb Jimmy.Andrews
#preflight 63f0072561378b7ea04b9209

[CL 24327480 by nathan mitchell in ue5-main branch]
2023-02-20 17:06:25 -05:00
jimmy andrews
d6daff005b Make mesh elements visualizer distinguish between normal and tangent seams like the mesh inspector does
#rb david.hill
#preflight 63ee4e7d500c05a6244b020b

[CL 24270353 by jimmy andrews in ue5-main branch]
2023-02-16 17:39:45 -05:00
joe kirchoff
44e52d14d1 More parent include path fixes
#rnx
#rb trivial

[CL 24138215 by joe kirchoff in ue5-main branch]
2023-02-11 13:04:14 -05:00
nathan mitchell
59d1e663d4 ModelingTools: Adjust the behavior of the Mesh Visualizer settings to properly disable when the Visible property is checked off.
#rb rinat.abdrashitov
#jira UE-176245
#preflight 63e2d59a1466610c64a3a931

[CL 24110660 by nathan mitchell in ue5-main branch]
2023-02-09 19:36:31 -05:00
ryan schmidt
af5699f133 ModelingTools: improve handling of invalid input selections to PolyEd Tool
Add UGeometrySelectionManager::GetActiveSelectionInfo, returns info about current selection w/o having to copy selection
Override UEditMeshPolygonsActionModeToolBuilder::CanBuildTool, use this new function to do specific per-action filtering to limit to supported input selection types
UEditMeshPolygonsSelectionModeToolBuilder::InitializeNewTool() now filters UI panels for current input selection if available, update Selection-palette PolyEd button to use this builder instead
#jira UE-176168
#preflight 63e2c886c2257e56f413b805
#rb david.hill

[CL 24068438 by ryan schmidt in ue5-main branch]
2023-02-08 01:21:37 -05:00
matija kecman
4db50ffff3 Fix horde issue 259463
This is the second attempt to fix this problem, sorry! It's a PVS static analysis problem.

#rb trivial
#preflight 63e2abef797b029c0a874d82

[CL 24061767 by matija kecman in ue5-main branch]
2023-02-07 17:52:01 -05:00
matija kecman
f33be98d26 Fix horde issue 259463
Note this issue is occurring in a `if constexpr (false)` block. This problem previously occurred in horde issue 259313 with some other things that may have since been fixed

#rb trivial
#preflight 63e23339c11233cdca859cf4

[CL 24050765 by matija kecman in ue5-main branch]
2023-02-07 11:41:05 -05:00
matija kecman
faf75b50c8 Fix crash in BakeRC tool caused by not checking for validity of SceneCapture
#jira UE-176114
#preflight 63e140131466610c647cdcbe

[CL 24036693 by matija kecman in ue5-main branch]
2023-02-06 14:59:38 -05:00
matija kecman
7f6c5fb7e7 Fix incorrect handling of texture source format BGRE8 in UE::AssetUtils::ReadTexture function
#jira UE-175010
#preflight 63de2fd4af610ffb8b605079
#rb jimmy.andrews

[CL 24028051 by matija kecman in ue5-main branch]
2023-02-06 06:03:33 -05:00
matija kecman
f05215f1c5 Render Capture Baking: Fix a crash which occurred because the SceneCapture state was not properly updated when its computation was cancelled
#jira UE-175047
#preflight 63d94591f626715201e45242

[CL 23933594 by matija kecman in ue5-main branch]
2023-01-31 14:12:46 -05:00