Autodesk-Forge / viewer-nodejs-tutorial

DEPRECATED, please visit our new Forge Learning material here:
https://learnforge.autodesk.io/#/
MIT License
52 stars 43 forks source link

model is loaded slow #5

Closed b-rohit closed 7 years ago

b-rohit commented 7 years ago

I get following warning messages in console section>

three.min.js:2 THREE.WebGLRenderer 71
blob:http://localhost:3000/0b9ca14d-1c12-4fb2-b5d8-8d2a01357ad8:20 An LMV resource (https://developer.api.autodesk.com/derivativeservice/v2/derivatives/urn%3Aadsk.viewing%3Afs.file%3AdXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6NWN6cWhkZ3g1Y2N6cWhkZ3hlc25zNGplYXlkbmR3Z2NtZ3llZzR5MC9SZXZpdF8yMDE3X0dldHRpbmdfU3RhcnRlZC5ydnQ%2Foutput%2FResource%2F3D%20View%2F%7B3D%7D%20307584%2FMaterials.json.gz?domain=http%3A%2F%2Flocalhost%3A3000) was not uncompressed by the browser. This hurts performance. Check the Content-Encoding header returned by the server and check whether you're getting double-compressed streams. The warning prints only once but it's likely the problem affects multiple resources.
p @ blob:http://localhost:3000/0b9ca14d-1c12-4fb2-b5d8-8d2a01357ad8:20
index.js:104 onLoadModelSuccess()!
index.js:105 Validate model loaded: true
index.js:106 d
blob:http://localhost:3000/0b9ca14d-1c12-4fb2-b5d8-8d2a01357ad8:20 An LMV resource (https://developer.api.autodesk.com/derivativeservice/v2/derivatives/urn%3Aadsk.viewing%3Afs.file%3AdXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6NWN6cWhkZ3g1Y2N6cWhkZ3hlc25zNGplYXlkbmR3Z2NtZ3llZzR5MC9SZXZpdF8yMDE3X0dldHRpbmdfU3RhcnRlZC5ydnQ%2Foutput%2FResource%2Fobjects_offs.json.gz?domain=http%3A%2F%2Flocalhost%3A3000) was not uncompressed by the browser. This hurts performance. Check the Content-Encoding header returned by the server and check whether you're getting double-compressed streams. The warning prints only once but it's likely the problem affects multiple resources.
p @ blob:http://localhost:3000/0b9ca14d-1c12-4fb2-b5d8-8d2a01357ad8:20
blob:http://localhost:3000/0b9ca14d-1c12-4fb2-b5d8-8d2a01357ad8:20 An LMV resource (https://developer.api.autodesk.com/derivativeservice/v2/derivatives/urn%3Aadsk.viewing%3Afs.file%3AdXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6NWN6cWhkZ3g1Y2N6cWhkZ3hlc25zNGplYXlkbmR3Z2NtZ3llZzR5MC9SZXZpdF8yMDE3X0dldHRpbmdfU3RhcnRlZC5ydnQ%2Foutput%2FResource%2Fobjects_offs.json.gz?domain=http%3A%2F%2Flocalhost%3A3000) was not uncompressed by the browser. This hurts performance. Check the Content-Encoding header returned by the server and check whether you're getting double-compressed streams. The warning prints only once but it's likely the problem affects multiple resources.
p @ blob:http://localhost:3000/0b9ca14d-1c12-4fb2-b5d8-8d2a01357ad8:20
three.min.js:2 Total geometry size: 2.0363502502441406 MB
three.min.js:2 Number of meshes: 145
three.min.js:2 Num Meshes on GPU: 144
three.min.js:2 Net GPU geom memory used: 2068452
three.min.js:2 THREE.WebGLRenderer 71
15(index):1 [.Offscreen-For-WebGL-0x32aa329faa00]RENDER WARNING: there is no texture bound to the unit 0
jaimerosales commented 7 years ago

What version of the Viewer are you using? You can check by typing in the console LMV_VIEWER_VERSION

Also the Warning messages are a problem with the current version of Three.js that the viewer is using, the warning can be ignored for now, they will go away once we migrate to a newer version of threejs, it is in our scope, I just don't know when will that be. As of now this should not affect any performance in the viewer.

If you want to read more about the warning check this Three.js post https://github.com/mrdoob/three.js/issues/8666

Cheers,