-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Documentation: How to use the GlFrameBuffer? #25
Comments
There are many things going on:
A good exercise to learn how to use the lib could be render the circle in the FBO as you're trying to do here, then render the FBO texture into a window (with another draw pass and GlTextureProgram). |
Hey, first of all, thanks for you super quick response! I wouldn't have believed that you would answer in just 5 minutes.
Right now my code looks like this:
Which does not crash (so far so good). But the contents of the fbo are not visible on screen (its just black). I can't quite figure out if either 1) the content of the fbo is not updated or 2) the rendering of the Any ideas? |
I think it's the same issue of EOS vs. regular textures. In Something like |
This fixes it, it's rendering correctly. Many thanks, this would probably have taken me a lot longer to find out on my own. I would like to write some small samples for your docs which could help out other people when starting out if that is okay for you? :) This is just a simple example for now but I have it working and can build on it. Once again, thank you, also great work on the library! |
Sure, feel free to open a PR :-) there's also a button on each webpage to edit that specific markdown doc. |
Hey, I am trying to render to a texture using a framebuffer, but I can't seem to make it work, could you help me out here?
So I am setting up a SurfaceView and tried a simple rendering, which works just fine:
But when I am trying to render to a FBO it crashes:
java.lang.RuntimeException: Error during draw start: glError 0x502: invalid operation
Could you help me out with a working sample or a pinpoint in what's wrong? I couldn't glean much more from the docs.
The text was updated successfully, but these errors were encountered: