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

Issue trying to use a .babylon file on html

I'm trying to import a 3D scene from 3ds max to a html page, this is where I came up: 1) I imported a obj scene to 3ds max. 2) I exported the scene to a .babylon file (with one of the github exporters). 3) I opened the file in the sandbox of…
Alan Alvarez
  • 646
  • 2
  • 11
  • 32
0
votes
2 answers

Babylon.js sandbox scene stucks at loading

I've made everything as instruction said... exported blender scene to .babylon format with their exporter. It made 27MB .babylon file. But when I try to load it in sandbox, Loading image appears, and nothing happens, except one error in console: GET…
Flash Thunder
  • 11,672
  • 8
  • 47
  • 91
0
votes
0 answers

Downloading zip files in the browser and using their content in javascript

For a 3D javascript game I am loading textures, 3D assets, music and additional javascript from the server. Right now I am doing that by loading them individually, which takes around 30 seconds, so I would like to zip the files on the server and…
Azsgy
  • 3,139
  • 2
  • 29
  • 40
0
votes
1 answer

Creating the Babylon.js declaration file from Typescript

BabylonJS provides a gulp task to create their definition file, but right now it's resulting in an error reported here: https://github.com/BabylonJS/Babylon.js/issues/221 "Command is too long" Does anyone know what this error means? And if so, is…
AlexB
  • 687
  • 2
  • 7
  • 15
0
votes
1 answer

Uncaught TypeError: Cannot read property 'value' of undefined in prototype functions

Good afternoon. At the first look, this question looks that it already answered although, I'm not beeing able to solve my problem with the answers I've found. I've got one class, and one of the functions should call another function (passing the…
Saguim
  • 20
  • 3
0
votes
1 answer

BabylonJS Radial vs Rectangular Textures (Conversion or Code Change)

I am working with the planetary textures from this site. They are all in rectangular form. However, in my BabylonJS application, textures are expected to be like this. I have tried setting the coordinates mode, but it doesn't seem to do…
Dan Grahn
  • 9,044
  • 4
  • 37
  • 74
-1
votes
0 answers

Mapbox not working when enable WebXR in Babylon.js?

I’ve created a project to test Mapbox, everything is fine but the problem is when I switch to VR mode, the page gone blank without any error. Here is my project: https://github.com/minhhoangdo98/TestMapBoxXR Here is the code I test in…
-1
votes
1 answer

Is there any simple way to run coroutines in js without using a third-party library?

Trying to do something similar to Babylon.js's https://doc.babylonjs.com/divingDeeper/events/coroutines const spawnMeshesCoroutine = function* () { spawnTheFirstMesh(); yield; spawnTheSecondMesh(); yield; …
gggrunt
  • 31
  • 3
-1
votes
1 answer

How can I upgrade Babylon.js v4.x.x to v.5.x.x?

I create a project with React.js and Babylon.js. My current version of Babylon.js is now 4.1.0. But I want to change it with version 5.0.0 alpha 63 .. I am new at using babylon. please describe me step by step. Thanks
-1
votes
1 answer

Can't export babylonjs file from Blender 2.93.4

Hi guys i really need your help, so i just installed Blender from Steam because i want the newest Blender software (2.93.4) and i wanna import it to Babylon.js, so, i just want to import simple cube for test like this cube image as u can see i…
-1
votes
1 answer

How can i hide second side/flip of Mesh CreatePlane in Babylon.js?

I want to hide second flip or side of plane of BABYLON.MeshBuilder.CreatePlane in babylon js how can i hide??
-1
votes
1 answer

How could be the best way of implementing a 3D fft chart?

I'm trying to set up an interactive cascading spectrum chart, but it hasn't been such a trivial thing for me. Here's a picture of the goal I'd like to achieve: example It's an fft graph, I have all these points already. Do you have any tips or any…
Matheus
  • 11
  • 2
-1
votes
1 answer

this.interval is undefined inside a class function

in summarize I want to blink an object material in BJS, so I create two functions blink() and stopBlink(): function blink(obj, delay, box) { var changeMaterial = function(obj, newMaterial) { { obj.material = newMaterial; } }; …
Anes
  • 21
  • 4
-1
votes
1 answer

Most efficient way to build an evoluable world map for an HTML game

I have a multiplayer cooperative game project in mind and my main concern is the game map. A bit of context The players interact with a world map. This map is a first pre generated. This map should be tiled based (each tile representing a part of…
Itération 122442
  • 2,644
  • 2
  • 27
  • 73
-1
votes
1 answer

Can I apply BABYLON textures and materials to vertices of a ground?

I'm new in babylon.js and trying to create a dynamic water surface. I succeeded in creating waves on a flat surface (using a ground and updateVerticesData). What i need now is doing reflections (thought about reflection textures) and refractions…
1 2 3
31
32