Comments (15)
@ksabariraj I just fixed that. It only happens with the minified version. Please try with latest commit from master branch: b53c096
from wwobjloader.
Hi Kai,
Thanks for your commit. It fixed the issue and loading now but getting new error.
Thanks,
Sabari.
from wwobjloader.
Hi Sabari,
I just checked with the latest commit from the master branch: 576899a It looks fine. I built the project with gulp
and then checked the minified version for example with: test/wwparallels/main.min.html
If you do the same do you still get error?
Cheers,
Kai
from wwobjloader.
Yes, I am getting the same error. I am checking on it.
from wwobjloader.
What about you commit your code on your fork of this repo? Then I can check...
from wwobjloader.
If your loader is not derived from THREE.LoaderSupport.LoaderBase
and you did not set any callbacks this error can occur.
Should be fixed now! 😄
I will close it once you confirm.
from wwobjloader.
A loader implementations must support property callbacks
now.
EDIT: Structure must be at least an empty object.
from wwobjloader.
Thanks.
from wwobjloader.
I thought about it again and in the future WorkerDirector
will enforce this. If conditions are not met loader creation will:
if ( ! loader.hasOwnProperty( 'callbacks' ) ) {
throw classDef.name + ' has no property "callbacks".';
} else if ( ! ( loader.callbacks instanceof THREE.LoaderSupport.Callbacks ) ) {
throw classDef.name + '.callbacks is not of type "THREE.LoaderSupport.Callbacks".';
}
from wwobjloader.
Thanks for the code.
from wwobjloader.
Hi Kai.
When I update to the latest version, there are still errors after compiling. Could you please help me on this? I'm using Webpack.
@kaisalmen
thanks.
from wwobjloader.
@happytoTom this seems to be a minification issue (issue #31).
Did you use the latest release (2.2.0) or the latest version from the master branch?
from wwobjloader.
@kaisalmen Yesterday I updated the code, Objloader2_version is 2.1.0, but this error occurs, where can I get 2.2.0。
thanks.
from wwobjloader.
@kaisalmen hi Kai i update code for the master branch, but the code is not working? Do you kownHow to solve this problem?
thanks.
from wwobjloader.
@happytoTom is your code accessible online (GitHub or some web site)?
Could you please post the Console output from Chrome or better are you able to copy the code of the generated worker Blob (for example Chrome DevTools -> Sources View and here it appears as Blob in the Network View).
Thanks
Btw, version reported on master branch is currently incorrect. I will correct that...
from wwobjloader.
Related Issues (20)
- Support compressed files HOT 3
- Error handling material loader HOT 7
- Abort request HOT 4
- Failed to load material if it has utf-8 characters in its name
- Incorrect indexPointerC initialization. HOT 1
- Could worker support be used in other model loaders? HOT 3
- memory leak HOT 2
- Got an error in webpack project: "ReferenceError: THREE is not defined" HOT 2
- Provide NPM package HOT 10
- npm ERR! peer three@"^0.129.0" from [email protected] HOT 6
- webpackMissingModule for three-wtm HOT 2
- Webworker with three-wtm and webpack HOT 17
- OBJLoader2 contains the correct vertices of my obj, but in the scene extra vertices are added to my object HOT 2
- Switch from snowpack to vite HOT 1
- three.js versioning in package file HOT 5
- Is it possible to load GLTF file in web-worker? HOT 1
- Explore aligning types with the core loaders HOT 6
- Align vertex colors to linear (three.js) HOT 1
- Typescript issue with 5.0.0 HOT 8
- Only support convex polygon? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wwobjloader.