[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Few questions/comments about context creation attributes
- To: Cedric Vivier <firstname.lastname@example.org>
- Subject: Re: [Public WebGL] Few questions/comments about context creation attributes
- From: Kenneth Russell <email@example.com>
- Date: Tue, 1 Jun 2010 13:53:26 -0700
- Cc: Vladimir Vukicevic <firstname.lastname@example.org>, Chris Marrin <email@example.com>, public webgl <firstname.lastname@example.org>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1275425611; bh=q6XOaQh5kU9m++zY7FQdiOt+XY8=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=jqeQiB53xzVJaMlydXNfnoFmyxehrBPtJq9KkDD6mSZYuKJaeyXzSGsnvRzn6Hnqn epA8AFAfao4iw54loajyA==
- 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:x-system-of-record; b=Ipdm/zHCyXKMcEpcEI7cw4S96jtAlqwOM912JNc1a8/tBZJQkvw9eoQfbM6pENhSl VAcU+sBK3D5cqX93e15Ew==
- In-reply-to: <AANLkTim7Hfwcrx88dENJBD5ArNimfqiZjgxec84NIN5w@mail.gmail.com>
- References: <AANLkTilSkxLpFjN4HNCcX2ARKgSyNVkk54GiugWJ9O6n@mail.gmail.com> <2120207313.283284.1274935917773.JavaMail.email@example.com> <AANLkTim7Hfwcrx88dENJBD5ArNimfqiZjgxec84NIN5w@mail.gmail.com>
- Sender: firstname.lastname@example.org
On Wed, May 26, 2010 at 11:27 PM, Cedric Vivier <email@example.com> wrote:
> On Thu, May 27, 2010 at 12:51, Vladimir Vukicevic <firstname.lastname@example.org> wrote:
>> FWIW, I'd be happy to disable the stencil buffer by default -- RGBA + depth
>> seems like a very reasonable default context format.
> I think we can discuss on the RGBA versus RGB as well.
> Two arguments for this :
> - on mobile devices the common default and most efficient color buffer
> mode is RGB (565 but the actual bits-per-component is irrelevant here)
> - of all WebGL demos available very few do need alpha-compositing with
> the HTML page, almost all of them do set clearColor with alpha=1.0,
> without passing alpha:false as context attribute, based on this real
> usage statistic making WebGL an opaque surface by default makes sense
> imho as it helps performance (and memory usage) for the greatest
> number of use cases.
> In fact when testing RGB context (hardcoded in FF to check all apps) I
> realized I forgot to use clearColor in a work-in-progress app when
> opaque white was intended (this gone unnoticed since the HTML page
> currently has white background but the content was intended to be
> white, whatever the HTML background is), so this might also prove
> beneficial to avoid unnecessary/unintended/wasteful alpha-blending due
> to a simple mistake/typo that would not happen if presence of alpha
> channel was set explicitly when actually needed.
I think the alpha channel should be enabled by default. There are many
situations in HTML compositing where alpha=0 implies that elements
underneath the current one show through. Since WebGL is a spec for the
web I think the default should be the least surprising result.
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: