[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Weird texture problems.
- To: Steve Baker <firstname.lastname@example.org>
- Subject: Re: [Public WebGL] Weird texture problems.
- From: Kenneth Russell <email@example.com>
- Date: Tue, 29 Jun 2010 17:08:59 -0700
- Cc: public webgl <firstname.lastname@example.org>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1277856542; bh=PLUMoy3Sl1giVTU6plHiEOVfmWs=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type:Content-Transfer-Encoding; b=yi4FDwos64Yq2Rq1QRoTq8DcoaM2KzNg79czqbn8JwAPaGpsDVR4/xM+QUh3QVqVL bLKawcY02GxSAtZF+Hkiw==
- Domainkey-signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:content-transfer-encoding:x-system-of-record; b=k9K0LNNEMS9ju4Qkz31bavF/NK1XsNl70cE3UjjfRMtre56VPXuvUdZn36rfm7bs0 dvPGUdQzCtV2mAH7p9teQ==
- In-reply-to: <4C2A9AC0.email@example.com>
- References: <4C2A9AC0.firstname.lastname@example.org>
- Sender: email@example.com
On Tue, Jun 29, 2010 at 6:15 PM, Steve Baker <firstname.lastname@example.org> wrote:
> I'm testing my WebGL app on some ancient hardware - probing to see where
> the compatibility envelope is - and I'm getting some really strange
> texture mapping errors on simple RGB textures on an nVidia GeForce GO
> 6400 with WinXP and Minefield.
> The texture is a 16x1024 texels .PNG - (ultimately, it's a lookup table
> for another calculation - but it goes wrong even when I don't use it
> that way). Because this is really a lookup table, I'm only reading the
> ".rg" components of the map and only using one axis of the texture - so
> in the minimal test case, my shader is something like:
> gl_FragColor = vec4 ( texture2D ( myMap, vec2(0.5, texCoord.y ) ).rg,
> 0, 1 ) ;
> If the '.b' component of the map is all zeroes, the colors come out
> perfectly...but if I put non-zero data in blue, the red and green go
> nuts...nothing like the data I put in (48,51,128)==>(22,65,128) and
> (16,64,0)==>(0,79,0) ! It doesn't seem to be an addressing issue
> because the colors I'm getting don't have the value of any of the texels
> in the original map...and it doesn't look like a MIPmapping issue either
> because the colors that I see are nowhere near the average of my texels.
> The program/shader/texture works great on all manner of other hardware,
> OS's, etc).
> Any ideas? Is it possible that some kind of lossy compression might be
> happening under the hood? I've seen this kind of thing with DXT
> compression before...but this is uncompressed .PNG.
Could undesired color space conversion be occurring?
Does the same thing happen in the Chromium continuous builds for Windows?
You are currently subscribed to email@example.com.
To unsubscribe, send an email to firstname.lastname@example.org with
the following command in the body of your email: