[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Signed Int to Float Convertion Problem



You are right.  The rules are indeed different.  We will need to
discuss this during the next working group meeting and come up with a
resolution.

On Tue, Aug 15, 2017 at 8:44 AM, Kirill Dmitrenko <dmikis@yandex-team.ru> wrote:
> Hi!
>
> While working on a project we've stabled upon what looks like an inconsistency between the spec and implementations. We use normalized integers as vertex attributes and our math rely on conversion rules described in GLES 2 spec (section 2.1.2). However, we were experiencing problems with it. Further investigation showed, that in GLES 3 and GL 4.2+ conversion rules were changed (https://www.khronos.org/opengl/wiki/Normalized_Integer#Signed). I've coded a repro case: http://output.jsbin.com/wezetob/1. The canvas'll be red if GLES 3 conversions are used by an implementation and green if GLES 2 ones. Testing different devices I was able to find some that produces green (on attached photo).
>
> We're working on fixing the math we use since it seems we can't rely on any particular rule.
>
> Should that be noted in the differences section of the spec? Has someone else run into similar problems?
>
> --
> Kirill Dmitrenko
> Yandex Maps Team

-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------