You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by lizhi <sl...@qq.com> on 2015/11/05 07:50:55 UTC
a stage3d api with flexjs
https://github.com/matrix3d/FlashShader/blob/master/flexjs5/src/TestStage3D.as
http://matrix3d.github.io/assets/html5/flexjswebgl
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-flexjs-tp49827.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: a stage3d api with flexjs
Posted by lizhi <sl...@qq.com>.
pls look at https://github.com/matrix3d/FlashShader/tree/master/flexjs5
just ant the build.xml
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-flexjs-tp49827p50299.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: a stage3d api with flexjs
Posted by lizhi <sl...@qq.com>.
i find the error.and i made the release work now.
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-flexjs-tp49827p50300.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: a stage3d api with flexjs
Posted by Alex Harui <ah...@adobe.com>.
On 11/25/15, 6:46 PM, "lizhi" <sl...@qq.com> wrote:
>the vertor is work.and js-debug,work.but js-release not work
>
Hi Lizhi,
There can be many reasons that js-release does not work. If you make a
small test case does it still not work? What if you then replace Vector
in that small test case with Array?
If you have a small test case, I will look into it.
Thanks,
-Alex
Re: a stage3d api with flexjs
Posted by lizhi <sl...@qq.com>.
the vertor is work.and js-debug,work.but js-release not work
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-flexjs-tp49827p50297.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: a stage3d api with flexjs
Posted by Alex Harui <ah...@adobe.com>.
On 11/25/15, 12:05 AM, "lizhi" <sl...@qq.com> wrote:
>yes,donate is ok.but it not comp,it wait the vector,bcs,a lot of 3d api
>use
>the vector not array
Hi Lizhi,
When was the last time you tried Vector? I did put a change in to handle
the Vector function. There might be other problems though. The vector
function code should be in the 0.5.0 release.
-Alex
Re: a stage3d api with flexjs
Posted by lizhi <sl...@qq.com>.
yes,donate is ok.but it not comp,it wait the vector,bcs,a lot of 3d api use
the vector not array
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-flexjs-tp49827p50293.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: a stage3d api with flexjs
Posted by Alex Harui <ah...@adobe.com>.
Those who are interested in creating a library that runs on Stage3D for
SWF and WebGL in the browser are more than welcome to work on it. Lizhi,
would you be willing to donate your effort to the Apache Software
Foundation so we can share your work in our FlexJS repos?
Personally, I probably won't spend too much time on such a library in the
near future because I am focused more on business applications which
generally don't need 3D rendering. Hopefully other folks will work on
Stage3D/WebGL. I know folks claim that Starling and Feathers UI were
faster than Spark, but I haven't seen scientific evidence that it was
because Stage3D renders faster that display list. It could just be that
more AS code was running in Spark than in the Starling/Feathers framework.
The FlexJS default UI widgets are much lighter weight than the Spark and
MX components. Also, there are some features like accessibility that are
built-in to both Flash and the browser that would need implementations in
Stage3D and WebGL in order to be able to create UIs that are fully
compliant with many government and corporate mandates for fully accessible
UIs and I feel like I can get there faster by relying on DisplayObject and
the HTML DOM.
Fundamentally, I want FlexJS to be able to handle any library that
operates under the same principles of abstraction and substitution. There
should be no one single library to do anything in FlexJS. We want the
tools to support a variety of libraries so developers can choose.
-Alex
On 11/20/15, 6:37 AM, "Dev LFM" <de...@gmail.com> wrote:
>For me the whole point is that flashplayer renders the same in all
>platforms (mobile/web/desk) and that's the beauty for me.. I'm not gonna
>go
>deep on A vs B or A over B, I just wish there was a good solution for
>"avoid" flash player but keep code base.. That's why I thought that using
>stage3d as 2d (like starling) would be a solution for this problem, it
>would be easier to convert from stage3d to webgl, the work to be done is
>to
>mimic spark components, like Feathers did.
>
>There is already work done 2 years ago!
>http://renaun.com/blog/2013/09/cross-compiling-your-actionscript-starling-
>games-to-webgl-and-javascript/
>
>Regarding mobile would avoid installing adobe air (a lot of MB's on
>installer) and with cordova there would be a bridge for native
>capabilities.
>
>We could debug on flashplayer and deploy to html/js for
>web/mobile/desk/UWP
>
>At the end, flashplayer is like a html5 canvas with a framework behind
>rendering pixels..
>
>For me the real challenge is to create from the ground some kind of
>starling, or work over starling to implement know flex capabilities. But
>with flexjs we are doing the "same" amount of work creating components
>that
>can be transpiled to html/js.
>
>Does anyone agree?
>
>2015-11-06 2:10 GMT+00:00 lizhi <sl...@qq.com>:
>
>> it can run foxfire,and my iphone5s.
>>
>>
>>
>> --
>> View this message in context:
>>
>>http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-f
>>lexjs-tp49827p49855.html
>> Sent from the Apache Flex Development mailing list archive at
>>Nabble.com.
>>
Re: a stage3d api with flexjs
Posted by Dev LFM <de...@gmail.com>.
For me the whole point is that flashplayer renders the same in all
platforms (mobile/web/desk) and that's the beauty for me.. I'm not gonna go
deep on A vs B or A over B, I just wish there was a good solution for
"avoid" flash player but keep code base.. That's why I thought that using
stage3d as 2d (like starling) would be a solution for this problem, it
would be easier to convert from stage3d to webgl, the work to be done is to
mimic spark components, like Feathers did.
There is already work done 2 years ago!
http://renaun.com/blog/2013/09/cross-compiling-your-actionscript-starling-games-to-webgl-and-javascript/
Regarding mobile would avoid installing adobe air (a lot of MB's on
installer) and with cordova there would be a bridge for native capabilities.
We could debug on flashplayer and deploy to html/js for web/mobile/desk/UWP
At the end, flashplayer is like a html5 canvas with a framework behind
rendering pixels..
For me the real challenge is to create from the ground some kind of
starling, or work over starling to implement know flex capabilities. But
with flexjs we are doing the "same" amount of work creating components that
can be transpiled to html/js.
Does anyone agree?
2015-11-06 2:10 GMT+00:00 lizhi <sl...@qq.com>:
> it can run foxfire,and my iphone5s.
>
>
>
> --
> View this message in context:
> http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-flexjs-tp49827p49855.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
Re: a stage3d api with flexjs
Posted by lizhi <sl...@qq.com>.
it can run foxfire,and my iphone5s.
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-flexjs-tp49827p49855.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: a stage3d api with flexjs
Posted by Dev LFM <de...@gmail.com>.
Oh yeah... sure I do remember! and I don't wanna go back EVER..
I really thought webgl would output same results across all platforms (even
mobile).. now I'm sad :(
2015-11-05 12:52 GMT+00:00 Carlos Rovira <ca...@codeoscopic.com>:
> remember, remember the fifth of november :)
>
> Nobody remember why we all switch to Flash Player about a decade ago?
>
> Yes, you know it...it was mainly a question about "browser fragmentation"
>
> ;)
>
>
> 2015-11-05 12:27 GMT+01:00 Dev LFM <de...@gmail.com>:
>
> > Oh no.. the cross-browsing nightmare again! :'(
> >
> > fallback to canvas?
> >
> > 2015-11-05 10:59 GMT+00:00 Harbs <ha...@gmail.com>:
> >
> > > While webgl is really cool, getting rendering consistent between
> browsers
> > > is really challenging to say the least. This example renders very
> nicely
> > in
> > > Chrome, but Firefox messes up the display (both of the colors and the
> > > rotation), and Safari would not even load it at all.
> > >
> > > I think it would be really great to have a webgl output option, but I
> > > don’t think all efforts should go that way. Most web apps do not have
> > > enough complex rendering to require webgl. Classic DOM still makes a
> lot
> > of
> > > sense in a lot of cases.
> > >
> > > Harbs
> > >
> > > On Nov 5, 2015, at 12:47 PM, Dev LFM <de...@gmail.com> wrote:
> > >
> > > > I really think this is the way to go.. all efforts should be on
> > > converting
> > > > displayobjects architecture (like starling did) to stage3d (I think
> > they
> > > > gave it to away3d), and then yes like this matrix3d to flexjs/webgl.
> > Then
> > > > we could all work on top of Feathers to improve even more, because
> > > > stage3d/webgl is the most "native feeling" you can get.
> > > >
> > > > Does anyone knows what away3d did with the starling port?
> > > >
> > > > Well done lizhi +1
> > > >
> > > > 2015-11-05 8:24 GMT+00:00 Harbs <ha...@gmail.com>:
> > > >
> > > >> Very nice!
> > > >>
> > > >> On Nov 5, 2015, at 8:50 AM, lizhi <sl...@qq.com> wrote:
> > > >>
> > > >>>
> > > >>
> > >
> >
> https://github.com/matrix3d/FlashShader/blob/master/flexjs5/src/TestStage3D.as
> > > >>>
> > > >>> http://matrix3d.github.io/assets/html5/flexjswebgl
> > > >>>
> > > >>>
> > > >>>
> > > >>> --
> > > >>> View this message in context:
> > > >>
> > >
> >
> http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-flexjs-tp49827.html
> > > >>> Sent from the Apache Flex Development mailing list archive at
> > > Nabble.com.
> > > >>
> > > >>
> > >
> > >
> >
>
>
>
> --
>
> Carlos Rovira
> Director General
> M: +34 607 22 60 05
> http://www.codeoscopic.com
> http://www.avant2.es
>
>
> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> información privilegiada o confidencial. Si ha recibido este mensaje por
> error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> proceda a su destrucción.
>
> De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> servicio o información solicitados, teniendo usted derecho de acceso,
> rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
> oficinas c/ Tres Creus, nº 104, 2-1, 08202 de Sabadell (Barcelona) con la
> documentación necesaria.
>
Re: a stage3d api with flexjs
Posted by Carlos Rovira <ca...@codeoscopic.com>.
remember, remember the fifth of november :)
Nobody remember why we all switch to Flash Player about a decade ago?
Yes, you know it...it was mainly a question about "browser fragmentation"
;)
2015-11-05 12:27 GMT+01:00 Dev LFM <de...@gmail.com>:
> Oh no.. the cross-browsing nightmare again! :'(
>
> fallback to canvas?
>
> 2015-11-05 10:59 GMT+00:00 Harbs <ha...@gmail.com>:
>
> > While webgl is really cool, getting rendering consistent between browsers
> > is really challenging to say the least. This example renders very nicely
> in
> > Chrome, but Firefox messes up the display (both of the colors and the
> > rotation), and Safari would not even load it at all.
> >
> > I think it would be really great to have a webgl output option, but I
> > don’t think all efforts should go that way. Most web apps do not have
> > enough complex rendering to require webgl. Classic DOM still makes a lot
> of
> > sense in a lot of cases.
> >
> > Harbs
> >
> > On Nov 5, 2015, at 12:47 PM, Dev LFM <de...@gmail.com> wrote:
> >
> > > I really think this is the way to go.. all efforts should be on
> > converting
> > > displayobjects architecture (like starling did) to stage3d (I think
> they
> > > gave it to away3d), and then yes like this matrix3d to flexjs/webgl.
> Then
> > > we could all work on top of Feathers to improve even more, because
> > > stage3d/webgl is the most "native feeling" you can get.
> > >
> > > Does anyone knows what away3d did with the starling port?
> > >
> > > Well done lizhi +1
> > >
> > > 2015-11-05 8:24 GMT+00:00 Harbs <ha...@gmail.com>:
> > >
> > >> Very nice!
> > >>
> > >> On Nov 5, 2015, at 8:50 AM, lizhi <sl...@qq.com> wrote:
> > >>
> > >>>
> > >>
> >
> https://github.com/matrix3d/FlashShader/blob/master/flexjs5/src/TestStage3D.as
> > >>>
> > >>> http://matrix3d.github.io/assets/html5/flexjswebgl
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> View this message in context:
> > >>
> >
> http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-flexjs-tp49827.html
> > >>> Sent from the Apache Flex Development mailing list archive at
> > Nabble.com.
> > >>
> > >>
> >
> >
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Tres Creus, nº 104, 2-1, 08202 de Sabadell (Barcelona) con la
documentación necesaria.
Re: a stage3d api with flexjs
Posted by Dev LFM <de...@gmail.com>.
Oh no.. the cross-browsing nightmare again! :'(
fallback to canvas?
2015-11-05 10:59 GMT+00:00 Harbs <ha...@gmail.com>:
> While webgl is really cool, getting rendering consistent between browsers
> is really challenging to say the least. This example renders very nicely in
> Chrome, but Firefox messes up the display (both of the colors and the
> rotation), and Safari would not even load it at all.
>
> I think it would be really great to have a webgl output option, but I
> don’t think all efforts should go that way. Most web apps do not have
> enough complex rendering to require webgl. Classic DOM still makes a lot of
> sense in a lot of cases.
>
> Harbs
>
> On Nov 5, 2015, at 12:47 PM, Dev LFM <de...@gmail.com> wrote:
>
> > I really think this is the way to go.. all efforts should be on
> converting
> > displayobjects architecture (like starling did) to stage3d (I think they
> > gave it to away3d), and then yes like this matrix3d to flexjs/webgl. Then
> > we could all work on top of Feathers to improve even more, because
> > stage3d/webgl is the most "native feeling" you can get.
> >
> > Does anyone knows what away3d did with the starling port?
> >
> > Well done lizhi +1
> >
> > 2015-11-05 8:24 GMT+00:00 Harbs <ha...@gmail.com>:
> >
> >> Very nice!
> >>
> >> On Nov 5, 2015, at 8:50 AM, lizhi <sl...@qq.com> wrote:
> >>
> >>>
> >>
> https://github.com/matrix3d/FlashShader/blob/master/flexjs5/src/TestStage3D.as
> >>>
> >>> http://matrix3d.github.io/assets/html5/flexjswebgl
> >>>
> >>>
> >>>
> >>> --
> >>> View this message in context:
> >>
> http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-flexjs-tp49827.html
> >>> Sent from the Apache Flex Development mailing list archive at
> Nabble.com.
> >>
> >>
>
>
Re: a stage3d api with flexjs
Posted by Harbs <ha...@gmail.com>.
While webgl is really cool, getting rendering consistent between browsers is really challenging to say the least. This example renders very nicely in Chrome, but Firefox messes up the display (both of the colors and the rotation), and Safari would not even load it at all.
I think it would be really great to have a webgl output option, but I don’t think all efforts should go that way. Most web apps do not have enough complex rendering to require webgl. Classic DOM still makes a lot of sense in a lot of cases.
Harbs
On Nov 5, 2015, at 12:47 PM, Dev LFM <de...@gmail.com> wrote:
> I really think this is the way to go.. all efforts should be on converting
> displayobjects architecture (like starling did) to stage3d (I think they
> gave it to away3d), and then yes like this matrix3d to flexjs/webgl. Then
> we could all work on top of Feathers to improve even more, because
> stage3d/webgl is the most "native feeling" you can get.
>
> Does anyone knows what away3d did with the starling port?
>
> Well done lizhi +1
>
> 2015-11-05 8:24 GMT+00:00 Harbs <ha...@gmail.com>:
>
>> Very nice!
>>
>> On Nov 5, 2015, at 8:50 AM, lizhi <sl...@qq.com> wrote:
>>
>>>
>> https://github.com/matrix3d/FlashShader/blob/master/flexjs5/src/TestStage3D.as
>>>
>>> http://matrix3d.github.io/assets/html5/flexjswebgl
>>>
>>>
>>>
>>> --
>>> View this message in context:
>> http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-flexjs-tp49827.html
>>> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>>
>>
Re: a stage3d api with flexjs
Posted by Dev LFM <de...@gmail.com>.
I really think this is the way to go.. all efforts should be on converting
displayobjects architecture (like starling did) to stage3d (I think they
gave it to away3d), and then yes like this matrix3d to flexjs/webgl. Then
we could all work on top of Feathers to improve even more, because
stage3d/webgl is the most "native feeling" you can get.
Does anyone knows what away3d did with the starling port?
Well done lizhi +1
2015-11-05 8:24 GMT+00:00 Harbs <ha...@gmail.com>:
> Very nice!
>
> On Nov 5, 2015, at 8:50 AM, lizhi <sl...@qq.com> wrote:
>
> >
> https://github.com/matrix3d/FlashShader/blob/master/flexjs5/src/TestStage3D.as
> >
> > http://matrix3d.github.io/assets/html5/flexjswebgl
> >
> >
> >
> > --
> > View this message in context:
> http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-flexjs-tp49827.html
> > Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>
Re: a stage3d api with flexjs
Posted by Harbs <ha...@gmail.com>.
Very nice!
On Nov 5, 2015, at 8:50 AM, lizhi <sl...@qq.com> wrote:
> https://github.com/matrix3d/FlashShader/blob/master/flexjs5/src/TestStage3D.as
>
> http://matrix3d.github.io/assets/html5/flexjswebgl
>
>
>
> --
> View this message in context: http://apache-flex-development.2333347.n4.nabble.com/a-stage3d-api-with-flexjs-tp49827.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.