The new PShape features are awesome. Especially the adding of Vertices or loading OBJs. But what I am missing in comparison to the old GLModel class is the opportunity to send an array of vertices to it. Like the model.updateVertices(vertexarray)
Because I think sending the vertices one by one makes it too many calls. Especially when doing it dynamically in the draw loop. Did anyone has experience with it?
Hello, thought its worth to share. I am testing processing 2.0a6 in android mode for the first time. And after having some trouble it worked when there were no numbers in my sketch title.
Does anybody has experience with GLGraphicsOffScreen and the save? It produces me empty files. At least with the given dimension.
I am using like:
GLGraphicsOffScreen offscreen = new GLGraphicsOffScreen(this, 200, 200);
offscreen.beginDraw();
// ... draw into the offscreen
offscreen.endDraw();
// and then wanting to save it produces empty files
offscreen.save("file.png");
// using the getTexture does not works as well
offscreen.getTexture().save("file.png");
I am not sure wether the content should be copied from the internal texture to the PImage inside the GLGraphicsOffscreen object to be able to see it? At least that is my guess why this does not works.
// this does not works as well
// i thought one has to copy the data from the opengl texture to the PImage property inside the GLGraphicsOffScreen object
I am not sure if it works on your computer since I do not really now what I am doing here yet. But if you want, give it a try and tell me how it works.
Amnon already told about it, there is a new library in development that lets you use sunflow from Processing.
It is inspired by P5Sunflow. Sadly that library does not works anymore and does not lets you use the full sunflow functionality. This is where P5SunflowAPIAPI comes in. Check out the processing library:
It is all really really fresh and still under development. Feel free to try it out. I would be happy for every comment. There is a javadoc and source included for the more advanced users of you. When it is all more stable, I am planning to create a website and fine documentation for it.
Btw. right now the files are rendered into the Applications folder. Just to know. I am working on that.