HP TouchPad - screen is not centered and not full screen

Previous topic - Next topic

Millerszone

Continued from here:
http://www.glbasic.com/forum/index.php?topic=6683.msg53937#msg53937

The screen capture below is what the TouchPad looks like when I try to compile for WebOS at screen
size 320x480 and 768x1024, of coarse all of the buttons don't work since screen is not centered.
Sound did play.

So, next I downloaded "Hit the Deck Baseball" for the pre(320x480) from the App Catalog, everything worked o.k
but the the bat swing and ball moment was not as smooth as on the old palm pre.
Sound was o.k. Network also worked for the high scores.

I also tried adding "uiRevision": 2 to the appinfo.json file, but no difference to the graphics.
(The uiRevision key tells WebOS that your app is capable of running full-screen on a TouchPad,
avoiding the annoying phone emulator.)

So if I download an app from the App Store Catalog, the graphics are scaled and centered,
but if re-compile with GLBasic and install the ipk the screen is shown in the bottom left corner when screen
size is set to 320x480 or 768x1024.

"Hit the Deck Baseball", Dr Shivers and B'lox downloaded from the HP App Catalog fills the screen nicely.

So far I'm really impressed with the TouchPad.

Post ipk for me to test or email.

Here is a good page to read: webOS 2.0(mojo) to webOS 3.0(enyo)
http://beckism.com/2011/07/webos-mojo-to-enyo/


Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Millerszone

I posted the problem in the webOS development forum, here is one of the replies:
"Our OpenGL ES drivers on TouchPad don't handle 768x1024 screen size. The native screen size there is 1024x768,
and you need to rotate manually in your GL code to work in portrait mode."

Here is the webOS thread:
https://developer.palm.com/distribution/viewtopic.php?f=39&t=17372

So I did what he said, here is the results:

Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Ian Price

It's odd that Pre .PDK games (like those created with GLB) scale up to fit the TP screen, but games specifically tailored to fit the actual screensize don't work properly. I'm sure it's something that Gernot will be able to sort out easily when he gets back.

We're all still waiting for the last update, which now includes Pixi support. After I provided Gernot with a Pixi he was able to sort out some GLB/Pixi problems pretty quickly. I don't see that the TouchPad will be much of a problem. Perhaps you just need to provide him with a shiny new TouchPad to get the problem solved sooner, rather than later? ;) :P
I came. I saw. I played.

MrTAToad

Dont forget he's on holiday at the moment...

Ian Price

QuoteI'm sure it's something that Gernot will be able to sort out easily when he gets back.
I came. I saw. I played.

MrTAToad


Kitty Hello

oh dear. Please post the output of the console debug thing. And also the values for GETSCREENSIZE/GETDESKTOPSIZE, please. Darn, I need a device.

Millerszone

Quote from: Kitty Hello on 2011-Aug-16
oh dear. Please post the output of the console debug thing. And also the values for GETSCREENSIZE/GETDESKTOPSIZE, please. Darn, I need a device.
GETDESKTOP: 768x1024
GETSCREENSIZE: 1024x768

I can't get into the console.
When I run deviceshell.bat I get "Sever unexpectedly closed network connection". So then I run pdk-device-install.bat and get:
Error: No device detected.
Connect device and make sure Developer Mode is enabled.

The device is connected and in Developers mode.
I can connect with the Palm Pre.

But with the TouchPad I can't install an ipk from GLBasic, I have to use this app "WebOSQuickInstall.jar" to install.

I'm going to install webOS 3.0 and see if that'll work.


Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Millerszone

O.K. i got in the console with webOS SDK 3.0.2.
Debug info:
Code (glbasic) Select

root@HPTouchPad:/media/cryptofs/apps/usr/palm/applications/com.smashedfly.logo# ./glbasic-webos-exe
debug works at all
preplic
lic done
timer
rbow
rbow init
SDL_init video
SDL_GetVideoInfo = 1024x768 @ 32 bpp
Setting video mode: 0x0x0 fl=2
SDL_SetVideoMode seems to be 1
get accurate timer - 1st call
flip - 1st call
BGRA ext supported
Texture size limit: 4096
init fbo
2D VP
OGRB init [OK]
Cptn
Network
Input
Window mode
Create DXin
sdl_grab
reptr
getexe
cd
set cdir to: /media/cryptofs/apps/usr/palm/applications/com.smashedfly.logo
exepath=curdir= /media/cryptofs/apps/usr/palm/applications/com.smashedfly.logo
Init Finalized
Shut down GLB
glb is shut down
PDL_Quit
</PDL_Quit>
exit
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Kitty Hello

In your platform options, did you set the resolution to 768x1024?
Please swap it to 1024x768. If the screen is rotated incorrectly then, please use SETORIENTATION to fix it.
I think the pad is using landscape as a native mode thus I choose the wrong orientation for it.

Millerszone

I have the project resolution set at 1024x768. I also tried 768x1024.
I then tried SETORIENTATION 0 thru 3 but always had the black space on the bottom(Home Button)

Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Kitty Hello

I'll investigate further. This week evenings are so full, I won't make it, though. Not even on the weekend. :(

Ian Price

I can confirm that there are indeed problems with orientation and display on TouchPad. I've got one now too.

(Just a gentle reminder to Gernot for when he gets his TouchPad).
I came. I saw. I played.

Kitty Hello

I threatened with a lawyer but no resonse since. I don't think I get one :(
Where did you get yours?

Ian Price

I got mine through eBay. Staples failed to provide my order (and ignored two emails to them about it before finally responding that it had been cancelled).

Mine was double the price of the firesale, but still half the original price. There may well be more stocks in a week or so, but if you want to guarantee a TP, it looks like silly money is the order of the day on eBay. Even the dev portal isn't guaranteeing devices for devs. :(
I came. I saw. I played.