-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Floating Point Textures in OpenGL ES 2.0 #2206
Comments
The Xamarin.Android version of OpenTK also supports these tokens, so it should be possible to enable floating-point textures on Android. Two pitfalls to be aware of:
The final question is how to deal with devices that do not support the necessary extensions. Is there a MonoGame policy for handling this situation? |
MonoGame has an internal GraphicsCapabilities class that is used to check |
Thanks to all for commentaries. I am glad there aren't serious troubles (for now). |
Fixed in #6264. |
I was too optimistic. Sorry guys. |
No worries, happens all the time :p |
I am making the game based on a fluids interaction (video). It is very expensive to simulate so I have to use GPU instead of CPU. It works fine on MonoGamе for WindowsGL but I need to implement it on mobile devices.
Unfortunately, there is a problem with floating-point textures: they aren’t supported in MonoGame for Android but are heavily used in the simulation. However, in
OpenTK.Graphics.ES20
there are constants likeOesTextureFloat
andOesTextureHalfFloat
so OpenGL ES 2.0 implementation in OpenTK supports it (I hope). Also I have found that all modern devices supportOES_texture_half_float
andOES_texture_float
extensions (OpenGL ES 2.0 Extensions on Android Devices).Thus, I think I can implement this feature in MonoGame (while I have never worked with OpenGL, only with Direct3D). I can start from this commit Added support for all remaining SurfaceFormat values in OpenGL (thanks @KonajuGames for it).
I ask you to give me some roadmaps, ideas, notes, drafts, potential issues and so on, if you can.
The text was updated successfully, but these errors were encountered: