From bja...@ Tue Jul 5 10:47:41 2011 From: bja...@ (Benoit Jacob) Date: Tue, 5 Jul 2011 10:47:41 -0700 (PDT) Subject: [Public WebGL] Triggering a lost context In-Reply-To: Message-ID: <199090367.423438.1309888061881.JavaMail.root@zimbra1.shared.sjc1.mozilla.com> Sorry about the late reply. ----- Original Message ----- > Is there a way to intentionally trigger a lost context in FireFox, > like the WEBKIT_lose_context extension or killing the GPU process in > Chromium? There is no such way of triggering lost context events in Firefox. That would be nice to have, if only for tests. > > > Has Firefox implemented the current spec in terms of lost contexts? The spec part of it is implemented, but not the actually useful part. The API is present, but WebGL lost context events never get generated, and isContextLost just returns false. > > > Are there any WebGL demos out there that properly handle losing a > context and are able to continue operation after the context is > restored? I don't know; none of the WebGL demos I remember studying did. Cheers, Benoit ----------------------------------------------------------- You are currently subscribed to public_webgl...@ To unsubscribe, send an email to majordomo...@ with the following command in the body of your email: unsubscribe public_webgl ----------------------------------------------------------- From wuy...@ Sat Jul 9 14:00:24 2011 From: wuy...@ (=?UTF-8?B?5ZC0546J5a6d?=) Date: Sat, 9 Jul 2011 16:00:24 -0500 Subject: [Public WebGL] WebGL rendering text and other basic objects Message-ID: Hi, I am programming a tree-ring view for information visualization. First, I have drawn many ring sectors. Each sector are formed by triangles. They are drawn in 2D, with all vertices' Z coordinates equal to constant value. Each sector has a uniform color, maybe different from other sectors. All sectors are rendered in the same unique canvas. The vertex shader is? vColor = aVertexColor; Then, I want to render some text on each sector, which is the label of the sector. I have learnt how to render text through the link: http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=283502 but, I saw that it need to change the fragment shader to: gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.s, vTextureCoord.t)); So, if I change to this shader, I may can not render the original shader to a unique color, since text render need texture to assign color. Can I write two shaders, one for render the sectors, the other for render the texts. Do I need two canvas to do this? If so, does one canvas will hide the other one? Thanks, Yubao Wu ----------------------------------------------------------- You are currently subscribed to public_webgl...@ To unsubscribe, send an email to majordomo...@ with the following command in the body of your email: unsubscribe public_webgl ----------------------------------------------------------- From rya...@ Sat Jul 9 14:32:36 2011 From: rya...@ (Ryan Ackley) Date: Sun, 10 Jul 2011 07:32:36 +1000 Subject: [Public WebGL] Typed array specification comments Message-ID: Hi, this doesn't seem like the right list to me but this is where the specification said to leave comments so I apologize in advance if I'm in the wrong place. I'm currently using the Typed Array implementation in Chrome to read a binary file format. One thing I've found to be sorely lacking is String handling. The ability to read and write Strings using different encodings is a necessity. Often, with binary data, string will be intermingled with number types. What I would love to have in DataView are two additional methods DOMString getString(unsigned long byteOffset, optional DOMString encoding) void setString(unsigned long byteOffset, DOMString value, optional DOMString encoding) What do you think? -Ryan ----------------------------------------------------------- You are currently subscribed to public_webgl...@ To unsubscribe, send an email to majordomo...@ with the following command in the body of your email: unsubscribe public_webgl ----------------------------------------------------------- From jos...@ Mon Jul 11 10:06:34 2011 From: jos...@ (Joshua Bell) Date: Mon, 11 Jul 2011 10:06:34 -0700 Subject: [Public WebGL] Typed array specification comments In-Reply-To: References: Message-ID: On Sat, Jul 9, 2011 at 2:32 PM, Ryan Ackley wrote: > Hi, this doesn't seem like the right list to me but this is where the > specification said to leave comments so I apologize in advance if I'm > in the wrong place. > You're in the right place. > I'm currently using the Typed Array implementation in Chrome to read a > binary file format. One thing I've found to be sorely lacking is > String handling. The ability to read and write Strings using different > encodings is a necessity. Often, with binary data, string will be > intermingled with number types. What I would love to have in DataView > are two additional methods > > DOMString getString(unsigned long byteOffset, optional DOMString encoding) > void setString(unsigned long byteOffset, DOMString value, optional > DOMString encoding) > I promised Ken Russell to spec up an extension of this sort for Typed Arrays... but my personal and professional time has been crunched. Hope to be able to get to it in the next couple of months if no-one with more time beats me to it (hint hint). Previous discussions: https://www.khronos.org/webgl/public-mailing-list/archives/1006/msg00191.html https://www.khronos.org/webgl/public-mailing-list/archives/1102/msg00145.html If you need it, there is some code in http://hg.secondlife.com/llsd/src/tip/js/llsd.js which reads and writes UTF-8 strings from DataViews - search on "UTF-8" and then for callers/callees. (It's in the middle of a binary file serializer/parser so most of the code won't be relevant.) It turns out there's a lovely trick for UTF-8/UTF-16 transcoding using browser built-ins - see http://ecmanaut.blogspot.com/2006/07/encoding-decoding-utf8-in-javascript.html -- Josh -------------- next part -------------- An HTML attachment was scrubbed... URL: From kbr...@ Mon Jul 11 10:55:27 2011 From: kbr...@ (Kenneth Russell) Date: Mon, 11 Jul 2011 17:55:27 +0000 Subject: [Public WebGL] WebGL rendering text and other basic objects In-Reply-To: References: Message-ID: Please use http://groups.google.com/group/webgl-dev-list for questions about developing with WebGL. This list is used to discuss the WebGL specification and implementations. -Ken On Sat, Jul 9, 2011 at 9:00 PM, ??? wrote: > > Hi, I am programming a tree-ring view for information visualization. > First, I have drawn many ring sectors. Each sector are formed by > triangles. They are drawn in 2D, with all vertices' Z coordinates > equal to constant value. Each sector has a uniform color, maybe > different from other sectors. All sectors are rendered in the same > unique canvas. > The vertex shader is? > > vColor = aVertexColor; > > Then, I want to render some text on each sector, which is the label of > the sector. I have learnt how to render text through the link: > > http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=283502 > > but, I saw that it need to change the fragment shader to: > > gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.s, vTextureCoord.t)); > > So, if I change to this shader, I may can not render the original > shader to a unique color, since text render need texture to assign > color. > Can I write two shaders, one for render the sectors, the other for > render the texts. > Do I need two canvas to do this? If so, does one canvas will hide the other one? > > Thanks, > Yubao Wu > > ----------------------------------------------------------- > You are currently subscribed to public_webgl...@ > To unsubscribe, send an email to majordomo...@ with > the following command in the body of your email: > unsubscribe public_webgl > ----------------------------------------------------------- > > ----------------------------------------------------------- You are currently subscribed to public_webgl...@ To unsubscribe, send an email to majordomo...@ with the following command in the body of your email: unsubscribe public_webgl ----------------------------------------------------------- From kbr...@ Wed Jul 13 11:43:27 2011 From: kbr...@ (Kenneth Russell) Date: Wed, 13 Jul 2011 11:43:27 -0700 Subject: [Public WebGL] Call for Speakers: WebGL BOF at SIGGRAPH 2011 Message-ID: At SIGGRAPH 2011 there will be a two-hour Birds of a Feather session on WebGL, on Wednesday, August 10 from 10 AM to 12 PM. Like last year, we'd really like to have input from the WebGL community. If you are developing using WebGL, for example building one of the many WebGL libraries, an application, or cool demos, and would like to share your experience, please send me a private email. We're aiming for 15-minute time slots to have the chance to cover a variety of material. Presentations including demos will be strongly favored. :) (From a logistical standpoint, we may not have an Internet connection in the room, so you'd need to be prepared to run your demo locally. Yes, this is lame, especially for a Web technology, and we're trying to fix it.) Thanks, -Ken ----------------------------------------------------------- You are currently subscribed to public_webgl...@ To unsubscribe, send an email to majordomo...@ with the following command in the body of your email: unsubscribe public_webgl ----------------------------------------------------------- From pjc...@ Fri Jul 29 15:42:42 2011 From: pjc...@ (Patrick Cozzi) Date: Fri, 29 Jul 2011 18:42:42 -0400 Subject: [Public WebGL] Call for WebGL Articles Message-ID: Hi all, Christophe Riccio and I are putting together a book titled OpenGL Insights, which we plan to be 1/3 WebGL. This is a contributor-based book, like the Game Programming Gems series, on real-world WebGL/OpenGL/GL ES techniques. If you have an idea for a WebGL-related article you would like to contribute, please email us at editors...@ This is a great opportunity to get even more momentum behind WebGL, and get your name and ideas out there. Any topic related to WebGL is fair-game, e.g., web browser implementation details, differences between desktop OpenGL and WebGL, etc. This section of the book is particularly important to me since I have switched from C++/OpenGL to JavaScript/WebGL full-time over the past several months. Proposals are due August 15th. Full proposal details are at http://www.openglinsights.com/. Feel free to reply to this thread for general discussion, but please send proposals directly to us at editors...@ Regards, Patrick http://www.seas.upenn.edu/~pcozzi/ -------------- next part -------------- An HTML attachment was scrubbed... URL: