Giter VIP home page Giter VIP logo

Comments (15)

kaisalmen avatar kaisalmen commented on June 27, 2024

@ksabariraj I just fixed that. It only happens with the minified version. Please try with latest commit from master branch: b53c096

from wwobjloader.

ksabariraj avatar ksabariraj commented on June 27, 2024

Hi Kai,

Thanks for your commit. It fixed the issue and loading now but getting new error.

screen shot 2017-10-27 at 8 00 40 am

Thanks,
Sabari.

from wwobjloader.

kaisalmen avatar kaisalmen commented on June 27, 2024

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.

ksabariraj avatar ksabariraj commented on June 27, 2024

Yes, I am getting the same error. I am checking on it.

from wwobjloader.

kaisalmen avatar kaisalmen commented on June 27, 2024

What about you commit your code on your fork of this repo? Then I can check...

from wwobjloader.

kaisalmen avatar kaisalmen commented on June 27, 2024

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.

kaisalmen avatar kaisalmen commented on June 27, 2024

A loader implementations must support property callbacks now.
EDIT: Structure must be at least an empty object.

from wwobjloader.

ksabariraj avatar ksabariraj commented on June 27, 2024

Thanks.

from wwobjloader.

kaisalmen avatar kaisalmen commented on June 27, 2024

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.

ksabariraj avatar ksabariraj commented on June 27, 2024

Thanks for the code.

from wwobjloader.

tangtao007 avatar tangtao007 commented on June 27, 2024

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.
image

Uploading image.png…

@kaisalmen
thanks.

from wwobjloader.

kaisalmen avatar kaisalmen commented on June 27, 2024

@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.

tangtao007 avatar tangtao007 commented on June 27, 2024

@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.

tangtao007 avatar tangtao007 commented on June 27, 2024

@kaisalmen hi Kai i update code for the master branch, but the code is not working? Do you kownHow to solve this problem?
thanks.
image
image

from wwobjloader.

kaisalmen avatar kaisalmen commented on June 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.