Hi folks!
I’m trying to properly load a skybox in the engine without using workarounds or hacks. But I somehow can’t get it to work. Currently I’m stuck at the WebGL: INVALID_VALUE: uniform1iv: no array
error.
pcApp.assets.loadFromUrl('heliSkybox.json', 'json', (error, asset) => {
if (error)
return console.log(error);
pcApp.setSkybox(asset);
});
The heliSkybox.json is based off the skybox in this tutorial. Skybox files as I have them right now: Download ZIP archive.
Asset object data after load:
name: 'heliSkybox.json',
type: 'json',
tags:
{ _index: {},
_list: [],
_parent: [Circular],
on: [Function: on],
off: [Function: off],
fire: [Function: fire],
once: [Function: once],
hasEvent: [Function: hasEvent],
_callbackActive: {},
_callbacks: { add: [Object], remove: [Object] } },
_preload: false,
variants: { asset: [Circular] },
_file:
{ url: './assets/skybox/heli/heliSkybox.json',
filename: undefined,
hash: undefined,
size: undefined,
variants: { asset: [Circular] } },
_data: {},
_resources:
[ { textures: [Object],
magFilter: 1,
minFilter: 5,
anisotropy: 1,
name: 'heliSkybox',
rgbm: true,
prefiltered: 'heliSkybox.dds' } ],
loaded: true,
loading: false,
registry:
{ _loader: { _handlers: [Object], _requests: {}, _cache: [Object] },
_assets: [ [Circular] ],
_cache: { '1': 0 },
_names: { 'heliSkybox.json': [Object] },
_tags: { _index: {}, _key: '_id' },
_urls: { './assets/skybox/heli/heliSkybox.json': 0 },
prefix: null,
attach: [Function: attach],
on: [Function: on],
off: [Function: off],
fire: [Function: fire],
once: [Function: once],
hasEvent: [Function: hasEvent] },
on: [Function: on],
off: [Function: off],
fire: [Function: fire],
once: [Function: once],
hasEvent: [Function: hasEvent],
_callbackActive: { load: null },
_callbacks: { load: [], error: [ [Object] ] } }```
Any help is appreciated. Thanks in advance.