Closed allisoncorey closed 9 years ago
body texture only loads the first time on a fresh instance on a fresh server
This is an issue with the file cache. As as test, commenting out lines 39-45 in file-cache.js
disables the cache and fixes the problem.
for ( var i = 0; i < this.files.length; i++ ) {
if( this.files[ i ].path == path ) {
global.log( 'serving from cache: ' + path, 2 );
callback( this.files[ i ] );
return;
}
}
As of branch/node-absolute-application-url
and branch/component-relative-resources
, resources inside the application component are served directly from the component as /path/to/component/resource.ext
instead of through the reflector instance at /path/to/application/0123456789ABCDEF/resource.ext
. The direct paths go through the file cache, but the instance-relative paths do not.
I don't know what the cache is doing to break cached results. The content type or encoding may not be set correctly.
solar-system and stereo are fixed with: https://github.com/virtual-world-framework/vwf/pull/465
:+1:
The radio body texture problem is probably a race condition and not related to the cache per se. Even with the cache disabled, I get the black body texture sometimes. In one case, the radio consistently loads correctly when I have Chrome's Inspector window open and consistently loads with the black body texture when the Inspector is closed. Presumably the texture data isn't being handled correctly when the image loads too quickly. That would explain why the first, uncached load works, but the others don't.
adl/assetCache issue resolved in https://github.com/virtual-world-framework/vwf-apps/pull/19
sandtable drag and drop issue and editor save/load issue are solved in #468
In preparation for 0.7.0 release, the following issues on development need to be addressed:
Add to backlog: