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

iPad or Inverted Version #20

Closed
Nemquae opened this issue Mar 29, 2017 · 0 comments
Closed

iPad or Inverted Version #20

Nemquae opened this issue Mar 29, 2017 · 0 comments

Comments

@Nemquae
Copy link

Nemquae commented Mar 29, 2017

Hi, thanks for this framework. Been a great resource so far.

We've been using this for a while and having some success, but not we'd like to try to get it running on the iPad. After setting up an xcode project with the proper settings, the biggest issues seem to lie with converting to OpenGLES (3 ideally, but 2 can work too). Any insights on how to go about that?

GL_VERTEX_PROGRAM_POINT_SIZE and GL_GEOMETRY_SHADER_EXT are undefined, and I'm guessing we can't use geometry shaders at all. I'm not an expert on shaders, but I know enough to follow your code so far - just not sure what would need to be changed exactly. For example, I could just disable the debug views that use geometry shaders, since those aren't critical. Or I see in some shader wrapper classes that you once used GL_POINT_SMOOTH instead of GL_VERTEX_PROGRAM_POINT_SIZE. Is it possible to go back to that?

Also, previously I tried to invert the colors so that the fluid simulation would have a white background with a natural blend of colors. It turns out that I would have to re-derive some of the fluid equations to do that correctly, as just inverting colors doesn't yield a natural blend. Do you know of a good resource or a better hack for that?

@moostrik moostrik closed this as completed Jul 4, 2018
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