Graphics 2.0

Whats the plan for supporting the new Graphics 2.0 engine? Will we have to use v1 compatibility mode… in order to support CBEffects? And for how long before you release a version that works for both?

Cheers

I’ll start on the G2.0 version once it’s released for Starter users (like me). As it is, I can’t work on it because I don’t have the new API (Starter users’ll get the API, it seems, but not all of the new features).

If you want it before that, feel free to pitch in - the code’s open-source on GitHub :slight_smile:

  • Caleb

Ok… Due to *unexpected* circumstances, I now have a Pro account. I’ll start work on it ASAP :slight_smile:

  • C

Glad to hear it!!! :) I was about to suggest they should give you a free pro license… I hope the *unexpected* circumstances were something along those lines.

I tested an app I was working on recently… and it seems to work ok with graphicsCompatibility =  1 in the config… But I have ran into to issues with display groups scaling

See my post

http://forums.coronalabs.com/topic/40341-display-groups-coords-when-using-graphicscompatibility-1/

Just doing some more testing now… but hopefully Corona will confirm what the correct behavious should be for center of scale for groups… and objects

Cheers

Richie

I’ll start on the G2.0 version once it’s released for Starter users (like me). As it is, I can’t work on it because I don’t have the new API (Starter users’ll get the API, it seems, but not all of the new features).

If you want it before that, feel free to pitch in - the code’s open-source on GitHub :slight_smile:

  • Caleb

Ok… Due to *unexpected* circumstances, I now have a Pro account. I’ll start work on it ASAP :slight_smile:

  • C

Glad to hear it!!! :) I was about to suggest they should give you a free pro license… I hope the *unexpected* circumstances were something along those lines.

I tested an app I was working on recently… and it seems to work ok with graphicsCompatibility =  1 in the config… But I have ran into to issues with display groups scaling

See my post

http://forums.coronalabs.com/topic/40341-display-groups-coords-when-using-graphicscompatibility-1/

Just doing some more testing now… but hopefully Corona will confirm what the correct behavious should be for center of scale for groups… and objects

Cheers

Richie

The conversion to graphics 2.0 doesn’t seem to be too hard; the big thing will be converting the demo application, because it has a lot of “display.TopCenterReferencePoint” which are now deprecated.  That, and the colors shift to a 0.0-1.0 instead of 0-255. 

When converting my app though, I have run into the problem that my build function:

build=function() local size=math.random(display.contentWidth\*0.05, display.contentWidth\*0.1) -- Random sized particles return display.newImageRect("sparkle\_particle.png", size, size) end,

produces proper sized particles, but they are just rectangles; the image may as well not be there and it’d be the same result in graphics 1.0.

Any thoughts as to why this happens would be absolutely lovely.

The only things that need converting are the demo application (which I’m going to rewrite, by the way), the presets (which also need an overhaul), and CBEffects using setTextColor/setColor (probably not a pressing issue, though, because now all objects ought to use setFillColor).

I noticed the rectangle problem, too; I don’t know what’s happening with that (maybe a Corona issue?). I’ll look into it.

Sorry for not working on this much, but Dusk has been taking up all of my (already quite limited) time :wacko:. If you get anything done, feel free to do a pull request on the GitHub page.

  • Caleb

The conversion to graphics 2.0 doesn’t seem to be too hard; the big thing will be converting the demo application, because it has a lot of “display.TopCenterReferencePoint” which are now deprecated.  That, and the colors shift to a 0.0-1.0 instead of 0-255. 

When converting my app though, I have run into the problem that my build function:

build=function() local size=math.random(display.contentWidth\*0.05, display.contentWidth\*0.1) -- Random sized particles return display.newImageRect("sparkle\_particle.png", size, size) end,

produces proper sized particles, but they are just rectangles; the image may as well not be there and it’d be the same result in graphics 1.0.

Any thoughts as to why this happens would be absolutely lovely.

The only things that need converting are the demo application (which I’m going to rewrite, by the way), the presets (which also need an overhaul), and CBEffects using setTextColor/setColor (probably not a pressing issue, though, because now all objects ought to use setFillColor).

I noticed the rectangle problem, too; I don’t know what’s happening with that (maybe a Corona issue?). I’ll look into it.

Sorry for not working on this much, but Dusk has been taking up all of my (already quite limited) time :wacko:. If you get anything done, feel free to do a pull request on the GitHub page.

  • Caleb

Hello, Any news about G2 support?

I’m in the process of rewriting the engine. I’ve needed to do this for a while, because over time my coding style has changed and some of the stuff I do in it makes me cringe at my formatting or approach :slight_smile:

The new version will support G2.0. Also, it won’t take anywhere near as long as Dusk, so don’t worry :slight_smile: I estimate about 1-1.5 weeks, though that’s just an initial guess (could be more or less).

  • Caleb

Sounds great!

Thank you Caleb.

Can’t wait for the update!

Hi Caleb!

Any update for G2 support? 

Sorry, my estimate didn’t seem quite so close. The more I looked at the library, the more I noticed things that would need changing, until finally I just completely rewrote the library from scratch.

I’m about 70-80% done, though, and only have a couple of things left to do. Of the two, I think writing the sample app will take longer.

  • Caleb

Nice , ty Caleb.

Hello, Any news about G2 support?

I’m in the process of rewriting the engine. I’ve needed to do this for a while, because over time my coding style has changed and some of the stuff I do in it makes me cringe at my formatting or approach :slight_smile:

The new version will support G2.0. Also, it won’t take anywhere near as long as Dusk, so don’t worry :slight_smile: I estimate about 1-1.5 weeks, though that’s just an initial guess (could be more or less).

  • Caleb