I looked at the source and it seems like the copyright is open
provided the copyright and permission notices are reproduced with the
code.
The packed version is only 8Kb not too bad, let's see if QC agrees…
On 09/02/2011, at 11:42 PM, Alex Drinkwater wrote:
You can't link to external JS libraries in QC, as far as I'm aware.
It would be quite cool if you could, actually. There's nothing
stopping you copy-pasting bits of code from libraries into a QC
JavaScript patch though (except possibly copyright concerns).
a|x
On 9 Feb 2011, at 11:11, Alastair Leith wrote:
I just brushed up my trig, maybe matrix maths will be next…
How does one use/install a JS library. I saw some JS coded matrix
functions once but these are genuine classes. If I install will it
work in QC. I guess if I want matrix maths I should go to GLSL but
my progress is slow with the CoreImage Filter so far.
On 09/02/2011, at 7:40 PM, Alex Drinkwater wrote:
Incidentally, there's a JavaScript library called Sylvester
http://sylvester.jcoglan.com/
that replicates many of the built-in OpenGL and GLSL matrix and
vector functions. You can poke around in the code and see how they
work.
alx
On 9 Feb 2011, at 07:22, Alastair Leith <[email protected]>
wrote:
would this JS function be correctly called Normalize or Clamp?
function Normalize (a)
{
b = Math.min (1, Math.max(0, a));
return b
}
Does normalizing typically map a whole (defined) range of values
to [0,1] or just Filter/Clamp values to [0,1]? I read the OpenGL
doc (GLSL-Land-spec-4.00.8) but I'm none the wiser.
best
alastair
The notion of looking on at life has always been hateful to me.
What am I if I am not a participant? In order to be, I must
participate.
Antoine de Saint-Exupery
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected]
)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/the_voder%40yahoo.co.uk
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [email protected]