[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Behavior of WebGL canvas when it can't make a backbuffer of the requested size?
- To: "Gregg Tavares (wrk)" <firstname.lastname@example.org>
- Subject: Re: [Public WebGL] Behavior of WebGL canvas when it can't make a backbuffer of the requested size?
- From: email@example.com
- Date: Thu, 4 Nov 2010 10:09:47 -0700
- Cc: "Cedric Vivier" <firstname.lastname@example.org>, "Kenneth Russell" <email@example.com>, "Steve Baker" <firstname.lastname@example.org>, "Chris Marrin" <email@example.com>, "Vladimir Vukicevic" <firstname.lastname@example.org>, "public webgl" <email@example.com>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=sjbaker.org; h=message-id :in-reply-to:references:date:subject:from:to:cc:mime-version :content-type:content-transfer-encoding; s=sjbaker.org; bh=jt0r8 D55bt2hu8l4P5MzgqDzfrg=; b=iSvVtbNV6xSS4SeGYJYk5jyxGEqj6s3ImVEzq C/U5GBcikJnM0PG9Oxq+QpSmWrogoCVINKFDIIX2DdcubSJ4B4E4XLu5p0lkKdqd DbBNCVkhyXmxxXAEucCoPoLN4iCj9bdcKC5zahc8ax+I4iUUq6667zoS+xoc9e6X p5kbX0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=sjbaker.org; h=message-id :in-reply-to:references:date:subject:from:to:cc:mime-version :content-type:content-transfer-encoding; q=dns; s=sjbaker.org; b=ZLTx+0IvkKA3KffBzA4mWIjCq9S/XWYoyR+wHEdg/KAwQfIjL8kMu/VPvAanT elgpUmMQoUxwcEyz1XQMal/+A/XT1UDN2mfy9xOGu55OmWpQb6EeRz/AE0eV1HGY Fy2HrB9eTbY7dCPFORkm7syUqvpV5v32hj62BNeQM09lJw=
- In-reply-to: <AANLkTinkLrJnCnOjR8mgyuP817Z-u5t8m6mtNiRxk5Lz@mail.gmail.com>
- References: <AANLkTi=rKRNuWGwfD39h5d6Ttu55paWSq9qTNQ19xfC5@mail.gmail.com> <AANLkTin2iu-V1LckEs_YJCUFgwRWX4rPvy+Z8MnaGy5c@mail.gmail.com> <27872E4C-B753-4DAC-8353-BFC3D74739D2@apple.com> <AANLkTim-i8j4LrzDrWyi_djdSxpg0-j5igvRhK9DNSMj@mail.gmail.com> <4C9D395A.firstname.lastname@example.org> <7ED78BBF-6DD3-45B1-978E-0FFDA5856695@apple.com> <AANLkTi=rFt3apXrfwfxtcF47nZS+fKDRCXMmPRUfd0Ja@mail.gmail.com> <29C16266-C657-4CB6-9B01-CFD9B2DD8A61@apple.com> <AANLkTimutLit_273e5pg1e3fg7n-uQyPK1ZxoZenBj59@mail.gmail.com> <AFA5AA20-36D7-4B85-95CA-2BB520C59DEC@apple.com> <AANLkTimi-Zgq62B7GEnYR72qR+kkMgFzagbX=4PWM0Rt@mail.gmail.com> <34C909B2-D7A1-4983-A79F-99D322F2AC17@apple.com> <AANLkTikr5ZDtydmyTn+OLqbuut6uquVW6PW+2tM_btmR@mail.gmail.com> <4CA50820.email@example.com> <AANLkTinPNy0UKgGffNF67xM_8qn9vvq_5M4wUbP3hBmg@mail.gmail.com> <AANLkTimN5UQY3+dFFQ_=NYr-bJbWUvaRZmiEssGN8y9P@mail.gmail.com> <AANLkTinkLrJnCnOjR8mgyuP817Z-u5t8m6mtNiRxk5Lz@mail.gmail.com>
- Sender: firstname.lastname@example.org
- User-agent: SquirrelMail/1.4.21
> On Wed, Nov 3, 2010 at 11:17 PM, Cedric Vivier <email@example.com> wrote:
> If I have a 9 monitor setup and I stretch the window across all 9
> monitors and my max back buffer is 2048 then I get a 2048x128 backbuffer?
> That doesn't seem like the result I want. Most of the time I want the
> largest resolution I can get.
Well, I guess it depends on WHY the underlying system can't do what you
ask. Generally it's because it's out of memory - not because there is
some underlying coordinate system limitation preventing the width being
more than some number of pixels.
That being the case, if (let's say) the system only has 1.2M pixels of
backbuffer storage available and you ask for a 11,520 x 1024 - your
choices are a 1280x1024 (your preference) or something like a 3840x341
which preserves your aspect ratio. Your way will produce perfectly sharp
vertical detail and ungodly horrible 9 pixel long horizontal blurring. My
way would produce something a 3x3 isotropic blurring. My result will
definitely look better GIVEN THAT the system rescales the backbuffer to
fit the canvas, as proposed.
If the system would NOT rescale the back buffer to fit the canvas - then
maybe I'd agree with you - but that's not what is proposed here.
> If your app needs a 1.0 scale ratio then query the max backbuffer size and
> then set the size of the canvas appropriately. Only about 4 of the last 60
> 3d apps I've written would have needed this. Most of my apps in WebGL pick
> a fixed backbuffer size and let the canvas scale automatically.
If you don't get back what you ask for - and if the WebGL specification
says nothing about the aspect ratio of what you get back - then I can't
imagine any way for an application that wants to minimise the blurring
artifacts to guess what to ask for in order to get what it needs.
> It seems like it's better to do the best thing for the majority of apps.
> Those few apps that need a 1.0 scale ratio can do what they need to force
I don't think there are many apps that would prefer a horizontal blur and
vertical sharpness (or vice-versa) over a scheme that spreads the blur in
both directions equally. In terms of picture quality, it's absolutely no
You are currently subscribed to firstname.lastname@example.org.
To unsubscribe, send an email to email@example.com with
the following command in the body of your email: