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

implement PShape #37

Closed
lmccart opened this issue Aug 24, 2013 · 11 comments
Closed

implement PShape #37

lmccart opened this issue Aug 24, 2013 · 11 comments

Comments

@lmccart
Copy link
Member

lmccart commented Aug 24, 2013

http://processing.org/reference/PShape.html

Shape

  • PShape
  • createShape()
  • loadShape()

Loading & Displaying

  • shape()
  • shapeMode()

Later version!

@lmccart
Copy link
Member Author

lmccart commented Dec 10, 2014

@lmccart lmccart closed this as completed Dec 10, 2014
@asfarley
Copy link

May I ask what happened here? That link gives a 404. I'm interested in the PShape functionality for rendering large point-clouds.

@Spongman
Copy link
Contributor

i believe that issue was moved here: #458

@asfarley
Copy link

From my reading, that discussion is more about re-implementing p5.js to render SVG, rather than replacing PShape.

Really, what I want to do is optimize the display of a point-cloud with many thousands of points. Somewhere I read that PShape is the way to do this in Processing, hence my question.

Is there any recommended facility for making something like a vertex buffer to contain an object that I'm rendering repeatedly at different locations? Is p5.js looking for something like this as a contribution?

@Spongman
Copy link
Contributor

do you mean something like this: https://p5js.org/reference/#/p5/vertex ?

@b2renger
Copy link
Member

I think what @asfarley is referring to is creating a PShape object in which you could store points an geometric forms ready to be rendered in one call and I guess on the gpu

probably something like that : https://processing.org/tutorials/pshape/
Dan talks about it and refers to this as "retained" mode to draw VBO

@asfarley
Copy link

@b2renger yes, that's exactly what I meant.

@rsodre
Copy link

rsodre commented Jan 19, 2022

I don't understand why this has been closed.
This is a fair request, to implement a great Processing feature, and was not addressed by #458 as mentioned.
Please reopen it, even if it's not on the roadmap, it should be.

@darthgrayter
Copy link

I agree, I feel like this should be a default feature.

@designbyadrian
Copy link

I really hate to +1 an issue, but this is an unsolved issue from 2013 that still remains unresolved with no opinion from the devs why it shouldn't be included. I'm experiencing huge slowdowns while drawing many vertices in each draw() call. Being able to cache the shape somehow would be a solution.

@davepagurek
Copy link
Contributor

I'm experiencing huge slowdowns while drawing many vertices in each draw() call. Being able to cache the shape somehow would be a solution.

Is this something that would be solved by drawing to a p5.Graphics and reusing that? Or for 3D, creating a p5.Geometry and then drawing it with model()?

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

No branches or pull requests

8 participants