-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1ece28
commit 9f2f99c
Showing
7 changed files
with
122 additions
and
20 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
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,17 @@ | ||
|
||
// This preset uses the image helper to draw a sequence of images on different layers. | ||
// You can upload MRI (Magnetic Resonance Imaging) sequences to reconstruct the model in-game. | ||
// example: https://i.imgur.com/UtRFtHB.gif | ||
|
||
mapvars({ | ||
'skyboxcolour': [0, 0, 0], | ||
'skylight': [255, 255, 255], | ||
'maptitle': 'OGZ Editor MRI Helper example', | ||
'mapsize': 1024 | ||
}); | ||
|
||
entities([]); | ||
|
||
geometry(() => ogzeditor.image([0, ogzeditor.asset.frames.length], 35, 512, 512, 0, 0, 0, 90, 0, 1, 2, true, 3, (colors, position) => { | ||
return (colors.heightValue >= 5); | ||
})); |
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,40 @@ | ||
|
||
// This preset starts with full geometry and selectively removes chunks to create structured patterns. | ||
|
||
mapvars({ | ||
"maptitle": `\f8*thirdevermap*`, | ||
"skyboxcolour": [0, 0, 0], | ||
"ambient": [1, 1, 1], | ||
"mapsize": 2048 | ||
}); | ||
|
||
const ents = [{x: 1120, y: 1120, z: 900, t: 3, at0: 135}]; | ||
|
||
geometry(()=>{ | ||
let cubes = []; | ||
ogzeditor.loopmap(1024, 9, (x, y, z) => cubes.push({x, y, z, g: 9, tp: 2, ft: 3, rt: 4, lf: 5, bk: 6, dn: 7})); | ||
|
||
ogzeditor.loopmap(1024, 7, (x, y, z, i) => { | ||
if (i%2) { | ||
cubes.push({x, y, z, g: 7, t: 1}); | ||
ents.push({x, y, z: z+5, t: 1, at0: 200, at1: z/(i/90), at2: y/(i/90), at3: x/10}); | ||
} | ||
}); | ||
|
||
ogzeditor.loopmap(1024, 6, (x, y, z, i) => { | ||
if (i%2) cubes.push({x, y, z, g: 6, t: 1}); | ||
}); | ||
|
||
ogzeditor.loopmap(1024, 6, (x, y, z, i) => { | ||
if ((x+y+z)/3 % 2 ) cubes.push({x, y, z, g: 6, t: 1}); | ||
}); | ||
|
||
ogzeditor.loopmap(1024, 5, (x, y, z, i) => { | ||
if ((x+y+z)/3 % 2 && i%2 ) { | ||
cubes.push({x, y, z, g: 5, t: 1}); | ||
} | ||
}); | ||
return cubes; | ||
}); | ||
|
||
entities(ents); |
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,22 @@ | ||
|
||
|
||
mapvars({ | ||
"maptitle": `\f8Simple Text Yaw/Pitch/Roll rotation.`, | ||
"skyboxcolour": [0, 0, 0] | ||
}); | ||
|
||
entities([ | ||
{x: 512, y: 650, z: 512, t: 3, at0: 180} | ||
]); | ||
|
||
geometry(()=>{ | ||
let cubes = ogzeditor.ground(6); | ||
let color = 0; | ||
for (let i = 0; i < 19; i++) { | ||
// texts can be rotated on 3 axes: yaw, pitch and roll. | ||
cubes.push(ogzeditor.text(`^f${color}----^f~OGZ Editor----`, 512+(i*5), 512-(i*5), 600-i, 1462, 1, 0, i*10, i*10)) | ||
color = color == 8 ? 0 : color+1; | ||
} | ||
|
||
return cubes; | ||
}); |
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