Author Topic: HP TouchPad - screen is not centered and not full screen  (Read 13446 times)

Offline Millerszone

  • Dr. Type
  • ****
  • Posts: 307
  • www.smashedfly.com
    • View Profile
    • Smashed Fly
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/


« Last Edit: 2011-Aug-04 by Millerszone »
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

Offline Millerszone

  • Dr. Type
  • ****
  • Posts: 307
  • www.smashedfly.com
    • View Profile
    • Smashed Fly
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

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4147
  • On the shoulders of giants.
    • View Profile
    • My Apps
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

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

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4147
  • On the shoulders of giants.
    • View Profile
    • My Apps
Quote
I'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

  • Guest
Ah - didn't see that :)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10714
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
oh dear. Please post the output of the console debug thing. And also the values for GETSCREENSIZE/GETDESKTOPSIZE, please. Darn, I need a device.

Offline Millerszone

  • Dr. Type
  • ****
  • Posts: 307
  • www.smashedfly.com
    • View Profile
    • Smashed Fly
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.


« Last Edit: 2011-Aug-16 by Millerszone »
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

Offline Millerszone

  • Dr. Type
  • ****
  • Posts: 307
  • www.smashedfly.com
    • View Profile
    • Smashed Fly
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

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10714
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
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.

Offline Millerszone

  • Dr. Type
  • ****
  • Posts: 307
  • www.smashedfly.com
    • View Profile
    • Smashed Fly
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

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10714
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
I'll investigate further. This week evenings are so full, I won't make it, though. Not even on the weekend. :(

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4147
  • On the shoulders of giants.
    • View Profile
    • My Apps
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.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10714
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
I threatened with a lawyer but no resonse since. I don't think I get one :(
Where did you get yours?

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4147
  • On the shoulders of giants.
    • View Profile
    • My Apps
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.