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

Re: [Public WebGL] Matrix objects in JavaScript

Btw, am working on Typecast v0.2 ; hope to release in the next few weeks.

We will be adding a Vector Type to the library, so this conversation has been very helpful. Thanks!

Please do let us know what you would want from a Vector/Matrix object type!


On Thu, Mar 21, 2013 at 10:47 AM, Benoit Jacob <bjacob@mozilla.com> wrote:
That would only help if it's implemented directly in the JS engine like Typed Arrays are. Otherwise the cost of a DOM API call would dominate.


On 13-03-21 11:21 AM, Florian Bösch wrote:
What would really help where some helper functions in native code/SIMD/platform optimized that perform basic matrix operations like inverse, transpose, multiply, determinant etc. from array buffer to array buffer/view.

On Thu, Mar 21, 2013 at 3:58 PM, Benoit Jacob <bjacob@mozilla.com> wrote:
I have been arguing on public-fx that we are better off without a browser-supported matrix library because this is best done in JS both from the perspective of performance (giving it a bit of time for JS toolchains to solve roadblocks) and from the perspective of flexibility and not blessing an arbitrary choice of matrix library over other ones (and a poor one at that).


On 13-03-21 07:04 AM, Si Robertson wrote:
I have to say I can not think of any reason for native matrix objects to be implemented by browser vendors unless those objects (a) provide a significant performance gain over custom code, and (b) are compatible with WebGL.

Matrix operations that work on typed arrays are very fast already if the code is optimised, and it is relatively easily to avoid creating new type arrays when needed.

On 21 March 2013 10:24, Florian Bösch <pyalot@gmail.com> wrote:
On Thu, Mar 21, 2013 at 11:19 AM, Kirill Prazdnikov <kirill.prazdnikov@jetbrains.com> wrote:
Will it be a helper library or part of WebGL API ?
Neither. It would be implemented in the browser, not related to WebGL, and in  my opinion, unusable for it.

Design After Next, design technology
>> http://www.designAfterNext.com