-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
beginShape(QUADS) does not work in WebGL mode #4401
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
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already. |
Thank you @edorfaus! This warning should be added back in here until quads are handled correctly. |
Hi does anybody find a solution? |
We just encountered the same issue when trying to build a textured cube from quads. The one workaround a colleague found was to use a irregular polygons. The thing that bothers me most about it is that it fails silently. One can waste a lot of time trying to figure out what one does wrong and we certainly did. I suggest you add some form of test to detect such breakages. |
Hi. |
Hello , Did anyone Find any solution for this :( |
There seems to be consistent and noteworthy demand for QUADS support in immediate mode drawing for WEBGL. This is due in part to the fact that the reference lists all modes that work in 2D with There are two possible changes here. 1. Suitable for a new contributor or someone unfamiliar with WEBGL 2. Suitable for a contributor with an interest in or experience with WebGL |
If we opt for the second solution, I wouldn't mind taking that task on. I'll defer to you to judge whether that change is warranted compared to just updating the docs though! |
@davepagurek that would be great! Working with QUADS is pretty common judging by the activity on this thread and many Processing 3D sketches I see. This would be a significant improvement to parity between the renderers without i think too much work required. |
Most appropriate sub-area of p5.js?
Details about the bug:
Try to draw a QUADS shape with fill, e.g. like this:
beginShape()
reference documentation, this should draw two separate quads, which I expect to be filled in with separate colors (one red and one green).Instead, I get an unclosed and unfilled 7-sided polygon, as if I specified
noFill()
and left out theQUADS
.Further notes:
The text was updated successfully, but these errors were encountered: