cosmos icon indicating copy to clipboard operation
cosmos copied to clipboard

Is iOS support still planned / possible?

Open connebs opened this issue 2 years ago • 1 comments

Hi, thanks for the library – the performance is great. However, I'm trying to find a library I can use to replace our existing graph visualizer react-force-graph and I've noticed that iOS support currently seems broken (the force algo seems to just result in all nodes being clustered in a big soup at the center of the graph). I saw the webkit issue, which seemed to clarify that the lack of support was not a bug and that RGBA16F would need to be used due to lack of EXT_float_blend extension.

I've never really worked with WebGL so after looking at the cosmos code-base I have no idea how possible this is. I have already forked the library to make some usability changes just for myself to better understand how we'd use it, but would definitely like to know if iOS support is a tractable problem. Thanks again for your work on this library!

connebs avatar May 17 '23 05:05 connebs

@acnebs As of now we can't do much about it. We rely on the EXT_float_blend WebGL extension in our algorithm and there's no way to make it work without blending.

We'll revisit the problem again when the next iOS version becomes available. Additionally, we hope that WebGPU will allow us to overcome that limitation in the future. However it's only supported by Chrome as of now.

rokotyan avatar May 19 '23 00:05 rokotyan