-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for exporting terrains as .obj for navmesh * Implement Add Terrain Dialog * Ability to customize terrain splat map size * Update tooltip * Update comment * Update comment * Fix after merge
- Loading branch information
1 parent
f2a480f
commit b88bef4
Showing
19 changed files
with
443 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
commons/src/main/com/mbrlabs/mundus/commons/terrain/SplatMapResolution.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package com.mbrlabs.mundus.commons.terrain; | ||
|
||
/** | ||
* @author JamesTKhan | ||
* @version July 23, 2022 | ||
*/ | ||
public enum SplatMapResolution { | ||
_512("512x512"), | ||
_1024("1024x1024"), | ||
_2048("2048x2048"); | ||
|
||
public static final SplatMapResolution DEFAULT_RESOLUTION = _512; | ||
private final String value; | ||
|
||
SplatMapResolution(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
public int getResolutionValues() { | ||
if (this == _512) { | ||
return 512; | ||
} | ||
if (this == _1024) { | ||
return 1024; | ||
} | ||
if (this == _2048) { | ||
return 2048; | ||
} | ||
|
||
return 512; | ||
} | ||
|
||
public static SplatMapResolution valueFromString(String string) { | ||
for (SplatMapResolution res : values()) { | ||
if (res.value.equals(string)) { | ||
return res; | ||
} | ||
} | ||
|
||
return DEFAULT_RESOLUTION; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
121 changes: 0 additions & 121 deletions
121
editor/src/main/com/mbrlabs/mundus/editor/ui/modules/dialogs/AddTerrainDialog.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.