Can't import dds, jpg, env nor hdr Ubuntu 16.04 (babylon 4.2.0)

My bad, It wasn’t reading files because I was using react: The code should have been as follows:

var scene = new BABYLON.Scene(engine);
var camera = new BABYLON.ArcRotateCamera("Camera", -Math.PI / 2,  Math.PI / 2, 5, BABYLON.Vector3.Zero(), scene);
camera.attachControl(canvas, true);
camera.inputs.attached.mousewheel.detachControl(canvas);
import image from './textures/360photo.jpg';

var dome = new BABYLON.PhotoDome(
    "testdome",
    image, 
    {
        resolution: 32,
        size: 1000
    },
    scene
);
2 Likes