Hi,
I have tried different methods for progress bar as to get interactivity immediately after completing progress bar but none of them is giving expected output. kindly suggest me a solution for this.
Method1:
I have loaded gltf model using GLTFLoader() by using Loading Manager. Using manager.onProgress function I am setting progress bar value as below but not getting interactivity after completing progress bar.
manager.onProgress =async function ( url, itemsLoaded, itemsTotal ) {
progressBar.value=Math.round((itemsLoaded/itemsTotal)*100,2);}
Method2:
I have taken a counter variable and set its value upto 50% during manager.onProgress method and set it upto 100% after renderer function, but still I am getting interactivity after some time.
Method3:
To the html progress tag didn’t gave “value” attribute so that the progress bar will be in indetermined state after loading giving 100 as value for value attribute.
Thanks