Transparent part of sprite causing collision on WebOS 1.4.5

Previous topic - Next topic

Millerszone

Made a small program to confirm transparency part of sprite causing collision detection using a .png (PNG-24) with transparency.
Not using the Pink RGB(255,0,128), even though it doesn't make a difference.

Using GLBasic 9.052
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

Code (glbasic) Select

CREATESCREEN 0,0,32,32
USESCREEN 0
DRAWRECT 0,0,32,32,RGB(255,0,128)
DRAWRECT 0,0,16,16,0xffffff
USESCREEN -1

DRAWRECT 100,100,32,32,0x505050
DRAWSPRITE 0,100,100
DRAWSPRITE 0,120,120


IF SPRCOLL(0,100,100,  0,140,140)
PRINT "COL", 100,200
ELSE
PRINT "NO COL",100,200
ENDIF
SHOWSCREEN
MOUSEWAIT
END


What does it say?

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

Kitty Hello

Excellent. Now I need a device to debug. I contacted Palm for the issue. Darn.

Does the console show any debug information for you? (compiler/webos/tools/bin/deviceshell.bat)

Millerszone

When i run, i get Putty fatal error, "Sever unexpectedly closed network connection".
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

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

tool/bin/novaterm/pdk-device-install.bat <-- after that the "server unexpectedly closed network connection" should be gone.

Millerszone

O.K. now I have this:
Using username "root".
root@palm-webos-device:/var/home/root#

I never used before. Where do I look for the debug info?
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

you cd to the directory:
cd /media/cryptofs/<tab><tab> palm.. apps... com.glbasic.yourapp
then type:
./glbasic-exe-webos

I think the manual has the path listed in the GLBasic intern/WebOS section.

Millerszone

This is the log from your test code. Did you want my HTD Baseball log file?
Code (glbasic) Select
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2011.04.19 10:52:58 =~=~=~=~=~=~=~=~=~=~=~=
./glbasic-webos-exe
Init OGLRB
SDL_init video
SDL_GetVideoInfo = 320x480 @ 32 bpp
Setting video mode: 0x0x0 fl=2
SDL_SetVideoMode seems to be 1
flip
glclear
msgloop
...done
frame counter: next 0  cur 570
flip finished
flip
glclear
msgloop
...done
frame counter: next 586  cur 598
flip finished
flip
glclear
msgloop
...done
frame counter: next 598  cur 620
flip finished
BGRA ext supported
Framebuffer is init
init nw
init 3D
ctor inp
toggle fullscreen 1
init inp
exe path
1st flip
flip
glclear
msgloop
...done
frame counter: next 631  cur 694
flip finished
2d vp
smalfont
1st timer
system ptr 1
shared objects
Init sound engine
Init Finalized
flip
glclear
msgloop
...done
frame counter: next 710  cur 890
flip finished
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

No. There's no error printed. I have to see what it does and might come back to you to test a more verbose version.

Millerszone

Quote from: Kitty Hello on 2011-Apr-20
No. There's no error printed. I have to see what it does and might come back to you to test a more verbose version.
Ok
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

Can you test this and see if there's more info?

It works perfectly on a 2.1 device. Seems a driver issue.



[attachment deleted by admin]

Millerszone

I get NO COL

I'm getting "-sh: com.glbasic.support: Permission denied" when I try to get the log.

I also tried on other test app and got the same thing.

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

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