[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] WebKitCSSMatrix and WebGL
On 12/09/2010 08:48 AM, Chris Marrin wrote:
> On Dec 8, 2010, at 6:13 PM, stephen white wrote:
>> On 08/12/2010, at 3:45 AM, Chris Marrin wrote:
>>> I've opened a bug for it, if you want to track it: https://bugs.webkit.org/show_bug.cgi?id=50633
>> Is there any possibility of popping in a few more mathematically common and intensive functions like intersections? I'm not asking for a complete 3D engine as a library, only for a few functions that are very nearly as common as multiply, dot and cross. :)
> What do you mean by intersections? Do you mean things like intersection of a line with a plane or 2 planes. There are many such functions. But they're not Matrix functions. You want to have a complete set of primitives: points, lines, planes, view volumes, etc.
> The goal of CSSMatrix is to do the most common compute intensive operations. Matrix multiply and inverse are certainly at the top of that list. What other specific functions om Matrix do you think we need?
Matrix to and from Euler angles and to and from Quaternions?
It would be nice to have a function that would transform an entire
Float32Array of vec2/vec3/vec4 data though a 4x4 matrix in a single
call...either "in place" or from one array to another. Something like
that would REALLY earn it's keep in performance terms.
If you really wanted to go further into intersections and stuff - it
would be better to find an existing Open-Sourced C++ library (there are
dozens of them out there) and either port the code or wrap it.
You are currently subscribed to firstname.lastname@example.org.
To unsubscribe, send an email to email@example.com with
the following command in the body of your email: