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

Quad support in current Three.js version #11655

Closed
3 of 13 tasks
Ashajoney opened this issue Jun 30, 2017 · 5 comments
Closed
3 of 13 tasks

Quad support in current Three.js version #11655

Ashajoney opened this issue Jun 30, 2017 · 5 comments
Labels

Comments

@Ashajoney
Copy link

Ashajoney commented Jun 30, 2017

Description of the problem

Upon my thorough studies and research, I came to know that current Three.js version doesn't support quad and supports only tria and quad was deprecated since Three.js 60 version.
I do want to know whether we could incorporate quad support in current Three.js version and whether it associates with the performance or rendering issues.
What could be done to optimise the performance with quad support in current Three.js version.

Thanks & Regards,
Aasha Joney

Three.js version
  • Dev
  • r85
  • ...
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
@mrdoob
Copy link
Owner

mrdoob commented Jun 30, 2017

It is complicated... WebGL itself doesn't support quads.

webgl primitives

We could create some geometry classes which could operate with quads, but we'll have to convert to triangles before sending them to WebGL anyway.

@pailhead
Copy link
Contributor

pailhead commented Jul 2, 2017

This should probably be handled outside of the core. Why limit things to quads anyway? I've been using my own Ngon class for a while now.

BTW, this:

It is complicated... WebGL itself doesn't support quads.

😄

I love this attitude, three should at it's core be a better way to use webgl. Arbitrary data structures should be built on top of it.

@Ashajoney
Copy link
Author

Ashajoney commented Jul 5, 2017

How could the THREE.js versions below 60 supported quad and why that could not be incorporated into the current version.?

@pailhead
Copy link
Contributor

pailhead commented Jul 5, 2017

Three does not have any opinions on quads. You can support it yourself.

why that could not be incorporated into the current version.?

It would be more code to download that is not used by everyone.

@WestLangley
Copy link
Collaborator

How could the THREE.js versions below 60 supported quad and why that could not be incorporated into the current version.?

We decided to simplify the codebase. The renderer no longer handles quads.

Instead, loaders that support quads, convert the quads to triangles during the loading process.

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

No branches or pull requests

5 participants