Skip to content

Commit

Permalink
- minor improvements to collada export
Browse files Browse the repository at this point in the history
  • Loading branch information
blackflux committed Jul 2, 2016
1 parent 41d3a6d commit 2784adb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion PS4k/src/com/vitco/export/collada/ColladaFileExporter.java
Expand Up @@ -103,7 +103,7 @@ private void addTexture(int id) {
"id=" + texturePrefix + id + "-image",
"name=" + texturePrefix + id + "-image"
});
xmlFile.addTextContent("init_from", texturePrefix + id + ".png");
xmlFile.addTextContent("init_from", "file://" + texturePrefix + id + ".png");

TexTriangleManager[] triangleManager = exportDataManager.getTriangleManager();
for (int layerRef = 0; layerRef < triangleManager.length; layerRef++) {
Expand Down Expand Up @@ -148,6 +148,10 @@ private void addTexture(int id) {
xmlFile.setTopNode("newparam[-1]");
xmlFile.addAttributes("", new String[]{"sid=" + texturePrefix + id + "-sampler"});
xmlFile.addTextContent("sampler2D/source", texturePrefix + id + "-surface");
xmlFile.addTextContent("sampler2D/wrap_s", "WRAP");
xmlFile.addTextContent("sampler2D/wrap_t", "WRAP");
xmlFile.addTextContent("sampler2D/minfilter", "NEAREST");
xmlFile.addTextContent("sampler2D/magfilter", "NEAREST");
// ----
xmlFile.goUp();
xmlFile.setTopNode("technique[-1]");
Expand Down
2 changes: 1 addition & 1 deletion PS4k/src/com/vitco/settings/VitcoSettings.java
Expand Up @@ -50,7 +50,7 @@ public final class VitcoSettings {
public static final Color TEXTURE_BORDER_ACTIVE = Color.ORANGE;
public static final Color TEXTURE_BORDER_SELECTED = Color.RED;

public static final String VERSION_ID = "1.7.0";
public static final String VERSION_ID = "1.7.01";
// version id
public static final String TITLE_STRING = "VoxelShop - Alpha Version (V" + VERSION_ID + ")";

Expand Down

0 comments on commit 2784adb

Please sign in to comment.