Ok, thanks guys, there were a couple problems, I needed GL_LINE_STRIP and also both gl_FragColor and gl_Color are deprecated in version 330.
Unfortunately it still doesn't quite work but I have...
Type: Posts; User: jonpb1
Ok, thanks guys, there were a couple problems, I needed GL_LINE_STRIP and also both gl_FragColor and gl_Color are deprecated in version 330.
Unfortunately it still doesn't quite work but I have...
I don't know if this is any help, but I actually can't think of a way to find the medial axis without first finding the cross-section. I believe the cross-section of minimum area will give a plane...
Could someone please either confirm that the following code either should work or tell me what I'm doing wrong? Assuming that the orthographic matrix calculation is correct and the shaders compile,...
So it turns out the erasing effect was a bug outside of the opengl code. There is still a problem with this code, that I can't figure out. Whether I use dukey's suggestion to draw to the front buffer...
I tried that and it didn't do anything. At least by adding the code to the end of the draw scene code it does something, although what it does is erase the screen.
I don't know how to refresh the screen in a double-buffered system without a swap, but that's another issue. I decided to just add this function to the end of my draw scene function (after removing...
I thought glflush and glfinish only complete the gl commands. In a double buffered system you still need to refresh the screen with a swap. The reason I copy the front to back is that
1) the back...
Hi, I know this has been asked a number of times, but all the ones I found either referred to the old deprecated pipeline or did not answer the question of how to draw the rectangle.
In the old...