Pender Android for Phonegap Cordova

Discussion and feedback on Construct 2

Post » Wed Mar 20, 2013 4:08 pm

I'm testing on a HTC Thunderbolt running 2.3.4

I have these white bars, normal?

ArcadEd2013-03-20 16:09:03
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Wed Mar 20, 2013 4:09 pm

1. A unique thing about Pender is that it supports a DOM-less javascript environment. No html or css. So all render code has to go in it's own file

1.A the Pender-Cordova Plugin allows crosstalk between the Pender runtime and Cordova

1.B you may need to refactor your code slightly so all the canvas calls are in their own file, you can then send javascript messages to the renderer javascript from the cordova javascript

1.C check out the Pender.java file, that's the main entrypoint for the framework. You'll see in the constructor that it refences assets to load into the javascript framework

1.D check out assets/client/penderdemo.js to see the implementation of the demo. Note that all of the texture map image processing takes place on the javascript side, just like it would in a desktop html5 project. Note that this does not preclude Pender from providing helper functions in the future, which would be optimized and natively implemented

2. yessir! I wrote a Canvas Renderer for iOS, and I need to tie it in with the iOS Pender proof of concept here
https://github.com/lorinbeer/Pender-iOS-POC

3. no, you da man! Thanks for sticking it out!
B
4
Posts: 40
Reputation: 382

Post » Wed Mar 20, 2013 4:12 pm

[QUOTE=ArcadEd] I'm testing on a HTC Thunderbolt running 2.3.4

I have these white bars, normal?

[/QUOTE]

no, the white bars aren't normal :)

they don't appear on mine using the same project, could be more layout/android bs from eclipse

do they appear as you run pender, or just when you take a pic?
B
4
Posts: 40
Reputation: 382

Post » Wed Mar 20, 2013 4:14 pm

No, I see them when it runs. I was testing through eclipse. I did a build, gonna test again on my thunderbolt then on my nexus 7

Looks fine on my nexus 7ArcadEd2013-03-20 16:19:25
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Wed Mar 20, 2013 4:20 pm

deleteArcadEd2013-03-20 16:21:54
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Wed Mar 20, 2013 4:21 pm

[QUOTE=lorinbeer] 1. A unique thing about Pender is that it supports a DOM-less javascript environment. No html or css. So all render code has to go in it's own file

1.A the Pender-Cordova Plugin allows crosstalk between the Pender runtime and Cordova

1.B you may need to refactor your code slightly so all the canvas calls are in their own file, you can then send javascript messages to the renderer javascript from the cordova javascript

1.C check out the Pender.java file, that's the main entrypoint for the framework. You'll see in the constructor that it refences assets to load into the javascript framework

1.D check out assets/client/penderdemo.js to see the implementation of the demo. Note that all of the texture map image processing takes place on the javascript side, just like it would in a desktop html5 project. Note that this does not preclude Pender from providing helper functions in the future, which would be optimized and natively implemented

2. yessir! I wrote a Canvas Renderer for iOS, and I need to tie it in with the iOS Pender proof of concept here
https://github.com/lorinbeer/Pender-iOS-POC

3. no, you da man! Thanks for sticking it out![/QUOTE]

@Ashley
Have any thoughts on what LorinBeer mentioned just above? A lot of that is currently greek to me, but I'm willing to learn greek if I need too. Just thought it might make sense to you :).
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Wed Mar 20, 2013 4:21 pm

[QUOTE=ArcadEd] No, I see them when it runs. I was testing through eclipse. I did a build, gonna test again on my thunderbolt then on my nexus 7

Looks fine on my nexus 7[/QUOTE]

oooh! A device specific issue! I test on a Nexus 7 and Galaxy Nexus primarily. We'll have a closer look at this. Speculation says it's something to do with specific implementation of gl on the thunderbolt and how we update the canvas. Log an issue at github!


Given the pain you've experienced getting this up and running, I'm prioritizing two things today:

1. Windows build script
2. Precompiled Pender.jar, located here https://bitbucket.org/lorinbeer/pender/downloads

I've uploaded a preliminary pender jar, but it's compiled in debug mode, and has breakpoints in it (which means you need to continue a few times to get the app to run)

This should make including pender in a project a 2 or 3 step process, I'm updating my android sdk's at the moment, once that's done I can compile a release version of the librarylorinbeer2013-03-20 16:27:50
B
4
Posts: 40
Reputation: 382

Post » Wed Mar 20, 2013 4:35 pm

Awesome. Thank you.

Now use Construct 2 users just need to work through how to get our html5 project running using pender.

I'm a bit confused on this part. If I already have an entire project done in eclipse with phonegap, is that when I implement pender, or is it something that need to be done prior to creating the project in eclipse?

I guess that is my confusion now. I'll keep playing :).
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Wed Mar 20, 2013 4:38 pm

It's difficult for us to support DOM-less engine. We see DOM-less as a disadvantage, not an advantage, because we support so many features that happen in the browser layer such as WebGL, Web Audio API, WebSockets, etc. etc.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Wed Mar 20, 2013 4:46 pm

[QUOTE=ArcadEd] Awesome. Thank you.

Now use Construct 2 users just need to work through how to get our html5 project running using pender.

I'm a bit confused on this part. If I already have an entire project done in eclipse with phonegap, is that when I implement pender, or is it something that need to be done prior to creating the project in eclipse?

I guess that is my confusion now. I'll keep playing :).[/QUOTE]

For starters, you can include the PenderLibrary project or the Pender.jar in your eclipse project.

The Cordova-Pender Plugin will live here:
https://github.com/lorinbeer/cordova-pender-plugin

it includes the PenderCordova files, which I mistakenly pushed, and subsequently broke the build for you guys . The plugin allows crosstalk between Pender and Cordova, as well as layering the views so both are visible.

Getting Construct2 talking with Pender will require a little bit of investigation, but we should be able to figure it out in short order.
B
4
Posts: 40
Reputation: 382

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: 99Instances2Go, Artpunk and 12 guests