Skip to content
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

Simpler multi buffer FFGL Example #77

Open
wyhinton opened this issue Mar 17, 2022 · 2 comments
Open

Simpler multi buffer FFGL Example #77

wyhinton opened this issue Mar 17, 2022 · 2 comments

Comments

@wyhinton
Copy link

Is the only example which uses multiple buffers the bloom example?

Is there any way we could have a simpler demo using buffers? Or maybe someone has already made one?

@MennoVink
Copy link
Collaborator

I dont know what you mean by 'multiple buffers'.
The examples in this repository are intended to show how to use ffgl. We have no intention to teach opengl, which seems to be what you're asking about. For that you're better off following an opengl tutorial.

@wyhinton
Copy link
Author

wyhinton commented May 8, 2022

@MennoVink
Let me explain further then. In my experience using multiple buffers allows us to store and reference data in a texture format. This allows us to persist data over time to do things like Feedback, or physics simulations like this or this.

Yes, I agree that it's not your job to teach OpenGL. But the examples plugins provided in the repo are meant to demonstrate the capabilities of FFGL, and I certainly think more documentation and examples of how to use FFGLFBO are warranted given that it's an additional abstraction over OpenGL. If the bloom example was written in "vanilla" OpenGL, then I might be able to use "vanilla" OpenGL tutorials as a guide.

A simple demonstration like this game of life example would go a long way in making FFGLFBO more accessible. In the simplest way, just demonstrating how we can feed the outputs of shaders as texture inputs to other shaders for a given plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants