Commit Graph

40 Commits

Author SHA1 Message Date
kerim borchaev
76fdc88bd0 [Datasmith] Geolocation api supports 'unset' value
-  Sketchup doesn't provide elevation so not setting elevation won't have it in .udatasmith file and imported into Unreal as metadata

#jira UE-184935
#preflight 645bd5ea46411bde95200aba
#rb JeanLuc.Corenthin

[CL 25450390 by kerim borchaev in ue5-main branch]
2023-05-12 11:28:56 -04:00
kerim borchaev
f40e78f460 [Sketchup] Datasmith Exporter to transfer the model geo-location information as metadata to UE
#jira UE-179638
#preflight 642fa37485398c090c53b782
#rb benoit.deschenes

[CL 24987814 by kerim borchaev in ue5-main branch]
2023-04-11 02:00:41 -04:00
kerim borchaev
55a1e16f92 [SketchUp] Fixed texture not being exported occasionally
- assets folder created ahead of using SU api to write image file

#jira UE-166481
#preflight 6357ea460313c24974379c4c
#rb benoit.deschenes

[CL 22806041 by kerim borchaev in ue5-main branch]
2022-10-27 02:42:28 -04:00
kerim borchaev
fd3bfd942e [SketchUp] Image fixes
- Datasmith: WorldPositionOffset input added to Datasmith UePbr material
- Datasmith: DatasmithCSharpFacade - added ClearCoat/ClearCoatRoughness/WorldPositionOffset
- Fixed z-fighting - Image Geometry is offset along local Z axis. PositionOffset param of image's material can be used to control amount of offset
- Enabled transparency on image material when it contains transparent pixels

#jira UE-160640
#preflight 6329dcf50a4ad044de9b8dd5
#rb benoit.deschenes

[CL 22100273 by kerim borchaev in ue5-main branch]
2022-09-20 15:39:39 -04:00
JeanLuc Corenthin
cf41705c54 [Non-inclusivity] Removed banned words from Datasmith API and code using the API
- IDatasmithMasterMaterialElement has become IDatasmithMaterialInstanceElement
 - EDatasmithMasterMateriallType has become EDatasmithReferenceMaterialType
 - IDatasmithMasterMaterialElement is signaled as deprecated and not supported in 5.2
 - The MasterMaterial tag is replaced by MaterialInstance, reading and writing. Reading the MasterMaterial tag is supported for previous versions.
 - Clients should still be able to compile against Datasmith SDK without changing anything. However, warnings of deprecation will be logged.
 - Directories, files and assets which named contained  banned words have been renamed too. Redirect directives in the DatasmithContent module have been added for existing assets

#jira none
#rb johan.duparc
#preflight 6307c702aa0fda29197c01fd

[CL 21570510 by JeanLuc Corenthin in ue5-main branch]
2022-08-25 15:29:37 -04:00
kerim borchaev
61c3d84112 [SketchUp] Camera updates and active flag
#jira UE-153690
#preflight 62fdf58f0601ad0504728fe2
#rb benoit.deschenes

[CL 21454264 by kerim borchaev in ue5-main branch]
2022-08-19 00:51:24 -04:00
kerim borchaev
e192471dbc [SketchUp] Optimize Actor counts
- Component Instance without children doesn't create extra actor(only mesh actor)
- Image creates only Mesh
- fixed medatada removal when component is removed

#jira UE-157330
#preflight 62f3a1887c66d5539e45c87c
#rb benoit.deschenes

[CL 21454251 by kerim borchaev in ue5-main branch]
2022-08-19 00:48:28 -04:00
kerim borchaev
f7103d9fab [SketchUp] Fixed normals when baking transform into mesh
- normals are transformed with inverse-transposed orientation component of the bake transform

#jira UE-130882
#preflight 62f4b357185b21882a1c2a6f
#rb benoit.deschenes

[CL 21402096 by kerim borchaev in ue5-main branch]
2022-08-16 02:59:01 -04:00
kerim borchaev
b2c2a399e2 [SketchUp] Material Transparency with Texture
- fixed case when Sketchup transparent material using texture without alpha appearad opaque
- fixed combining scalar opacity and texture alpha(now they are modulated)
- fixed VERY old issue with texture opacity source - INVERTED BLUE channel of material texture was used as opacity source

#jira UE-157361
#preflight 62d81f79c0180d8071dbf668
#rb benoit.deschenes

[CL 21197684 by kerim borchaev in ue5-main branch]
2022-07-21 00:39:21 -04:00
kerim borchaev
68cac21204 [SketchUp] Image Entity
- Image entity exported as a separate actor
- layer visibility working(as well as regular visibility)
- Image dimensions baked into static mesh
- Image entities with the same image contents(bitmap data) share Datasmith material
- Sync of image parameters - transform and dimensions

#jira UE-153795 UE-159380
#preflight 62d65304185da2495f6a5c7d
#rb benoit.deschenes

[CL 21179810 by kerim borchaev in ue5-main branch]
2022-07-20 10:54:47 -04:00
kerim borchaev
24c7db0e40 [SketchUp] Classification Types exported to metadata
#jira UE-158026
#preflight 62c46d0c3c5171c817a418b9
#rb benoit.deschenes

[CL 20988609 by kerim borchaev in ue5-main branch]
2022-07-07 14:27:02 -04:00
kerim borchaev
c7fded5bda [SketchUp] Static Mesh name uses Persistent Id instead of Guid
- for SU versions above 2019(since 2020.1)

#jira UE-157332
#preflight 62c580a6a6654f97296f75c9
#rb benoit.deschenes

[CL 20981086 by kerim borchaev in ue5-main branch]
2022-07-07 02:05:52 -04:00
kerim borchaev
b36fc2b534 [SketchUp] Merge Component geometry into single mesh
- old code(making disconnected faces into separate meshes) is kept, compiling. In case we need an option

#jira UE-157330
#preflight 62beca2cd94b57687c72fa75
#rb benoit.deschenes

[CL 20935622 by kerim borchaev in ue5-main branch]
2022-07-04 12:07:56 -04:00
kerim borchaev
ea07dc6b37 [SketchUp] "Color By Tag"
- Switching Color By Tag rebuilds materials for the whole scene to use SU Layer(aka Tag)
materials
- Also includes texture/uv scaling information of Layer materials.
- Layer/Tag override works as in SU - default(Layer0) layer material overriden if component instance overrides Layer

#jira UE-130705
#preflight 62bc694ce353c20ac246ae8e
#rb benoit.deschenes

[CL 20935075 by kerim borchaev in ue5-main branch]
2022-07-04 11:04:35 -04:00
kerim borchaev
20c07ac632 [SketchUp] Layer folder(group) tracking for individual faces
- also optimized(cached) layer visibility

#jira UE-132346
#preflight 62b09b2bde510ae06e548b97
#rb benoit.deschenes

[CL 20751879 by kerim borchaev in ue5-main branch]
2022-06-21 00:30:41 -04:00
kerim borchaev
db44b13df3 [SketchUp] Enable parent non-uniform scaling of a rotated component
- Unreal doesn't allow non-uniform scaling of a parent actor to be applied to a rotated child object(scaling is applied before rotation, in mesh's local space). SketchUp allows this and in some cases it's useful/possible to 'bake' rotation into component's geometry to have same effect in Unreal as in SU.

- Restrictions: Transform 'baking' is done only for purely geometric components(without child components). And when component that has oly single instance(single transform to be baked). Multiple occurrencies of the same instance are allowed since they have the same local transform(which was baked).

- Translation and uniform scaling is not baked(only non-uniform scale, rotate and shear). These is not needed and more convenient for user to keep them in the actor.

#jira UE-130882
#preflight 62a88e57136e62bef1c4f1ed
#rb benoit.deschenes JeanLuc.Corenthin

[CL 20680914 by kerim borchaev in ue5-main branch]
2022-06-16 00:24:28 -04:00
kerim borchaev
796ad7d691 [Sketchup] Fixed Component/instance name change sync
#jira UE-115568
#preflight 62a350b79521f957241549fc
#rb benoit.deschenes

[CL 20598267 by kerim borchaev in ue5-main branch]
2022-06-10 12:47:33 -04:00
kerim borchaev
c00bd8bb40 [SketchUp] Fixed texture export on Mac
- avoided call to CopyFile for texture files, was failing because it was copying file onto itself

#jira UE-150966
#preflight 627903eb822bdc69f0021b95
#rb JeanLuc.Corenthin
#lockdown jeanmichel.dignard

#ROBOMERGE-AUTHOR: kerim.borchaev
#ROBOMERGE-SOURCE: CL 20471781 in //UE5/Release-5.0/... via CL 20472640
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v954-20466795)

[CL 20475260 by kerim borchaev in ue5-main branch]
2022-06-02 16:33:31 -04:00
benoit deschenes
afde922bf1 DatasmithExporter - Fixing Rhino and Revit broken export (no export in Rhino, bad mesh scaling in Rhino & Revit)
- Restoring previous FDatasmithSceneExporter::Reset() behavior but marking the function as deprecated.
It's previous usage of reseting the export progress without resetting the whole exporter state was discutable and confusing. If users want to fully reset the exporter they don't need the Reset() function.

- Fixing Datasmith Facade inverse scaling error during position conversion

#preflight 624b48d9dc6183e3f547d3b1
#rb Johan.Duparc Kerim.Borchaev

[CL 19625080 by benoit deschenes in ue5-main branch]
2022-04-05 10:39:18 -04:00
jeanluc corenthin
68e89a16c0 Fix build break in SketchUp exporter
- Since CL 19253774, conversion from FVector3f to FVector is explicit.

#jira UE-144798
#rb benoit.deschenes, jeanmichel.dignard
#preflight 62224e97c33b6ba25d12481f
#lockdown simon.tourangeau

#ROBOMERGE-AUTHOR: jeanluc.corenthin
#ROBOMERGE-SOURCE: CL 19285243 in //UE5/Release-5.0/... via CL 19285770
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v924-19243027)

[CL 19291627 by jeanluc corenthin in ue5-main branch]
2022-03-07 15:53:46 -05:00
Andrew Davidson
4a3e582384 LWC: Remove UE_LARGE_WORLD_COORDINATES_DISABLED toggle
#rb stephen.holmes
[FYI] zak.middleton
#preflight 61f7d18b114ec25fe09648d6

#ROBOMERGE-OWNER: Andrew.Davidson
#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18788533 in //UE5/Release-5.0/... via CL 18788583 via CL 18788850
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)
#ROBOMERGE-CONFLICT from-shelf
#preflight 61f7eb7a114ec25fe0990f8c

[CL 18789644 by Andrew Davidson in ue5-main branch]
2022-01-31 10:10:51 -05:00
benoit deschenes
7b4cd467a7 Fix build - Datasmith SketchUp Exporter using removed FStreamInfo member.
#rb none
#preflight 61dca8c64d377749b6612f61

#ROBOMERGE-AUTHOR: benoit.deschenes
#ROBOMERGE-SOURCE: CL 18565713 in //UE5/Release-5.0/... via CL 18565766
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18565815 by benoit deschenes in ue5-release-engine-test branch]
2022-01-10 17:00:43 -05:00
Marc Audy
f512a6d461 Eliminate whitespace only differences between Release-Engine-Staging and Release-Engine-Test
#fyi Aurel.Cordonnier

[CL 18448630 by Marc Audy in ue5-release-engine-test branch]
2021-12-13 15:59:48 -05:00
kerim borchaev
a08f668e1a SketchUp: fix crash when previously assigned texture is disposed
#jira UE-136942
#rb benoit.deschenes

#ROBOMERGE-AUTHOR: kerim.borchaev
#ROBOMERGE-SOURCE: CL 18431516 in //UE5/Release-5.0/... via CL 18435350
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v897-18405271)

[CL 18435592 by kerim borchaev in ue5-release-engine-test branch]
2021-12-10 17:50:05 -05:00
aurel cordonnier
fc542f6cfd Merge from Release-Engine-Staging @ 18081189 to Release-Engine-Test
This represents UE4/Main @18073326, Release-5.0 @18081140 and Dev-PerfTest @18045971

[CL 18081471 by aurel cordonnier in ue5-release-engine-test branch]
2021-11-07 23:43:01 -05:00