Skip to content

Commit

Permalink
1.4.2 version
Browse files Browse the repository at this point in the history
fixed staticmesh conversion flip (.obj <-> .mtl)
u1/ut99->ut3/ut4: reverted directional light were converted to spotlights
  • Loading branch information
xtremexp committed Jan 23, 2023
1 parent 367962f commit a4116d8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- 1.4.2 - 23/01/2023
- u2/ut2003/ut2004/uc2->ut3/ut4: fixed converted staticmeshes bad export format (.obj fliped with .mtl)

- 1.4.1 - 22/01/2023
- all->ut4: fixed all converted sound actors have same radius
- extractor tool: now staticmeshes are now also exported from map package when using Epic Games extractor
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.xtx</groupId>
<artifactId>UT-Converter</artifactId>
<version>1.4.1</version>
<version>1.4.2</version>
<packaging>jar</packaging>

<name>UT Converter</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/xtx/ut4converter/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class MainApp extends Application {
/**
* Version of UT4 Converter
*/
public static final String VERSION = "1.4.1";
public static final String VERSION = "1.4.2";

/**
* Author
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/xtx/ut4converter/MapConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ private void convertStaticMeshFiles() {
pskSm.replaceMaterialNamesBy(getReplacementMatName(pskSm.getMaterials().stream().map(Material::getMaterialName).toList()));

if (isTo(UE4, UE5)) {
pskSm.exportToObj(smObjFile, smMtlFile);
pskSm.exportToObj(smMtlFile, smObjFile);
} else if (isTo(UE3)) {
pskSm.exportToAse(smAseFile);
}
Expand All @@ -754,7 +754,7 @@ else if (StaticMesh.FILE_EXTENSION_T3D.equals(smFileExt)) {
smT3dFile.replaceMaterialNamesBy(getReplacementMatName(smT3dFile.getTriangles().stream().map(Triangle::getTexture).toList()));

if (isTo(UE4, UE5)) {
new ObjStaticMesh(smT3dFile).export(smObjFile, smMtlFile);
new ObjStaticMesh(smT3dFile).export(smMtlFile, smObjFile);
} else if (isTo(UE3)) {
smT3dFile.exportToAse(smAseFile);
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/xtx/ut4converter/t3d/T3DLight.java
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ private void convertUE12ClassAndMobility() {
} else if (!isSpotLight() && (isSunLight() || Boolean.TRUE.equals(this.isDirectional))) {
// UE1/UE2 directional lights have no lightning inside brushes (because UE1/UE2 are in substractive mode)
// Replacing them with spotlights make them work
this.t3dClass = UE4_LightActor.SpotLight.name();
this.radius = 20000f;
//this.t3dClass = UE4_LightActor.DirectionalLight.name();
//this.t3dClass = UE4_LightActor.SpotLight.name();
//this.radius = 20000f;
this.t3dClass = UE4_LightActor.DirectionalLight.name();
} else {
this.t3dClass = UE4_LightActor.PointLight.name();
}
Expand Down

0 comments on commit a4116d8

Please sign in to comment.