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

beginShape(TESS) only works on faces facing the camera #5913

Closed
2 of 17 tasks
davepagurek opened this issue Dec 20, 2022 · 0 comments · Fixed by #5914
Closed
2 of 17 tasks

beginShape(TESS) only works on faces facing the camera #5913

davepagurek opened this issue Dec 20, 2022 · 0 comments · Fixed by #5914

Comments

@davepagurek
Copy link
Contributor

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build Process
  • Unit Testing
  • Internalization
  • Friendly Errors
  • Other (specify if possible)

p5.js version

1.5.0

Web browser and version

Firefox 107.0

Operating System

MacOS 12.5.1

Steps to reproduce this

When using beginShape(TESS), we perform a 2D tesselation, and projecting the points into 2D along the normal specified here:

https://github.com/processing/p5.js/blob/main/src/webgl/p5.RendererGL.js#L1501

This works for faces that face the camera, but breaks on faces that are perpendicular to the camera, leaving holes e.g. in this sketch: https://editor.p5js.org/davepagurek/sketches/HLO-ZN5Vg
Screen Shot 2022-12-19 at 8 26 16 PM

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

Successfully merging a pull request may close this issue.

1 participant