(2020-02-10, 19:47)Orion Pobursky Wrote: I added that command and it now works for me. However, the texture doesn't show until the part is rotated in some cases.
That happens when the texture loads after the part. To overcome that, have render called in your onProgress:
Code:
let onProgress = function() {
render(); // Will be called once a part of texture is loaded.
}
let options = {
onProgress:onProgress,
...
}
ldrLoader = new THREE.LDRLoader(onLoad, storage, options);
On a related topic.
I have noticed that the search page (Parts Tracker File Scan) does not contain thumbnails. Is there a reason for this? I am working on a light thumbnail generator, which runs asynchroneously to generate thumbnails. See https://brickhub.org/bh/p/class.php?path...%3DMinifig as an example. Do you think such a feature would be useful?