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

Re: [Public WebGL] WEBGL_dynamic_texture extension proposal

A couple more comments

* samplerExternalOES or samplerDynamicTextureWEBGL?

I'm just wondering if there will be any future conflict. I don't want to end up in a case where we some how have to distinguish between real uses of samplesExternalOES and ones that have to be re-written for WebGL dynamic textures.

But maybe that will never come up?

* #extension OES_EGL_image_external : enable or #extension WEBGL_dynamic_texture : enable?

Similarly, do I need to worry about any future conflicts? 

On Thu, Jul 5, 2012 at 10:04 AM, Gregg Tavares (社用) <[email protected]> wrote:
Looks good Mark.

A few comments:

*) is naming all the functions dynamicTextureXXX redundant? The functions are called off the extension object so

var dynamicTextureExtension = gl.getExtenion("WEBGL_dynamic_texture");
dynamicTextureExtension.setSource(texture, src);

might be enough?

*) does dynamicTextureGetSource seem un GL like?

Maybe getDynamicTextureParameter(param) in case something needs to be added later?

*) is the state before calling dynamicTextureAquaireFrame or after calling dynamicTextureReleaseFrame desirable?

It means the behavior of the program is implementation dependent. It could be that on some browsers, never calling either function works perfectly and on other browsers or platforms it performs poorly or not at all. Where as if there is no dynamicTextureReleaseFrame and you're required to call dyanicTextureAcquireFrame to see anything at all it seems more likely you'd get consistent behavior across implementations?

On Thu, Jul 5, 2012 at 12:47 AM, Mark Callow <[email protected]> wrote:

I have completed the initial draft of a proposed WEBGL_dynamic_texture extension. The purpose of this is to provide an API for handling textures with dynamic images such as video that can be implemented at the maximum efficiency possible on a given platform, including with zero copies.

Please look at the issues list before posting any questions as it contains many of the questions you are likely to have and several answers.

You can find the proposal at:


I welcome your comments and help to resolve all the listed issues.



注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合が有ります。正式なメール受信者では無い場合はメール複製、 再配信または情報の使用を固く禁じております。エラー、手違いでこのメールを受け取られましたら削除を行い配信者にご連絡をお願いいたし ます。

NOTE: This electronic mail message may contain confidential and privileged information from HI Corporation. If you are not the intended recipient, any disclosure, photocopying, distribution or use of the contents of the received information is prohibited. If you have received this e-mail in error, please notify the sender immediately and permanently delete this message and all related copies.