-
Notifications
You must be signed in to change notification settings - Fork 72
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
error: THREE.Mesh: .drawMode has been removed. #78
Comments
The full message is
It seems that the current Meshes are constructed using |
I've been looking into this to improve my AFrame knowledge : this component uses an 'old' THREE API, that came with AFrame 0.9.2. More recent versions of AFrame come with newer revisions of THREE (r111, soon r113) which may not be compatible, see THREE migration guide. How is this usually handled in other external componants ? |
Facing same issue here. Any possible solution? |
@blasco The suggestion by @rotoglup was great and as the migration guide suggests, however I don't think simply using Let me know if that works for you. It seems to have solved my issues and now correctly renders the line as it should do. I'll open a PR with this if it looks good 😊 |
@Galadirith this eliminates the warning but does not solve all the problems I currently am having. Could be entirely unrelated, but my teleport lines are still not showing up and i have no functionality. |
I've ported the ray to use the default Three.js draw mode, i.e. the triangles draw mode, here: https://github.com/jure/aframe-blink-controls/blob/main/src/index.js#L525-L603 You can pretty much copy the body of this function into your Hope that helps someone! I did enjoy the very elegant and efficient approach of TriangleStripDrawMode, but since it's been removed it doesn't help to lament, it is what it is :) |
The controls throw an error on the console: 'THREE.Mesh: .drawMode has been removed.'
Commenting out the offending line:
https://github.com/fernandojsg/aframe-teleport-controls/search?q=drawmode&type=Code
makes the error go away.
The text was updated successfully, but these errors were encountered: