go-babylonjs

module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2020 License: Apache-2.0

README

go-babylonjs

GoDoc Test Status

Experimental Go binding to Babylon.js using WebAssembly.

Dependencies

Running an example

You can use the run.sh bash script and the example number found in the examples directory to locally build and serve an example in your browser (using go-wasm start):

$ ./run.sh 11
(ctrl-c to quit)

Enjoy!


License

Copyright 2019 Glenn M. Lewis. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
cmd
docs2go
docs2go convert the Babylon.js API docs to Go files for the WebAssembly binding using syscall/js.
docs2go convert the Babylon.js API docs to Go files for the WebAssembly binding using syscall/js.
examples
01-first-steps
01-first-steps is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#WG9OY#1 and linked from here: https://doc.babylonjs.com/babylon101/first
01-first-steps is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#WG9OY#1 and linked from here: https://doc.babylonjs.com/babylon101/first
02-discover-basic-elements-box
02-discover-basic-elements-box is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#3QW4J1#1 and linked from here: https://doc.babylonjs.com/babylon101/discover_basic_elements
02-discover-basic-elements-box is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#3QW4J1#1 and linked from here: https://doc.babylonjs.com/babylon101/discover_basic_elements
03-discover-basic-elements-ellipsoid
03-discover-basic-elements-ellipsoid is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#K6M44R and linked from here: https://doc.babylonjs.com/babylon101/discover_basic_elements
03-discover-basic-elements-ellipsoid is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#K6M44R and linked from here: https://doc.babylonjs.com/babylon101/discover_basic_elements
04-discover-basic-elements-plane
04-discover-basic-elements-plane is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#LXZPJK and linked from here: https://doc.babylonjs.com/babylon101/discover_basic_elements
04-discover-basic-elements-plane is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#LXZPJK and linked from here: https://doc.babylonjs.com/babylon101/discover_basic_elements
05-discover-basic-elements-source-plane
05-discover-basic-elements-source-plane is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#LXZPJK#2 and linked from here: https://doc.babylonjs.com/babylon101/discover_basic_elements
05-discover-basic-elements-source-plane is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#LXZPJK#2 and linked from here: https://doc.babylonjs.com/babylon101/discover_basic_elements
06-discover-basic-elements-ground
06-discover-basic-elements-ground is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#MJ6YSM and linked from here: https://doc.babylonjs.com/babylon101/discover_basic_elements
06-discover-basic-elements-ground is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#MJ6YSM and linked from here: https://doc.babylonjs.com/babylon101/discover_basic_elements
07-parametric-shapes-lines
07-parametric-shapes-lines is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#165IV6#60 and linked from here: https://doc.babylonjs.com/babylon101/parametric_shapes
07-parametric-shapes-lines is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#165IV6#60 and linked from here: https://doc.babylonjs.com/babylon101/parametric_shapes
08-parametric-shapes-spiral-from-lines
08-parametric-shapes-spiral-from-lines is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#165IV6#61 and linked from here: https://doc.babylonjs.com/babylon101/parametric_shapes
08-parametric-shapes-spiral-from-lines is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#165IV6#61 and linked from here: https://doc.babylonjs.com/babylon101/parametric_shapes
09-parametric-shapes-spiral-from-dashed-lines
09-parametric-shapes-spiral-from-dashed-lines is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#165IV6#62 and linked from here: https://doc.babylonjs.com/babylon101/parametric_shapes
09-parametric-shapes-spiral-from-dashed-lines is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#165IV6#62 and linked from here: https://doc.babylonjs.com/babylon101/parametric_shapes
10-parametric-shapes-spiral-from-instanced-lines
10-parametric-shapes-spiral-from-instanced-lines is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#165IV6#63 and linked from here: https://doc.babylonjs.com/babylon101/parametric_shapes
10-parametric-shapes-spiral-from-instanced-lines is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#165IV6#63 and linked from here: https://doc.babylonjs.com/babylon101/parametric_shapes
11-position
11-position is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#UBWFJT#2 and linked from here: https://doc.babylonjs.com/babylon101/position
11-position is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#UBWFJT#2 and linked from here: https://doc.babylonjs.com/babylon101/position
12-rotation
12-position is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#1ZMJQV#2 and linked from here: https://doc.babylonjs.com/babylon101/position
12-position is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#1ZMJQV#2 and linked from here: https://doc.babylonjs.com/babylon101/position
13-position-scaled-rotated-boxes
13-position-scaled-rotated-boxes is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#CURCZC and linked from here: https://doc.babylonjs.com/babylon101/position
13-position-scaled-rotated-boxes is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#CURCZC and linked from here: https://doc.babylonjs.com/babylon101/position
14-material-color-reaction
14-material-color-reaction is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#325 and linked from here: https://doc.babylonjs.com/babylon101/materials
14-material-color-reaction is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#325 and linked from here: https://doc.babylonjs.com/babylon101/materials
15-material-ambient-color
15-material-ambient-color is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#14 and linked from here: https://doc.babylonjs.com/babylon101/materials
15-material-ambient-color is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#14 and linked from here: https://doc.babylonjs.com/babylon101/materials
16-material-transparent-color
16-material-transparent-color is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#16 and linked from here: https://doc.babylonjs.com/babylon101/materials
16-material-transparent-color is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#16 and linked from here: https://doc.babylonjs.com/babylon101/materials
17-texture
17-texture is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#15 and linked from here: https://doc.babylonjs.com/babylon101/materials
17-texture is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#15 and linked from here: https://doc.babylonjs.com/babylon101/materials
18-transparent-texture
18-transparent-texture is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#17 and linked from here: https://doc.babylonjs.com/babylon101/materials
18-transparent-texture is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#17 and linked from here: https://doc.babylonjs.com/babylon101/materials
19-transparent-background
19-transparent-background is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#YDO1F#18 and linked from here: https://doc.babylonjs.com/babylon101/materials
19-transparent-background is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#YDO1F#18 and linked from here: https://doc.babylonjs.com/babylon101/materials
20-back-face-culling
20-back-face-culling is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#YDO1F#20 and linked from here: https://doc.babylonjs.com/babylon101/materials
20-back-face-culling is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#YDO1F#20 and linked from here: https://doc.babylonjs.com/babylon101/materials
21-universal-camera
21-universal-camera is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#SRZRWV and linked from here: https://doc.babylonjs.com/babylon101/cameras
21-universal-camera is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#SRZRWV and linked from here: https://doc.babylonjs.com/babylon101/cameras
22-arc-rotate-camera
22-arc-rotate-camera is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#SRZRWV#1 and linked from here: https://doc.babylonjs.com/babylon101/cameras
22-arc-rotate-camera is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#SRZRWV#1 and linked from here: https://doc.babylonjs.com/babylon101/cameras
23-follow-camera
23-follow-camera is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#SRZRWV#6 and linked from here: https://doc.babylonjs.com/babylon101/cameras
23-follow-camera is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#SRZRWV#6 and linked from here: https://doc.babylonjs.com/babylon101/cameras
24-device-orientation-camera
24-device-orientation-camera is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#SRZRWV#3 and linked from here: https://doc.babylonjs.com/babylon101/cameras
24-device-orientation-camera is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#SRZRWV#3 and linked from here: https://doc.babylonjs.com/babylon101/cameras
25-vr-device-orientation-camera
25-vr-device-orientation-camera is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#SRZRWV#4 and linked from here: https://doc.babylonjs.com/babylon101/cameras
25-vr-device-orientation-camera is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#SRZRWV#4 and linked from here: https://doc.babylonjs.com/babylon101/cameras
26-point-light
26-point-light is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9 and linked from here: https://doc.babylonjs.com/babylon101/lights
26-point-light is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9 and linked from here: https://doc.babylonjs.com/babylon101/lights
27-directional-light
27-directional-light is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#1 and linked from here: https://doc.babylonjs.com/babylon101/lights
27-directional-light is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#1 and linked from here: https://doc.babylonjs.com/babylon101/lights
28-spot-light
28-spot-light is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#3 and linked from here: https://doc.babylonjs.com/babylon101/lights
28-spot-light is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#3 and linked from here: https://doc.babylonjs.com/babylon101/lights
29-hemispheric-light
29-hemispheric-light is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#5 and linked from here: https://doc.babylonjs.com/babylon101/lights
29-hemispheric-light is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#5 and linked from here: https://doc.babylonjs.com/babylon101/lights
30-hemispheric-light-two-spheres
30-hemispheric-light-two-spheres is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#6 and linked from here: https://doc.babylonjs.com/babylon101/lights
30-hemispheric-light-two-spheres is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#6 and linked from here: https://doc.babylonjs.com/babylon101/lights
31-intersecting-spot-lights
31-intersecting-spot-lights is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#9 and linked from here: https://doc.babylonjs.com/babylon101/lights
31-intersecting-spot-lights is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#9 and linked from here: https://doc.babylonjs.com/babylon101/lights
32-six-interacting-point-lights
32-six-intersecting-point-lights is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#IRVAX#0 and linked from here: https://doc.babylonjs.com/babylon101/lights
32-six-intersecting-point-lights is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#IRVAX#0 and linked from here: https://doc.babylonjs.com/babylon101/lights
33-excluding-lights
33-excluding-lights is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#8 and linked from here: https://doc.babylonjs.com/babylon101/lights
33-excluding-lights is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#20OAV9#8 and linked from here: https://doc.babylonjs.com/babylon101/lights
34-lightmaps
34-lightmaps is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#ULACCM#2 and linked from here: https://doc.babylonjs.com/babylon101/lights
34-lightmaps is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#ULACCM#2 and linked from here: https://doc.babylonjs.com/babylon101/lights
35-projection-texture
35-projection-texture is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#CQNGRK and linked from here: https://doc.babylonjs.com/babylon101/lights
35-projection-texture is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#CQNGRK and linked from here: https://doc.babylonjs.com/babylon101/lights
36-basic-animation
36-basic-animation is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#DMLMIP#1 and linked from here: https://doc.babylonjs.com/babylon101/lights
36-basic-animation is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#DMLMIP#1 and linked from here: https://doc.babylonjs.com/babylon101/lights
37-animations-promises
37-animations-promises is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#HZBCXR and linked from here: https://doc.babylonjs.com/babylon101/animations
37-animations-promises is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#HZBCXR and linked from here: https://doc.babylonjs.com/babylon101/animations
38-mesh-collisions
38-mesh-collisions is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#KQV9SA and linked from here: https://doc.babylonjs.com/babylon101/intersect_collisions_-_mesh
38-mesh-collisions is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#KQV9SA and linked from here: https://doc.babylonjs.com/babylon101/intersect_collisions_-_mesh
39-picking-collisions
39-picking-collisions is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#NU4F6Y and linked from here: https://doc.babylonjs.com/babylon101/picking_collisions
39-picking-collisions is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#NU4F6Y and linked from here: https://doc.babylonjs.com/babylon101/picking_collisions
40-particles
40-particles is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#WBQ8EM and linked from here: https://doc.babylonjs.com/babylon101/particles
40-particles is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#WBQ8EM and linked from here: https://doc.babylonjs.com/babylon101/particles
41-pre-warming-particles
41-pre-warming-particles is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#MX2Z99#8 and linked from here: https://doc.babylonjs.com/babylon101/particles
41-pre-warming-particles is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#MX2Z99#8 and linked from here: https://doc.babylonjs.com/babylon101/particles
42-sake-arc-reactor
The Sake Ironman: Arc Reactor glTF model is downloaded from: https://sketchfab.com/3d-models/ironman-arc-reactor-with-sound-d87547f21f904cfa954f4cf77a1409ac It is licensed as: CC Attribution-NonCommercial-NoDerivsCC Attribution-NonCommercial-NoDerivs https://creativecommons.org/licenses/by-nc-nd/4.0/
The Sake Ironman: Arc Reactor glTF model is downloaded from: https://sketchfab.com/3d-models/ironman-arc-reactor-with-sound-d87547f21f904cfa954f4cf77a1409ac It is licensed as: CC Attribution-NonCommercial-NoDerivsCC Attribution-NonCommercial-NoDerivs https://creativecommons.org/licenses/by-nc-nd/4.0/
43-colored-line-system
43-colored-line-system is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#165IV6#80 and linked from here: https://doc.babylonjs.com/babylon101/parametric_shapes
43-colored-line-system is a port to Go of the Babylon example located here: https://www.babylonjs-playground.com/#165IV6#80 and linked from here: https://doc.babylonjs.com/babylon101/parametric_shapes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL