From 46875b9e68df3675d9fa6e6c92801b0f54ae3c2b Mon Sep 17 00:00:00 2001 From: "Blue (Lukas Rieger)" Date: Tue, 17 Mar 2020 20:23:59 +0100 Subject: [PATCH 1/2] Fix rounding bevore saving does not work correctly --- .../de/bluecolored/bluemap/core/threejs/BufferAttribute.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/threejs/BufferAttribute.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/threejs/BufferAttribute.java index 6574db87..48710df5 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/threejs/BufferAttribute.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/threejs/BufferAttribute.java @@ -77,8 +77,8 @@ public void writeJson(JsonWriter json) throws IOException { json.name("array").beginArray(); for (int i = 0; i < values.length; i++) { // rounding and remove ".0" to save string space - float d = Math.round(values[i] * 10000f) / 10000f; - if (d == (int) d) json.value((int) d); + double d = Math.round(values[i] * 10000d) / 10000d; + if (d == (long) d) json.value((long) d); else json.value(d); } json.endArray(); From 69e0e51fedb6cb2b5ee8593ac648767855ed1cc0 Mon Sep 17 00:00:00 2001 From: "Blue (Lukas Rieger)" Date: Tue, 17 Mar 2020 20:26:48 +0100 Subject: [PATCH 2/2] Update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b828394..7cca2543 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![title-banner](https://bluecolored.de/paste/bluemap-title.jpg) +![title-banner](https://bluecolored.de/paste/BluemapBanner.png) BlueMap is a tool that generates 3d-maps of your Minecraft worlds and displays them in your browser. Take a look at [this demo](https://bluecolored.de/bluemap). It is really easy to set up - almost plug-and-play - if you use the integrated web-server (optional). @@ -41,9 +41,9 @@ Here is a *(surely incomplete)* list of things that i want to include in future - marker / region API - free-flight-controls - live player positions -- shaders for dynamic day/night - more configurations - easier mod-integration - BlueMap as forge mod - ability to display the world-border - animated textures (if feasible) +- add support for models in obj format (if feasible)