processing / processing/p5.js

buildGeometry doesn't work with point() ?

Open
#7,838 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area:WebGL Bug
Dominant language
JavaScript
Stars
24k
Forks
3.8k
Avg merge
3d 16h
Merged PRs (30d)
25

Description

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
  • Internationalization
  • Friendly errors
  • Other (specify if possible)
p5.js version

1.11.7

Web browser and version

Chrome 136.0.7103.93

Operating system

MacOS

Steps to reproduce this
Steps:
  1. Try creating a custom buildGeometry() shape using points
  2. They appear for 1 frame (if using clear() or background() then go poof
  3. Not an issue if rendering line() or sphere()
Snippet:

See example here.

FYI, was exploring buildGeometry() for a faster point cloud when drawing the obj.computeFaces().vertices as discussed here and wonder if it's intentional or a bug that point() doesn't work?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked p5.js editor example and reproduce the WebGL behavior using buildGeometry() with point(), comparing it with line() and sphere(). Then inspect the buildGeometry() and point() entry points to determine why points disappear after clear() or background(); done means custom point geometry remains visible across redraws or the behavior is documented as intentional.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.