Commit Graph

52 Commits

Author SHA1 Message Date
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
8b68b5d56e Remove non-inclusive words from exporters' installer
#jira UE-158635, UE-158636, UE-158637, UE-158639
#rb none
#preflight 630e8445660db81edb9e29ec

[CL 21719725 by JeanLuc Corenthin in ue5-main branch]
2022-08-31 09:17:59 -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
jeanluc corenthin
317cb2b445 Fixed issue with wrong Ruby framework required for SketchUp 2022 exporter on Mac
Solution: Remove the link directive to use the Ruby framework as it is already done for the SketchUpAPI framework

#jira UE-144851
#rb benoit.deschenes
#preflight 626307f4006fa20b683ba4d4

#ROBOMERGE-AUTHOR: jeanluc.corenthin
#ROBOMERGE-SOURCE: CL 19872813 in //UE5/Release-5.0/... via CL 19874060
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v940-19807014)

[CL 19878030 by jeanluc corenthin in ue5-main branch]
2022-04-22 19:55:24 -04:00
JeanLuc Corenthin
878d03dd98 Fixed issue with wrong Ruby framework linked to SketchUp 2022 exporter
Solution: Removed explicit linkage with Ruby framework using -undefined linker's option since Ruby framework will be already loaded by SketchUp app.
Note: This was already done for the SketchUpAPI framework.

#jira UE-144851
#rb none
#preflight 6255936f153828d2732b9d0c

[CL 19721735 by JeanLuc Corenthin in ue5-main branch]
2022-04-12 11:21:53 -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
Johan Duparc
c28db07762 Datasmith: adopt latest version of warning about includes order
#preflight 624332dff73c316f68ce6de5
#rb JeanLuc.Corenthin

[CL 19556626 by Johan Duparc in ue5-main branch]
2022-03-30 10:12:09 -04:00
JeanLuc Corenthin
33689a5341 Fixed crash on sync on all exporters.
- Root cause: In cl 17646035, the value of bBuildWithEditorOnlyData in the different Target.cs failes was changed from true to false. Doing so implies the use of the wrong BulkData on which the Datasmith mesh serialization is relying on and generates the crash.
  - Solution: Move bBuildWithEditorOnlyData  back to true.
Note the reason why the change was made in the first place has not been found yet.

#jira UE-145285
#rb none
#preflight 6228d36e0d5a90e98ec5719b

[CL 19322125 by JeanLuc Corenthin in ue5-main branch]
2022-03-09 12:23:38 -05: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
kerim borchaev
8061e0c777 SketchUp: 2022 support
- Win64 and macOS(plugin and installer)

#jira UETOOL-4857
#preflight 620653f1b84973a2bb86b19c
#rb JeanLuc.Corenthin
#lockdown jeanmichel.dignard

#ROBOMERGE-AUTHOR: kerim.borchaev
#ROBOMERGE-SOURCE: CL 18952557 in //UE5/Release-5.0/... via CL 18952653 via CL 18952785
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18952791 by kerim borchaev in ue5-main branch]
2022-02-11 10:53:47 -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
matt johnson
b7423cc1da Imath: build and link the library statically on Windows
This changes the third-party Imath library from being built and linked dynamically on Windows
to being built and linked statically instead. Linux and Mac are already statically linking Imath.

Rebuilds of the third-party Alembic and OpenEXR libraries as well as the LiveCodingConsole.exe
binary were included to pick up the newly static linkage to Imath.

#jira UE-131373
#rb benoit.deschenes, david.harvey, tim.smith
#preflight 61e774f5843acf1b24128abf

#ROBOMERGE-AUTHOR: matt.johnson
#ROBOMERGE-SOURCE: CL 18663625 in //UE5/Release-5.0/... via CL 18663689 via CL 18663731
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v900-18638592)

[CL 18663774 by matt johnson in ue5-main branch]
2022-01-19 15:13:35 -05:00