Missing Plumbing

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Missing Plumbing

Tom_Neo
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Missing Plumbing

gouessej
Administrator
Hi

Please look at this example:
http://jogamp.org/git/?p=jogl-demos.git;a=blob;f=src/demos/es2/RawGL2ES2demo.java;hb=HEAD

I'm sorry but the emergency is for you, not for us. We do our best, I come here on my spare time.

You shouldn't have to bind your VAO twice, glFlush isn't necessary too. I don't see glBindAttribLocation or GlUniform*, I don't see how you pass "vPosition" to your vertex shader.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Missing Plumbing

Wade Walker
Administrator
In reply to this post by Tom_Neo
Hi Tom,

You describe probably the most common problem with OpenGL programming, on any platform -- you write a bunch of code that looks right to you, but the output is black :) My advice to you would be to start from a "known good" working program and gradually modify it, rather than trying to write the code from scratch, at least until you are confident in how to use OpenGL. There are just too many things that could be wrong with your code, and it's very hard to debug just by looking at it.

Good luck!