axeon-software / babylon_runtime Goto Github PK
View Code? Open in Web Editor NEWCode less, Babylon more
Code less, Babylon more
could be nice to be allowed to disable loadingScreen, maybe it can be usefull to debug.
Something like:
_r.on(_r.scene.activeCamera, 'move', () => { console.log('moved !!!'); });
And maybe an option to set if it's for:
_r.on(_r.scene.activeCamera, 'move', () => { console.log('moved !!!'); }, "ROTATION_ONLY");
Maybe ":not()" like in css:
_r("*:not(excludedSelector)")
something like:
#include "patch/materials.patch"
or:
["patch/materials.patch", "patch/meshes.patch"]
on line 3510 we had to add this line element.animations.splice(element.animations.indexOf(animation), 1);
to avoid kind of ghost animation playing
for example camera fov is animated through a hotspot, then user interact on another thing in the scene, using an another kind of animate: fov is animated too!
Have a versioning of runtime, and log it in console like babylon.js do.
For example:
vrHelper.onExitingVRObservable.add((evt, data) => { _r.trigger(this, EVENTS.EXIT_VR, evt, data); });
to be able to gain perf on some tasks
_r.match(meshName, selector);
For example:
if(_r.match(mesh.name, '*hotspot*:mesh')){ //ok }
Something like:
_r.lightmap(...).then(function(){ //DO STUFF HERE });
Load library in the scene without displaying it
Example: if a bumpTexture is not assigned on the material, this patch will crash the loading (and doesn't give useful infos in the browser console)
[
{
"*default*:material":
{
"ambientColor": "red",
"bumpTexture":
{
"level": 1
}
}
}
]
linear seems to be the default value when no easing is set, but when user write
{
"easing": "linear"
}
a warning message says linear is not recognize
Can give duration in meter per second, so the mesh can have same speed even if the distance is different.
Release notes of each version (displayed in README.md ? )
Preload patches in function _r.patch (or a specific function like: _r.patchFromFiles)
Example:
_r.patchFromFiles([ "patches/materials.patch", "patches/meshes.patch" ])
something like:
_r("lib1:library")
download: download library without loading it in the scene
load: load library in the scene
show: show library in the scene
hide: hide library in the scene
dispose: dispose library mesh + material with option disposeMaterialAndTextures true/false
All is in the title
to make easier to know if our local version is up to date
ability to customize the default online url of the inspector, if we want keep a local version
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.