-
Notifications
You must be signed in to change notification settings - Fork 95
Object Picking not working on Firefox #53
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
Comments
Ahh, I see. An unfortunate limitation where Firefox doesn't allow a read format any other than GL_RGBA + GL_UNSIGNED_BYTE. I already worked around this for the Mouse Interaction example (that one behaves properly for you, right?), so I will just need to put the same workaround here. Thanks a lot for the report! 👍 |
Wow, Vlad--thanks for the instant response, understanding and (soon, I
assume) fix!
Impressed here.
…On 10/28/2018 9:43 PM, Vladimír Vondruš wrote:
Ahh, I see. An unfortunate limitation where Firefox doesn't allow a
read format any other than GL_RGBA + GL_UNSIGNED_BYTE. I already
worked around this for the Mouse Interaction
<https://magnum.graphics/showcase/mouseinteraction/> example (that one
behaves properly for you, right?), so I will just need to put the same
workaround here.
Thanks a lot for the report! 👍
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/mosra/magnum-website/issues/8#issuecomment-433764154>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADtw1uBjKIM-9Qq1KNQ4s5eGnCNfzvMks5upl06gaJpZM4X-OVd>.
|
Well, I thought the fix would be simple and so I delayed the fix until now. It turns out to be harder than I thought, hitting one weirdness after another. Investigation so far:
Because it's unlikely I will find a magic solution to this in time for this release, I'm postponing to later. |
The |
The example now uses a While investigating one vaguely related issue (trying to read depth for the mouse interaction example), I saw that the GLES3 specification (4.3.1, page 186) says that the only allowed
Not sure how this interacts with the fact that the Object ID buffer is just a single channel (browsers usually complain that the read type has to match exactly). |
This is finally fixed as of 52a5fae. While working on an unrelated issue with
And Firefox now also prints understandable warnings when using anything else than full RGBA and a 32-bit type for buffer reading. Not sure at which point during the last three years Firefox fixed this, but what matters is that it indeed got fixed! 🎉 |
At least on FF 62.0.3 (Objects do not change color when clicked.)
Updated to 63.0 (64-bit); same behavior.
Works fine on Chrome
The text was updated successfully, but these errors were encountered: