Skip to content

Commit

Permalink
Update 4.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
nimadez committed Aug 31, 2024
1 parent 31de5a2 commit e1a75da
Show file tree
Hide file tree
Showing 94 changed files with 31 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
# Upload 'src' only
path: 'src'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
All notable changes to this project will be documented in this file.

## 4.3.7
- New directory structure
- Improve project management and speed up the build time of github pages
- Everything updated accordingly, includes the update.py script

## 4.3.6
- Update three.js to r168
- New camera frame tools (frame to color group or selected voxels)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Voxel-based 3D modeling application<br>
[https://nimadez.github.io/voxel-builder/](https://nimadez.github.io/voxel-builder/)

```Version 4.3.6 Beta```<br>
```Version 4.3.7 Beta```<br>
[Changelog](https://github.com/nimadez/voxel-builder/blob/main/CHANGELOG.md)

[Installation](https://github.com/nimadez/voxel-builder#installation)<br>
Expand Down Expand Up @@ -128,7 +128,7 @@ How to run Blender importer script?

## History
```
Stable x1.5 faster (optimized to current state)
New directory structure (x1.5 faster startup)
↑ Linux and Firefox ready
↑ Voxel engine updated to thin-instances (64k to 1M boost)
↑ Cut half precision (new scene)
Expand Down
2 changes: 1 addition & 1 deletion electron.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "voxel-builder",
"version": "4.3.6",
"version": "4.3.7",
"description": "Voxel-based 3D modeling application",
"main": "electron.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ const PORT = 8011;

http.createServer((req, res) => {
const parsedUrl = url.parse(req.url, true);
let filePath = `.${parsedUrl.pathname}`;
let filePath = `src${parsedUrl.pathname}`;

if (parsedUrl.pathname == '/')
filePath = './index.html';
filePath = 'src/index.html';

fs.readFile(filePath, (err, data) => {
if (err) {
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions index.html → src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
<li><button onclick="window.open('https://nimadez.github.io/voxel-builder/extras/vi2xel', '_blank').focus();">VI²XEL</button></li>
<li class="spacer"></li>
<li class="about">
4.3.6 Beta 2024
4.3.7 Beta 2024
<br>&#8627; <a href="https://github.com/nimadez/voxel-builder/">GitHub</a>
<br>Developer
<br>&#8627; <a href="https://nimadez.github.io/">@nimadez</a>
Expand Down Expand Up @@ -720,7 +720,7 @@
}
}
</script>
<script src="src/modules/modules.js" type="module"></script>
<script src="src/main.js"></script>
<script src="modules/modules.js" type="module"></script>
<script src="main.js"></script>
</body>
</html>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4191,7 +4191,7 @@ function Memory() {
function Project(scene) {
function serializeScene(voxels, meshes) {
const json = {
version: "Voxel Builder 4.3.6",
version: "Voxel Builder 4.3.7",
project: {
name: "name",
voxels: builder.voxels.length,
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/modules/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
import { bakery } from './bakery/bakery.js';
import { pt } from './pathtracer/pathtracer.js';
import { rc, voxelizeMesh, voxelizeBake } from './raycaster/raycaster.js';
import { WorkerPool } from '../../libs/addons/WorkerPool.js';
import { SimplexNoise } from '../../libs/addons/SimplexNoise.js';
import { WorkerPool } from '../libs/addons/WorkerPool.js';
import { SimplexNoise } from '../libs/addons/SimplexNoise.js';

const workerPool = new WorkerPool();
workerPool.setWorkerCreator(() => {
const worker = new Worker('src/modules/worker/worker.js', { type: "module" });
const worker = new Worker('modules/worker/worker.js', { type: "module" });
worker.postMessage({ id: 'init' });
return worker;
});
Expand Down
4 changes: 2 additions & 2 deletions src/modules/pathtracer/pathtracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,13 +546,13 @@ export const pt = new Pathtracer();
// Load assets


await loadFile('src/modules/pathtracer/shaders/image.fs').then(data => {
await loadFile('modules/pathtracer/shaders/image.fs').then(data => {
imageFragment = `
precision mediump samplerCube;
` + data;
});

await loadFile('src/modules/pathtracer/shaders/render.fs').then(data => {
await loadFile('modules/pathtracer/shaders/render.fs').then(data => {
renderFragment = `
precision highp isampler2D;
precision highp usampler2D;
Expand Down
12 changes: 6 additions & 6 deletions src/modules/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
import { BufferGeometry, Mesh } from 'three';
import {
computeBoundsTree, disposeBoundsTree, acceleratedRaycast
} from '../../libs/three-mesh-bvh.module.js';
} from '../libs/three-mesh-bvh.module.js';

BufferGeometry.prototype.computeBoundsTree = computeBoundsTree;
BufferGeometry.prototype.disposeBoundsTree = disposeBoundsTree;
Mesh.prototype.raycast = acceleratedRaycast;

export * as THREE from 'three';
export { OrbitControls } from '../../libs/addons/OrbitControls.js';
export { FullScreenQuad } from '../../libs/addons/Pass.js';
export { mergeGeometries } from '../../libs/addons/BufferGeometryUtils.js';
export { RGBELoader } from '../../libs/addons/RGBELoader.js';
export { OrbitControls } from '../libs/addons/OrbitControls.js';
export { FullScreenQuad } from '../libs/addons/Pass.js';
export { mergeGeometries } from '../libs/addons/BufferGeometryUtils.js';
export { RGBELoader } from '../libs/addons/RGBELoader.js';
export {
MeshBVHUniformStruct, //MeshBVH, CENTER, SAH
FloatVertexAttributeTexture, //UIntVertexAttributeTexture
shaderStructs, shaderIntersectFunction //shaderDistanceFunction
} from '../../libs/three-mesh-bvh.module.js';
} from '../libs/three-mesh-bvh.module.js';
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions update.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


VBUILDER = 'https://github.com/nimadez/voxel-builder/archive/refs/heads/main.zip'
EXCLUDE = [ "voxel-builder-main", "electron", "user.backup" ]
EXCLUDE = [ "voxel-builder-main", "electron", ".user_backup" ]
run_bat = """@echo off
title Voxel Builder
start "" electron\electron .
Expand All @@ -22,15 +22,14 @@
def main():
DIR_SRC = cwd + '/voxel-builder-main'
DIR_DST = cwd
DIR_USR = cwd + '/user'
DIR_BKP = DIR_USR + '.backup'
DIR_USR = cwd + '/src/user'
DIR_BKP = cwd + '/.user_backup'

remove_directory(DIR_SRC)

try:
print("Connecting to GitHub...")
downloadZip(VBUILDER, DIR_DST)
os.system("cls")
except:
input("Error: Unable to fetch GitHub repository, check your internet connection.")
sys.exit(0)
Expand Down

0 comments on commit e1a75da

Please sign in to comment.