-
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.
add ogzeditor_blender_importer.js preset
- Loading branch information
1 parent
02a7b2c
commit f1d6560
Showing
4 changed files
with
35 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
If you intend to export objects from Blender (blender.org) to .ogz, you can use Sauer-Vertex | ||
( https://gist.github.com/SalatielSauer/ba1d96e664b7accbeaae3a504acecdc0 ), | ||
Sauer-Vertex is an addon for blender 2.79 and 2.80+ that exports the vertices and textures of a | ||
selected object to a .json that you can upload in the OGZ Editor and save as .ogz. | ||
Example: https://raw.githubusercontent.com/SalatielSauer/misc/master/sauervertex_9.png | ||
*/ | ||
|
||
mapvars({ | ||
'maptitle': 'Untitled Map by OGZ Editor', | ||
'mapsize': 1024 | ||
}); | ||
|
||
entities([ | ||
|
||
]); | ||
|
||
geometry(()=>{ | ||
let map = []; | ||
// tip: if you have multiple meshes and need to export their .json individually, upload the .json files and reference their indexes in additional map.push | ||
map.push(ogzeditor.asset.json[ogzeditor.asset.json.length-1].geometry); // get the last uploaded json file | ||
return map; | ||
}); |
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