HxSL: How to create a new Matrix

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

HxSL: How to create a new Matrix

Cauê W.
Hey guys,
Does anybody know how to create a new Matrix in HxSL?

I've tried [ [1,0,0,0], [0,1,0,0], [0,0,1,0], [0,0,0,1] ],

var id : Matrix;
id[0] = [1, 0, 0, 0];
id[1] = [0, 1, 0, 0];
id[2] = [0, 0, 1, 0];
id[3] = [0, 0, 0, 1];

and some other ways, but nothing works.

Thanks!
Cauê

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: HxSL: How to create a new Matrix

Cauê W.
Also why in the docs it says that get() expects a Float4 as the uv? 

2011/11/29 Cauê Waneck <[hidden email]>
Hey guys,
Does anybody know how to create a new Matrix in HxSL?

I've tried [ [1,0,0,0], [0,1,0,0], [0,0,1,0], [0,0,0,1] ],

var id : Matrix;
id[0] = [1, 0, 0, 0];
id[1] = [0, 1, 0, 0];
id[2] = [0, 0, 1, 0];
id[3] = [0, 0, 0, 1];

and some other ways, but nothing works.

Thanks!
Cauê


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: HxSL: How to create a new Matrix

Nicolas Cannasse
In reply to this post by Cauê W.
Le 30/11/2011 01:56, Cauê Waneck a écrit :

> Hey guys,
> Does anybody know how to create a new Matrix in HxSL?
>
> I've tried [ [1,0,0,0], [0,1,0,0], [0,0,1,0], [0,0,0,1] ],
>
> var id : Matrix;
> id[0] = [1, 0, 0, 0];
> id[1] = [0, 1, 0, 0];
> id[2] = [0, 0, 1, 0];
> id[3] = [0, 0, 0, 1];
>
> and some other ways, but nothing works.

That's currently not supported, you're welcome to provide a patch :)

http://code.google.com/p/hxformat/issues/detail?id=30

Best,
Nicolas


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: HxSL: How to create a new Matrix

Cauê W.
Thanks for your answer, Nicolas!

I'm still writing hxsl->glsl, I just wanted to add some more test "cases". I wouldn't know how to patch it for agal :)

But thanks !
Cauê

2011/11/30 Nicolas Cannasse <[hidden email]>
Le 30/11/2011 01:56, Cauê Waneck a écrit :

Hey guys,
Does anybody know how to create a new Matrix in HxSL?

I've tried [ [1,0,0,0], [0,1,0,0], [0,0,1,0], [0,0,0,1] ],

var id : Matrix;
id[0] = [1, 0, 0, 0];
id[1] = [0, 1, 0, 0];
id[2] = [0, 0, 1, 0];
id[3] = [0, 0, 0, 1];

and some other ways, but nothing works.

That's currently not supported, you're welcome to provide a patch :)

http://code.google.com/p/hxformat/issues/detail?id=30

Best,
Nicolas


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org