Sunset Lake Software - Comments for "Enhancing Molecules using OpenGL ES 2.0" http://www.sunsetlakesoftware.com/2011/05/08/enhancing-molecules-using-opengl-es-20 Comments for "Enhancing Molecules using OpenGL ES 2.0" en Hello, the simplified http://www.sunsetlakesoftware.com/2011/05/08/enhancing-molecules-using-opengl-es-20#comment-1878 <p>Hello,</p> <p>the simplified versions of the sphere shaders were of a great use to me, I learned a lot from them. Do you have non-optimized shaders for the bonds (cylinders) as well?</p> <p>Cheers</p> pubDate Thu, 29 Aug 2013 13:29:20 +0000 dc:creator Emvy guid false comment 1878 at http://www.sunsetlakesoftware.com Great work. I will pass this http://www.sunsetlakesoftware.com/2011/05/08/enhancing-molecules-using-opengl-es-20#comment-1149 <p>Great work. I will pass this along to a few bio-chem types I know.</p> <p>I am particularly intrigued by the performance on my 4S and the IPAD2. How are the molecule spatial relationships and stciks defined? Is it possible to create an object, coordiante and relationship matrix to feed Open GL?</p> <p>I would love this for representing a 3D relationship between conceptual objects in systems engineering.</p> <p>ANy possibility of associating the each sphere or objects with information that can be summoned by touch within the view?</p> pubDate Tue, 10 Jan 2012 03:40:59 +0000 dc:creator David Deupree guid false comment 1149 at http://www.sunsetlakesoftware.com OpenGL ES 2.0 can be used to http://www.sunsetlakesoftware.com/2011/05/08/enhancing-molecules-using-opengl-es-20#comment-1117 <p>OpenGL ES 2.0 can be used to display pretty much anything, with the right code. It's a very flexible rendering API.</p> <p>If you're asking whether the code used for this application could be used to render arbitrary 3-D models, no it can't. As I describe above, I use some tricks to fool the eye when rendering spheres and cylinders so that they appear to be perfectly smooth shapes. These are the only classes of objects that this can draw. More generic model loading functionality will require a completely different approach.</p> pubDate Fri, 04 Nov 2011 20:19:41 +0000 dc:creator Brad Larson guid false comment 1117 at http://www.sunsetlakesoftware.com I am by no means a http://www.sunsetlakesoftware.com/2011/05/08/enhancing-molecules-using-opengl-es-20#comment-1116 <p>I am by no means a programmer, but am intrigued by your using of OpenGL2. Do you think it could be applied to displaying 3D solid models of tooling?</p> pubDate Fri, 04 Nov 2011 20:01:53 +0000 dc:creator Tim Madel guid false comment 1116 at http://www.sunsetlakesoftware.com All code that I used for this http://www.sunsetlakesoftware.com/2011/05/08/enhancing-molecules-using-opengl-es-20#comment-1094 <p>All code that I used for this application is available on the <a href="http://www.sunsetlakesoftware.com/molecules" rel="nofollow">main Molecules page</a>. This page has the latest version of the application, which includes the OpenGL ES 2.0 rendering engine as used by the version on the App Store.</p> pubDate Tue, 04 Oct 2011 14:05:51 +0000 dc:creator Brad Larson guid false comment 1094 at http://www.sunsetlakesoftware.com Do you intend to open source http://www.sunsetlakesoftware.com/2011/05/08/enhancing-molecules-using-opengl-es-20#comment-1093 <p>Do you intend to open source the OpenGL 2.0 code as well?</p> pubDate Tue, 04 Oct 2011 05:37:27 +0000 dc:creator Alfonso Urdaneta guid false comment 1093 at http://www.sunsetlakesoftware.com This was how I initially http://www.sunsetlakesoftware.com/2011/05/08/enhancing-molecules-using-opengl-es-20#comment-1087 <p>This was how I initially attempted to encode color, but it presents a problem. For my depth buffer, I will have certain fragments that will be covered by multiple objects. Each of these objects will render a color to that fragment, and the order in which they render is not guaranteed. Therefore, an object closer to the viewer could render before one further away, and the far object would overwrite the depth color from the near one.</p> <p>I use a minimum value blending mode for the depth buffer, which only stores the minimum value for each color component (red, green, blue). I then use this sort of "bucket-based" color encoding, where one color is filled up first, then the next, then the next. This guarantees that when I get the minimum (closer to the viewer) for each individual color component, the total value will always be the correct minimum.</p> <p>For one of the higher-precision encoding methods, simply taking the minimum for each color component breaks down in certain cases (think of a per-digit comparison of 110 vs. 085). I couldn't think of an easy way to support multiple writes to the same fragment, yet preserve the higher precision of the other encodings.</p> pubDate Sun, 25 Sep 2011 15:07:08 +0000 dc:creator Brad Larson guid false comment 1087 at http://www.sunsetlakesoftware.com You should be able to get http://www.sunsetlakesoftware.com/2011/05/08/enhancing-molecules-using-opengl-es-20#comment-1086 <p>You should be able to get much better than 768 levels of depth for pretty much the same cost using the technique in Aras's other article <a href="http://aras-p.info/blog/2008/06/20/encoding-floats-to-rgba-again/" title="http://aras-p.info/blog/2008/06/20/encoding-floats-to-rgba-again/" rel="nofollow">http://aras-p.info/blog/2008/06/20/encoding-floats-to-rgba-again/</a></p> pubDate Sun, 25 Sep 2011 04:15:53 +0000 dc:creator corysama guid false comment 1086 at http://www.sunsetlakesoftware.com Using some significant http://www.sunsetlakesoftware.com/2011/05/08/enhancing-molecules-using-opengl-es-20#comment-1010 <p>Using some significant optimizations, I have now been able to get the new rendering engine running almost as smoothly as the old one did on the iPad 1. Version 2.02, which is <a href="http://www.sunsetlakesoftware.com/2011/06/02/molecules-202-now-app-store" rel="nofollow">now live on the App Store</a> should hopefully address the complaints that people have had about the application's rendering speed.</p> <p>As promised, 2.0 was the slowest the application will ever be.</p> pubDate Fri, 03 Jun 2011 03:52:13 +0000 dc:creator Brad Larson guid false comment 1010 at http://www.sunsetlakesoftware.com Thanks for the confirmation - http://www.sunsetlakesoftware.com/2011/05/08/enhancing-molecules-using-opengl-es-20#comment-1007 <p>Thanks for the confirmation - those figures by Marco are pretty conclusive. I'd better get going with shaders then!</p> pubDate Mon, 30 May 2011 14:00:30 +0000 dc:creator Sergio guid false comment 1007 at http://www.sunsetlakesoftware.com