Skip to content

Commit 7111c70

Browse files
committed
Update 4.7.5
1 parent d4519a3 commit 7111c70

27 files changed

+263
-17
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### **Voxel-based 3D Modeling Application**
66
**Model . Render . Export**<br>
7-
This application is suitable for rapid prototyping, speed modeling, creating small assets in large numbers, importing MagicaVoxel models, or simply playing around and learning 3D modeling.
7+
This application is suitable for rapid prototyping, speed modeling, creating small assets in large numbers, loading and saving MagicaVoxel VOX format, or simply playing around and learning 3D modeling.
88

99
[https://nimadez.github.io/voxel-builder/](https://nimadez.github.io/voxel-builder/)
1010

@@ -19,7 +19,7 @@ This application is suitable for rapid prototyping, speed modeling, creating sma
1919

2020
**File I/O**
2121
- Save and load JSON
22-
- Import MagicaVoxel VOX
22+
- Save and load MagicaVoxel VOX
2323
- Export to GLB, GLTF, OBJ, STL, PLY
2424
- Localstorage, snapshots, quicksave, undo
2525
- Backup and share snapshots in a ZIP archive
@@ -121,6 +121,19 @@ Also, the FPS depends on many factors, such as the material (CEL is faster) and
121121
> Warning: BJS - Max number of touches exceeded. Ignoring touches in excess of 2.<br>This problem is related to Babylon.js and nothing can be done.
122122
123123
## FAQ
124+
Why can't I freely transform 3D objects like in other 3D software?
125+
```
126+
There are no objects, you work with a grid of voxels,
127+
the XFORM feature only mimics the transformation of 3D objects,
128+
you just grab a piece of connected voxels and move them.
129+
```
130+
Why isn't there an option to export raw voxels as GLB?
131+
```
132+
GLB has a special use in this application,
133+
you can save and retrieve voxel data using baked meshes,
134+
exporting raw voxels to GLB leads to interference and errors
135+
when loading it using the "Load Bakes" option.
136+
```
124137
How to merge vertices after export to GLB?
125138
```
126139
1- Open exported GLB file in Blender

electron.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
// Aug 2019 https://nimadez.github.io/
1+
//
2+
// Aug 2019
23
// Voxel Builder Electron
34

5+
46
if (!require('electron').app.requestSingleInstanceLock())
57
require('electron').app.exit(0);
68

9+
710
const { app, BrowserWindow, Menu } = require('electron');
811

12+
913
function createWindow() {
1014
const mainWindow = new BrowserWindow({
1115
icon: './src/assets/appicon.png',
@@ -48,10 +52,12 @@ function createWindow() {
4852
});
4953
}
5054

55+
5156
app.whenReady().then(() => {
5257
createWindow();
5358
});
5459

60+
5561
app.on('window-all-closed', () => {
5662
if (process.platform !== 'darwin')
5763
app.quit();

media/screenshot.png

606 Bytes
Loading

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "voxel-builder",
3-
"version": "4.7.4",
3+
"version": "4.7.5",
44
"description": "Voxel-based 3D modeling application",
55
"main": "electron.js",
66
"scripts": {
@@ -11,7 +11,7 @@
1111
"license": "MIT",
1212
"devDependencies": {
1313
"electron": "^38.0.0",
14-
"babylonjs": "8.43.0",
14+
"babylonjs": "8.49.6",
1515
"three": "0.182.0",
1616
"three-mesh-bvh": "0.9.7",
1717
"three-gpu-pathtracer": "0.0.23",

server.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
#!/usr/bin/env node
2-
// Aug 2024 https://nimadez.github.io/
2+
3+
// Aug 2024
34
// Voxel Builder Server
45

6+
57
const http = require('http');
68
const url = require('url');
79
const fs = require('fs');
810

11+
912
const PORT = 8011;
1013

14+
1115
http.createServer((req, res) => {
1216
const parsedUrl = url.parse(req.url, true);
1317
let filePath = `src${parsedUrl.pathname}`;
@@ -30,11 +34,13 @@ http.createServer((req, res) => {
3034
res.write(data);
3135
return res.end();
3236
});
37+
3338
}).listen(PORT, () => {
3439
console.log('Voxel Builder')
3540
console.log(`Server running at http://localhost:${PORT}`);
3641
});
3742

43+
3844
function getContentType(filePath) {
3945
const extname = String(filePath).split('.').pop().toLowerCase();
4046
const mimeTypes = {

src/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@
313313
<li class="category">ABOUT</li>
314314
<li class="about">
315315
<div><span style="color: orange">V</span>OXEL BUILDER</div>
316-
&#8627; 4.7.4 BETA
316+
&#8627; 4.7.5 BETA
317317
<br>&#8627; <a href="https://github.com/nimadez/voxel-builder/" target="_blank">GitHub</a>
318318
<br>&#8627; <a href="https://github.com/nimadez/voxel-builder/releases" target="_blank">Changelog</a>
319319
<br>DEVELOPER
@@ -399,8 +399,10 @@
399399
<li class="category">SNAPSHOTS</li>
400400
<li><button onclick="document.getElementById('openfile_snapshot_zip').click()">Load Archive</button></li>
401401
<li><button id="btn_action_snapshots_save">Save Archive</button></li>
402+
<li class="category">MAGICAVOXEL</li>
403+
<li><button onclick="document.getElementById('openfile_vox').click()">Load VOX</button></li>
404+
<li><button id="btn_action_save_vox">Save VOX</button></li>
402405
<li class="category">IMPORT</li>
403-
<li><button onclick="document.getElementById('openfile_vox').click()">MagicaVoxel</button></li>
404406
<li><button onclick="document.getElementById('openfile_import_voxels').click()">JSON Voxels</button></li>
405407
<li class="category">EXPORT</li>
406408
<li class="row_input">
@@ -810,7 +812,7 @@
810812

811813
<!-- shortcuts -->
812814
<div id="shortcuts" onclick="this.style.display = 'none'" title="Click to Close">
813-
<span>⚠️ It is recommended to hold down the SPACE or ALT keys to toggle the Free Camera while modeling or with a tool active, on the desktop. (just like in Blender, Maya, etc.)</span>
815+
<span>⚠️ It is recommended to hold down the SPACE or ALT key to toggle the Free Camera while modeling or with a tool active, on the desktop. (just like in Blender, Maya, etc.)</span>
814816
<hr>
815817
<table>
816818
<tr><td>SPACE, ALT</td> <td>Toggle Free Camera (MODEL)</td></tr>

src/libs/babylon.inspector.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/libs/babylon.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/libs/babylonjs.materials.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Main entry point
66
*/
77

8+
89
setAppId();
910

1011

0 commit comments

Comments
 (0)