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

Re: [Public WebGL] Some WebGL draft feedback



We should not do anything to encourage the mixing of 2D & 3D rendering via different APIs. The required synchronization between the APIs will kill performance. People should be encouraged to draw everything in their canvas with WebGL.

Regards

    -Mark

On Wed, Dec 16, 2009 at 7:05 PM, Gregg Tavares <gman@google.com> wrote:
  

I agree. It's not at all clear from the HTML5 spec if you are supposed
to be allowed to get multiple different contexts to the same canvas
(or else I missed that part of the spec that makes that clear)

This seems like a valid thing to want to do.

var c3d = canvas.getContext("webgl");
var c2d = canvas.getContext("2d");
var csvg = canvas.getContext("svg");

Draw3DWorldWith3dContext(c3d);
DrawTextLabelsOfThingsIn3DWith2dContext(c2d);
DrawUIWithSVG(csvg)

I know that so far WebGL has assumed only 1 context is allowed but
maybe we should get a definitive answer.

  
  
begin:vcard
fn:Mark Callow
n:Callow;Mark
org:HI Corporation;Graphics Lab, Research & Development
adr:Higashiyama 1-4-4, Meguro-ku;;Meguro Higashiyama Bldg 5F;Tokyo;;153-0043;Japan
email;internet:callow_mark@hicorp.co.jp
title:Chief Architect
tel;work:+81 3 3710 9367 x228
tel;fax:+81 3 5773 8660
x-mozilla-html:TRUE
url:http://www.hicorp.co.jp,  http://www.mascotcapsule.com
version:2.1
end:vcard