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
-1
votes
1 answer

babylon.js scene is showing XmlHttpRequest error

After adding MIME types in .htaccess file on 000webhost.com (free web hosting domain). Now I am getting error: I have no idea how will I make it work, I have been trying it for few weeks but still its all unsuccessful.
Shaharyar
  • 12,254
  • 4
  • 46
  • 66
-2
votes
1 answer

useState variable does not get changed after updated in useEffect by event

i am trying to update a stateful variable cameraPosition using Typescript, React and Babylonjs. this is the code snipped: const camera = scene?.cameras[0]; const prevPositionRef = useRef>(null); const [cameraPosition,…
Hannes F
  • 339
  • 2
  • 11
-2
votes
1 answer

Trouble deferring 3rd party JavaScript from Babylon 3D Viewer for WordPress

I have a gltf model that I am loading into my website using the Babylon 3D Viewer for WordPress plugin, and I would like to defer the script so that it isn't affecting my load time. All of the plugins I found for async/deffering Javascript seem to…
user15641284
  • 165
  • 1
  • 1
  • 6
-5
votes
1 answer

How can I create a behaviour where a key thinks it has been pressed whenever the mouse is pressed?

I have a babylonjs 3D scene where certain keys, when pressed, cause the camera to navigate forwards/backwards, etc. For example pressing T moves the viewer forward. I am trying to generate an effect where the T key thinks it has been pressed…
user2016210
  • 119
  • 4
  • 13
1 2 3
31
32