Questions tagged [babylonjs]

JavaScript framework for building 3D games with HTML5 and WebGL.

Official site, Github, documentation.

Features

  • Complete scene graph with lights, cameras, materials and meshes
  • Collisions engine
  • Scene picking
  • Antialiasing
  • Animations engine
  • Particles Systems
  • Sprites and 2D layers
  • Optimizations engines:
    • Frustum clipping
    • Sub-meshes clipping
    • Hardware scaling
    • Selection octrees
    • Offline mode (Assets are saved locally to prevent reloading them)
    • Incremental loading
  • Standard material is a per pixel material that supports:
    • Diffuse lightning and texture
    • Ambient lightning and texture
    • Specular lightning
    • Opacity texture
    • Reflection texture (Spheric, planar, cubic and projection)
    • Mirror texture
    • Emissive texture
    • Specular texture
    • Bump texture
    • Up to 4 lights (points, directionals, spots, hemispherics)
    • Custom materials
    • Skybox
    • Vertex color
    • Bones (Animations and shadows are supported)
  • Special FX
    • Fog
    • Alpha blending
    • Alpha testing
    • Billboarding
    • Fullscreen mode
    • Shadow Maps and Variance Shadow Maps
    • Rendering layers
    • Post-processes (blur, refraction, black'n'white, fxaa, customs...)
  • Textures:
    • Render target textures
    • Dynamic textures (canvas)
    • Video textures
  • Cameras (Perspective and orthographic):
    • Arc rotate camera
    • Free camera
    • Touch camera
  • Meshes:
    • Mesh cloning
    • Dynamic meshes
    • Height maps
  • Import:
    • Babylon scene file can be converted from .OBJ, .FBX, .MXB
    • Exporter for Blender
469 questions
0
votes
1 answer

Collisions in ArcRotateCamera

I'm working on a 3D web project and I used Babylon.js. Currently, I'm studying the engine, doing and applying features I need one at a time. In this particular case, I've a simple ground with a box on top of it. I need to use ArcRotateCamera while…
JeanDeus
  • 85
  • 1
  • 7
0
votes
1 answer

babylonjs typescript race conditions?

I have been experimenting with babylonjs and so far everything is great. I am able to load meshes and animate them just fine when everything is in the ImportMesh callback function within the same file. However; when I try to split things up and do…
efel
  • 1,054
  • 3
  • 14
  • 29
0
votes
1 answer

How to clone line meshes the right way?

I am new to BabylonJS and WebGL. I started with reading the basic tutorials such as this and this, and also visiting the suggested demos in playground. I have one question regarding cloning line meshses. I tried to clone a cube mesh and rotating it,…
Sayan Pal
  • 4,768
  • 5
  • 43
  • 82
0
votes
1 answer

running FROM Babylon - gravity, colliders, it's all not working

So, I'm having trouble with babylon.js. I'm trying to make a simple example where I have box colliders on my player object and the ground with physics applied for gravity and collision. I've run out of ideas as to what I could be doing wrong. Please…
0
votes
3 answers

Having Z-Fighting Issues

I am using Babylon.js to make a 3D game. My project is meant to be run on all browsers. However, when users run it in Firefox it seems as though there is a bit of Z-Fighting issues where some 3d objects will not render correctly or not at all! I…
mmangual83
  • 151
  • 1
  • 2
  • 11
0
votes
1 answer

How to load *.babylon exported from blender using JavaScript/FileApi/XHR?

I'm pretty fine working with the .babylon file format. Exporter which was developed for Blender 3D editor works perfectly and if to load the exported model using the next code: // won't write the full code // because it was fetched from the…
user4959035
0
votes
1 answer

Moving mesh on the screen without being in torn animation

var leftf; var rightf; $(document).keyup(function() { clearInterval(leftf); clearInterval(rightf); }); …
0
votes
1 answer

Babylon.js and Ember: Ember addon with prototype extensions disabled within an app with prototype extensions enabled?

I'm trying to use Babylon.js in an Ember app and am getting errors related to the Ember extending the Array prototype (something Babylon does too) conflicting. Specific error in Babylon: Uncaught TypeError: renderingGroup.prepare is not a…
0
votes
1 answer

Delete a Mesh selected with a button in BabylonJs

This my code in the Default.Html Page: And this my JS: var pickResult = scene.pick(offsetX, offsetY); if (pickResult.pickedMesh) { if ($('Remove_mesh').click(function(){})) { …
0
votes
1 answer

Babylon js Rotate After Physics Imposter

Well, been on html 5 apis and about two days ago stumbled on babylon js for 3d on html 5 using webgl; but the issue is that it is a new technology and not much work has been done with it and also not much videos tutorials as expected on it. So with…
0
votes
1 answer

Rotating a game object

In my javascript / BABYLON game I want to rotate an object relative to where it sits. I have a table with four chairs around it. I created this method that takes in an integer as a parameter and sets the character's rotation in Y based on that…
mmangual83
  • 151
  • 1
  • 2
  • 11
0
votes
1 answer

Three.js and Babylon.js supported platforms

i want to know that on which platform or platforms does three.js and babylon.js works. Are they only for web pages and web applications ? What coordinate system can be used in these. Local or Global or both? I hope i explain my question well. Thanks…
Anas
  • 25
  • 1
  • 5
0
votes
1 answer

How can I change the folder that BABYLON.SceneLoader will search for textures?

How can I change the folder where BABYLON.SceneLoader will search for textures when loading a babylon blender file? For example: BABYLON.SceneLoader.Load("", "public/js/corredor.babylon", this.engine, function (newScene) { /*...*/ } The code…
Eduardo Rosa
  • 139
  • 9
0
votes
1 answer

Issues controlling my character using Babylon.js

In my game I want to move my character using WASD keys. I have set up a class with a method that updates when the player presses any of the WASD keys to move the character. The problem is that it is not updating the character's movement every frame.…
user3838697
  • 115
  • 3
  • 12
0
votes
0 answers

3d libraries like threejs or babylonjs and onboard video memory not working?

Ive used babylonjs for a demo project, then run it on a laptop without dedicated video memory and it does not show anything...its just blank screen. I know that webGL use the GPU, so is there a solution to display my project for thoose users with…
Gigi Ionel
  • 248
  • 1
  • 10