Low Level WebGL Library

222 views
Skip to first unread message

Owen Densmore

unread,
Jul 17, 2013, 1:34:43 PM7/17/13
to webgl-d...@googlegroups.com
I took Ed Angle's UNM Computer Graphics course, and introduced the idea of using webGL for our homework:
The next version of his book will be webGL based!

Basic matrix libraries were available and quite good.  But basic webGL "plumbing libraries were not.  As far as I could see, most were for games and scene graphs.  I want something MUCH lower level.

Its a bit hard to articulate, but basically I want a "workflow" which stitches together the webGL primitives, and avoids the evil Black Screen Of Death whenever I get some sequence of operations wrong.

I want help with coordinating multiple program objects with multiple shader pairs, but possibly shaders shared amongst the program objects.  I want help managing the attribute buffers for these programs, again with a sort of plug-n-play with the buffers and the program objects.  I want the program objects to manage their bufers and variables .. uniforms and their binding.  TypedArrays help possibly, but they seem easy enough on their own.  Possibly help with optimal packing of multiple attributes in a single TA?

I would like a bit of help too with some very basic but complicated webGL stunts like double-framebuffers, and reasonable GPU storage of shapes/textures that are often used but uploaded once only.  I guess this means handling element arrays which refer to static vertex meshes.  These could really just be "best practices", shader snippets rather than complete shaders. 

I think you get the idea.  NOT three.js or any of those, I want to be light weight and close to webGL itself.  But just "protected" from the BSOD.  Debugging would be cool, I've used webgl-debug.js with success.  Shader simulators would sure be nice!

Any pointers?  Please!

   -- Owen

Tony Parisi

unread,
Jul 19, 2013, 11:04:08 PM7/19/13
to webgl-d...@googlegroups.com
Try this - Gregg Tavares' low-level WebGL helper library

https://github.com/greggman/tdl





   -- Owen

--
You received this message because you are subscribed to the Google Groups "WebGL Dev List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webgl-dev-lis...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Tony Parisi                             tpa...@gmail.com
CTO at Large                         415.902.8002
Skype                                     auradeluxe
Follow me on Twitter!             http://twitter.com/auradeluxe
Read my blog at                     http://www.tonyparisi.com/
Learn WebGL                         http://learningwebgl.com/

nobbis

unread,
Jul 21, 2013, 4:48:29 PM7/21/13
to webgl-d...@googlegroups.com

View the source of the examples at the bottom of that page to get an idea.

Owen Densmore

unread,
Jul 6, 2014, 6:27:08 PM7/6/14
to webgl-d...@googlegroups.com
Shameless bump!  Is there any more activity in the low level webgl library world?  I.e. help with multiple program objects with multiple shaders and various attribute arrays and uniforms? And possibly some low level help on the GPU side such as double buffering and textures.

Two libraries were suggested before:

Good documentation might be just as useful and I'll roll my own.

Thanks!

   -- Owen

Owen Densmore

unread,
Jul 6, 2014, 6:35:11 PM7/6/14
to webgl-d...@googlegroups.com
Oops, forgot another promising library:

   -- Owen
Reply all
Reply to author
Forward
0 new messages