Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
# branches: ["main"]
branches: ["feat/allinone"]

jobs:

Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
electron-log-preload.js

tools

python
temp
# Logs
logs
*.log
Expand Down
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,30 @@ npm version major
git push origin main
# then push and the version tag
git push origin vx.x.x
```
```


To install/unpack python tools:
```bash
mkdir myenv
tar -xf example.tar.gz -C myenv
cd myenv
./bin/conda-unpack
```


## Scripts

### Trees

We recommend creating trees with LODs and billboards in SpeedTree, exporting as OBJ, and then using the below script to convert to a single GLB that can be used with Meshery tree planting.

```
Usage:

npm run generate-tree -- \
/path/to/tree/Oak_LOD1.obj \
/path/to/tree/Oak_LOD2.obj \
/path/to/tree/Oak_LOD3.obj \
/path/to/tree/OakTree.glb
```
19 changes: 19 additions & 0 deletions extra-resources/basis/basis_transcoder.js

Large diffs are not rendered by default.

Binary file added extra-resources/basis/basis_transcoder.wasm
Binary file not shown.
Binary file added extra-resources/textures/gen_fairway_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/gen_fairway_tex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/gen_green_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/gen_green_tex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/gen_rough_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/gen_rough_tex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/gen_sand_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/gen_sand_tex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/gen_semi_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/gen_semi_tex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/ground_color.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/ground_color_dark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/ground_normal_gl.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/pine_straw_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra-resources/textures/pine_straw_normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,251 changes: 2,251 additions & 0 deletions extra-resources/usgs.geojson

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions extra-resources/wms/arcgis.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<GDAL_WMS>
<Service name="AGS">
<ServerUrl>https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer</ServerUrl>
<BBoxOrder>xyXY</BBoxOrder>
<SRS>3857</SRS>
</Service>
</GDAL_WMS>
10 changes: 10 additions & 0 deletions extra-resources/wms/bing.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<GDAL_WMS>
<Service name="VirtualEarth">
<!-- <ServerUrl>http://a${server_num}.ortho.tiles.virtualearth.net/tiles/a${quadkey}.jpeg?g=90</ServerUrl> -->
<ServerUrl>https://ecn.t3.tiles.virtualearth.net/tiles/a${quadkey}.jpeg?g=1</ServerUrl>
</Service>
<MaxConnections>3</MaxConnections>
<Cache/>
<!-- Prevents failing on network errors, but will produce incomplete sat overlays -->
<!-- <ZeroBlockOnServerException>true</ZeroBlockOnServerException> -->
</GDAL_WMS>
29 changes: 29 additions & 0 deletions extra-resources/wms/google.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<GDAL_WMS>

<!-- Data is subject to term of use detailed at http://code.google.com/intl/nl/apis/maps/terms.html and
http://www.google.com/intl/en_ALL/help/terms_maps.html -->

<Service name="TMS">
<ServerUrl>http://mt.google.com/vt/lyrs=s&amp;x=${x}&amp;y=${y}&amp;z=${z}</ServerUrl> <!-- Satellite -->
<!-- <ServerUrl>http://mt.google.com/vt/lyrs=m&amp;x=${x}&amp;y=${y}&amp;z=${z}</ServerUrl> --> <!-- Map -->
<!-- <ServerUrl>http://mt.google.com/vt/lyrs=y&amp;x=${x}&amp;y=${y}&amp;z=${z}</ServerUrl> --> <!-- Hybrid -->
<!-- <ServerUrl>http://mt.google.com/vt/lyrs=t&amp;x=${x}&amp;y=${y}&amp;z=${z}</ServerUrl> --> <!-- Terrain -->
<!-- <ServerUrl>http://mt.google.com/vt/lyrs=p&amp;x=${x}&amp;y=${y}&amp;z=${z}</ServerUrl> --> <!-- Terrain, Streets and Water -->
</Service>
<DataWindow>
<UpperLeftX>-20037508.34</UpperLeftX>
<UpperLeftY>20037508.34</UpperLeftY>
<LowerRightX>20037508.34</LowerRightX>
<LowerRightY>-20037508.34</LowerRightY>
<TileLevel>20</TileLevel>
<TileCountX>1</TileCountX>
<TileCountY>1</TileCountY>
<YOrigin>top</YOrigin>
</DataWindow>
<Projection>EPSG:3857</Projection>
<BlockSizeX>256</BlockSizeX>
<BlockSizeY>256</BlockSizeY>
<BandsCount>3</BandsCount>
<MaxConnections>5</MaxConnections>
<Cache />
</GDAL_WMS>
24 changes: 23 additions & 1 deletion forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ module.exports = {
name: 'Meshery',
authors: 'OpenGolfSim',
description: 'OpenGolfSim Meshery is a tool for converting and building you course meshes',
asar: true,
// asar: true,
icon: 'images/Meshery',
appCategoryType: 'public.app-category.developer-tools',
extraResource: [
'./extra-resources'
],
asar: {
unpack: '**/.webpack/main/*.worker.js',
},
...process.env.OSX_SIGN && {
osxSign: {
identity: process.env.APPLE_SIGNING_IDENTITY,
Expand Down Expand Up @@ -52,6 +55,7 @@ module.exports = {
{
name: '@electron-forge/plugin-webpack',
config: {
port: 3102,
mainConfig: './webpack.main.config.js',
renderer: {
config: './webpack.renderer.config.js',
Expand All @@ -64,8 +68,26 @@ module.exports = {
js: './src/preload.js',
},
},
{
html: './src/trees/tree.html',
js: './src/trees/tree_renderer.js',
name: 'tree_window',
preload: {
js: './src/trees/preload.js',
},
},
],
},
devContentSecurityPolicy: [
"default-src 'self' blob: data: gap:",
"style-src 'self' 'unsafe-inline' blob: data: gap:",
"script-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data: gap:",
"object-src 'self' blob: data: gap:",
"img-src 'self' blob: data: gap: *.openstreetmap.org *.arcgisonline.com mt.google.com *.virtualearth.net",
"connect-src 'self' https://*.mapbox.com blob: data: gap: project: laz:",
"frame-src 'self' blob: data: gap:",
"worker-src 'self' blob: data: gap:"
].join('; ')
},
},
// Fuses are used to enable/disable various Electron functionality
Expand Down
Binary file added images/marker-icon-2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/marker-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/marker-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading