[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Public WebGL] readPixles() can't access float values (OES_texture_float interaction)
- To: Benoit Jacob <[email protected]>, Christian Junker <[email protected]>
- Subject: RE: [Public WebGL] readPixles() can't access float values (OES_texture_float interaction)
- From: "Ribble, Maurice" <[email protected]>
- Date: Tue, 30 Aug 2011 17:48:16 +0000
- Accept-language: en-US
- Cc: "[email protected]" <[email protected]>
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=qualcomm.com; [email protected]; q=dns/txt; s=qcdkim; t=1314726499; x=1346262499; h=from:to:cc:subject:thread-topic:thread-index:date: message-id:references:in-reply-to:accept-language: content-language:x-ms-has-attach:x-ms-tnef-correlator: x-originating-ip:content-type:content-transfer-encoding: mime-version; z=From:=20"Ribble,=20Maurice"=20<[email protected]>|To: =20Benoit=20Jacob=20<[email protected]>,=20Christian=20J unker=0D=0A=09<[email protected]>|CC:=20"publi [email protected]"=20<[email protected]> |Subject:=20RE:=20[Public=20WebGL]=20readPixles()=20can't =20access=20float=20values=0D=0A=20(OES_texture_float=20i nteraction)|Thread-Topic:=20[Public=20WebGL]=20readPixles ()=20can't=20access=20float=20values=0D=0A=20(OES_texture _float=20interaction)|Thread-Index:=20AQHMY+Kzh8IuGxrwDES MLjliYx8dtJU2IWyA//+QVUA=3D|Date:=20Tue,=2030=20Aug=20201 1=2017:48:16=20+0000|Message-ID:=20<6EDD22A170C08F44982E1 [email protected]> |References:=20<CANPDqYdExg064USgGarNG18mdapohzB4qXDtyODz [email protected]>=0D=0A=20<[email protected] lla.com>|In-Reply-To:=20<[email protected]> |Accept-Language:=20en-US|Content-Language:=20en-US |X-MS-Has-Attach:|X-MS-TNEF-Correlator:|x-originating-ip: =20[199.106.114.10]|Content-Type:=20text/plain=3B=20chars et=3D"iso-8859-1"|Content-Transfer-Encoding:=20quoted-pri ntable|MIME-Version:=201.0; bh=PoISnn5X+zcJfyNGzPmmxw/Nnx53mngen4TU4C7+tvM=; b=Yf2dXrw6Mygpw5bBkOEMaWY0jKJjRmfecNqRbQHi5UFHgeoenklzEi0E dPw5cnAJgmcCak8BHX4xTgOekSFYuCag7jlrWs7JY1K5wxv4iFilMe3yh Y7svVeMD+kNoqvd76DCxbeAaiJB/INl3+PprvG8dxqYU6gCAOHKT+YUzK 4=;
- In-reply-to: <[email protected]>
- List-id: Public WebGL Mailing List <public_webgl.khronos.org>
- References: <[email protected]om> <[email protected]>
- Sender: [email protected]
- Thread-index: AQHMY+Kzh8IuGxrwDESMLjliYx8dtJU2IWyA//+QVUA=
- Thread-topic: [Public WebGL] readPixles() can't access float values (OES_texture_float interaction)
They are only texturing and not for rendering, therefore readpixels does not make sense.
-Maurice
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Benoit Jacob
Sent: Tuesday, August 30, 2011 1:26 PM
To: Christian Junker
Cc: [email protected]
Subject: Re: [Public WebGL] readPixles() can't access float values (OES_texture_float interaction)
As far as I can see, this question boils down to whether or not all
OpenGL[ES] implementations which support float textures also support
readPixels on them.
If they do support that, then I don't see why we shouldn't support that too.
If some of them don't support that, then there's no way that we'll be
able to support that on top of them.
Does anyone know how widely this is supported?
Cheers,
Benoit
On 26/08/11 07:20 AM, Christian Junker wrote:
>
> Hi,
>
> Although floating point textures are supported through the
> "OES_texture_float" extension, it is currently not possible to read
> back the pixels from the framebuffer.
> Using readPixels() does only work für UNSIGNED_BYTE (as described in the spec).
> The specification of the extension
> (http://www.khronos.org/registry/gles/extensions/OES/OES_texture_float.txt)
> doesn't mention interaction with readPixels() at all.
>
> My question now is, is this an oversight or desired behavior? (or did
> I simply overlook something?)
>
> I think allowing readPixels() to play together with floating point
> textures would be a highly desireable feature, esp. for
> diagnosing/debugging and gpgpu.
>
>
> Short example:
>
> var pixels = new Float32Array(framebuffer.width * framebuffer.height * 4);
> gl.readPixels(0, 0, framebuffer.width, framebuffer.height, gl.RGBA,
> gl.FLOAT, pixels);
>
> results in "Warning: WebGL: ReadPixels: type: invalid enum value 0x1406"
>
>
> Rest Regards
> Christian
>
> -----------------------------------------------------------
> You are currently subscribed to [email protected]
> To unsubscribe, send an email to [email protected] with
> the following command in the body of your email:
> unsubscribe public_webgl
> -----------------------------------------------------------
>
-----------------------------------------------------------
You are currently subscribed to [email protected]
To unsubscribe, send an email to [email protected] with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------
-----------------------------------------------------------
You are currently subscribed to [email protected]
To unsubscribe, send an email to [email protected] with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------