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

Re: [Public WebGL] Additional texture/vertex formats

Not a deal breaker. There is no "half" type in C either. One can just alias with Uint16 and some conversion functions I would guess if you really needed to manipulate the values in _javascript_. Mostly for IBL applications though you'd just be feeding bytes through from a file format without touching them.

On Mon, Jul 23, 2012 at 2:37 PM, Kenneth Russell <kbr@google.com> wrote:
Half float textures are spec'ed for WebGL in
. There's a big caveat currently that typed arrays can't be used to
upload data into them, since there's no Float16 typed array type (and
because it would be extremely inefficient, I do not foresee adding

Is that restriction a deal killer? Would the spec need to be amended
to support e.g. uploading from a Float32Array, with appropriate
truncation of the mantissa and exponent bits, in order to be useful
for image based lighting?


On Sun, Jul 22, 2012 at 6:49 PM, Mark Callow <callow_mark@hicorp.co.jp> wrote:
> On 21/07/2012 03:42, Jeff Russell wrote:
> The bandwidth/memory savings are the main reason one would use them over
> float, and that's a big one. Not sure if it's still the case but in the
> desktop GPU world texture filtering was once easier to come by with half
> float instead of full precision float textures.
> I know less about mobile GPUs, but I understand bandwidth is if anything
> even more of an issue there.
> Bandwidth is indeed even more of an issue on mobile and it will almost
> certainly be the case that filtering will be more available for half-float
> than float for the same reasons it was once "easier to come by" on desktop.
> Regards
> -Mark
> --
> 注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合が有ります。正式なメール受信者では無い場合はメール複製、
> 再配信または情報の使用を固く禁じております。エラー、手違いでこのメールを受け取られましたら削除を行い配信者にご連絡をお願いいたし ます。
> NOTE: This electronic mail message may contain confidential and privileged
> information from HI Corporation. If you are not the intended recipient, any
> disclosure, photocopying, distribution or use of the contents of the
> received information is prohibited. If you have received this e-mail in
> error, please notify the sender immediately and permanently delete this
> message and all related copies.