@neiya wrote:
Hi!
I got this error and it opens the ofPixels.h file at line 795c.set( pixel[0], pixel[1], pixel[2] );
Actually without changing anything in the code the error occurs like 2 in 3 times, not every time.
I am on PC with visual studio. I am working with this tutorial : http://openframeworks.cc/ofBook/chapters/generativemesh.html and I started customize it by adding these lines in the void ofApp::draw()
int numVerts = mesh.getNumVertices(); for (int i = 0; i < numVerts; ++i) { ofVec3f vert = mesh.getVertex(i); int x = int(vert.x); int y = int(vert.y); ofColor couleur = image.getColor(x, y); ofSetColor(couleur); ofFill(); ofDrawEllipse(vert.x, vert.y, 10, 10); }
The problem seems to be with the getColor function maybe
I am a beginner with openframeworks and visual studio
If you have any question or if I am not clear, ask me
Thanks
Posts: 5
Participants: 3