Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可能遇到问题 #11

Open
AlexZ33 opened this issue Mar 2, 2021 · 0 comments
Open

可能遇到问题 #11

AlexZ33 opened this issue Mar 2, 2021 · 0 comments

Comments

@AlexZ33
Copy link
Member

AlexZ33 commented Mar 2, 2021

    1. 报错:Uncaught TypeError: Cannot read property 'setCrossOrigin' of undefined
      解决:翻到three.js的源码把对应的loader.setCrossOrigin( this.crossOrigin ); 代码换成*loader.setCrossOrigin( 'Anonymous' );

PS:如果是加载本地vue项目中的资源,路径是相对于public下为根路径。

    1. .three内存泄漏丢失上下文
beforeDestroy(){

    this.renderer.forceContextLoss();

    this.renderer = null;

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant