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

fixed deprecated function errors with THREE #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

powersimple
Copy link

@powersimple powersimple commented Aug 16, 2020

Hi Fernando,
Small world that we were chatting the other day on LinkedIn.
Then this morning I found an A-Frame based site that I want to work with, and went into clean up errors. The first errors to clean up were easy deprecated functions for your teleport controls, all found in RayCurve.js.
(the site, if you're interested is https://www.anvropomotron.com/)

and these are the errors it threw.
I changed the first two and commented out the third. removing the drawMode call didn't seem to affect the site when I tested it.

three.js:49307 THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead.
setDynamic @ three.js:49307
three.js:49334 THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute().
addAttribute @ three.js:49334
three.js:49099 THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.

@powersimple powersimple changed the title fixed THREE deprected errors fixed deprecated function errors with THREE Aug 16, 2020
@diarmidmackenzie
Copy link

This is needed for compatibility with A-Frame 1.4.0, as the deprecated THREE.js function setDynamic() has now been removed completely.

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

Successfully merging this pull request may close these issues.

2 participants