On Sun, Jun 30, 2013 at 8:56 AM, Christopher Sean Morrison
<[email protected]> wrote:

> There's also WebGLU.  System GLU has limited support for visualizing trimmed 
> NURBS.

I read about WebGLU from GitHub. It has ready made modules available
to reuse and many other things are automated such as 'setting up any
projection/modelview uniforms' and 'automatically creates
array/element buffers as necessary and binds them as needed during
rendering' [0].

It also offers support for animation and partial .obj parser
implemented to load objects. However, the developers didn't specify
the support for visualizing trimmed NURBS.

I also reviewed glMatrix library. Developers claimed it as very fast
library. Found good tutorials
(http://learningwebgl.com/blog/?page_id=1217) & documentation and user
review. But even they didn't mentioned anything anywhere relating to
support neither trimmed NURBS nor OBJ files.

> You could also directly convert NURBS to Bezier surface patches, which you'll 
> find a lot more support for:

Not getting you here.
>
> http://www.ibiblio.org/e-notes/Splines/Intro.htm

Above link uses CanvasMatrix.js, a javascript matrix library. It is
offered by Apple Inc. here is its source code:
http://www.ibiblio.org/e-notes/webgl/CanvasMatrix.src.js. I read the
conditions of its use and seems favorable but senior developers must
have a look. I didn't found anything related to this library except
this single source file.

> They almost certainly do not support NURBS OBJ files.  Rhino3D is one of the 
> few tools I know of that implements support for NURBS OBJ files.

Rhino3D has proprietary license, hence is out of the race.

Also found a performance benchmarks of various matrix libraries on
different features. However not sure about validity of results, but
from the results I concluded that CanvasMatrix.js is only suitable for
matrix transpose operations and glMatrix is better than
CanvasMatrix.js but the benchmark does not included WebGLU. [1]

I also asked for the same on webGL IRC, and they said "matrix libs
just do matrix stuff, wouldn'te xpect them to have nurbs or obj
support. they all do pretty much the same things, so any should work
(probably want one that is at least a bit optimized though, which
might exclude at least sylvester)".

If we compare WebGLU and glMatrix both looks promising -- tutorials of
glMatrix are available (easy to implement) and is faster, WebGLU has
above mentioned features.

[0] https://github.com/OneGeek/WebGLU
[1] http://stepheneb.github.io/webgl-matrix-benchmarks/matrix_benchmark.html
--
Harmanpreet Singh
Blog: http://singhharman.wordpress.com/

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to