iOS (iPad) Screen BUGs (round corners, windowed, buffer video????)

Previous topic - Next topic

Hark0

Hi!

I updated ALL software: GLB and Xcode to last version available.

I make some test for compile to iOS 5.0 on iPad 1...

All done... BUT, look right corners... ARE ROUNDED!?!?!?!  :blink:

Left screen are OK...


Any help are welcome.

TIA, H.

PS Clic on image for zoom/best bug view... remember old mac screens...  =D

[attachment deleted by admin]
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

mrplant

#1
Hi.

The curves at your extreme corners look like mine a bit.

I've been getting this for months now - strangely enough only on iPad.. Mac and PC builds are fine.

Also strangely, my rounded corners are on the left side. I am floating in a graphic from bottom right to position 0,0 on the screen. Later in my game it goes away.

I just learnt to live with it as nothing I could do would fix it and it only occurred on iPad.

Zoomed in photos attached along with original screen grabs I just took.

The graphics are 1024x768 single layer non transparent png files with pre-rendered edges on them.

This is the code I use to float it in from bottom right to top left of screen.


// SETORIENTATION 3 // Default orientation on iOS for landscape (Button on left).
// Fade in the Title Screen smooothly from bottom right to top left.
   LIMITFPS SmoothFPS // Smooth fps rate on!
   FOR LoopX = 768 TO 0 STEP -3
      UDrawSprite (gTitleScreen,LoopX, LoopX)
      // The following code is compiled for iOS Platform only:
      ?IFDEF IPHONE
         IOSAutoOrient() // if running on iOS, check for a screen orientation change and flip as required.
      ?ENDIF
       SHOWSCREEN // Copy whats on Backbuffer to main screen.
   NEXT
   UDrawSprite (gTitleScreen,0,0)
   SHOWSCREEN // Copy whats on Backbuffer to main screen.

If I compile code above in Xcode as iPhone - it runs in a window on the iPad and the corners are fine. Change project settings to iPad however, and the corner problem occurs. Very strange.

[attachment deleted by admin]

Hark0

hmmm

I no use any SETORIENTATION... only CLEARSCREEN and SETSCREEN.



I think to draw on top layer MY designed four rounded corners like you... to fix this temporally.

O_O You says... very strange bug.
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

spacefractal

#3
I noticed this in Greedy Mouse as well, iOS add those corners.

I can think its eiter a missing xcode setting or can been done in inline. The most annoyring thing is those corners does not fellow ORIENTATION (which they does not). If they did, then I would not notice them at all. By now I just igonere it.

Also doing its full layer draw is very much overdraw. instead just load one cornor graphics and put them in each cornor to meantime fix it....
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Hark0

Quote from: spacefractal on 2012-Mar-26
I noticed this in Greedy Mouse as well, iOS add those corners.

I can think its eiter a missing xcode setting or can been done in inline. The most annoyring thing is those corners does not fellow ORIENTATION (which they does not). If they did, then I would not notice them at all. By now I just igonere it.

Also doing its full layer draw is very much overdraw. instead just load one cornor graphics and put them in each cornor to meantime fix it....

iOS ADD CORNERS?????

ONLY 2 VERTICALLY???

:blink:
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

Hark0

Y paste a solution founded ... (http://stackoverflow.com/questions/5518977/how-does-one-eliminate-the-rounded-corners-on-the-main-window-on-an-ipad-app)


(e.g. the iPod player has square corners at the top; can't tell at the bottom)

You'll need to get used to this: Apple apps will do things your apps can't do. Apple get to use private frameworks, App Store apps don't.

If you don't use the status bar (ie, completely 'full screen') you'll get a 'non rounded' screen. This is pretty simple to do - just hide the status bar from within your code (or, if you want it hidden throughout your app, you can just set it in your info.plist).


I try later!
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

MrTAToad

Looks like Apple wants your graphics to look like its own - whether you like it or not...  :P

mrplant

What I can't understand is sometimes (almost as if randomly), I get the corruption shown here - its like a rounded corner a third of the way along the top.
Again, iPhone is fine - only on the iPad - and my graphics were all designed for the iPad in the first place - there are no rounded corners in my originals...

weird...

[attachment deleted by admin]

mrplant

Once my  main game starts - this problem always goes away... Its very strange.. My Xcode settings are already set to hide status bar.

[attachment deleted by admin]

Hark0

http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

Hark0

Hi!

New test...



I paste the log of Xcode (colors are mine):

init with frame.
Scaleing available: self.contentScaleFactor = 1.000000
desktop backing: 768 x 1024
mainScreen: 768x1024

slaunch ok
-applicationDidBecomeActive    -> unpause
2012-04-03 21:14:11.724 iPhone[6032:707] Application windows are expected to have a root view controller at the end of application launch
timer
rbow
rbow init
Rbow::SetScreen( 1024,768)
get accurate timer - 1st call
flip - 1st call
BGRA ext supported
Texture size limit: 2048
init fbo
2D VP
OGRB init [OK]
Cptn
Network
Input
Window mode
Create DXin
reptr
getexe
cd
set cdir to: /var/mobile/Applications/FFECC524-AEB6-4D8C-A656-95AF33FB22B5/iPhone.app
exepath=curdir= /var/mobile/Applications/FFECC524-AEB6-4D8C-A656-95AF33FB22B5/iPhone.app
AudioStreamBasicDescription:  2 ch,  44100 Hz, 'lpcm' (0x00000C2C) 8.24-bit little-endian signed integer, deinterleaved
Init Finalized
Rbow::SetScreen( 1024,768)
loadeffect - i: 0 eff: 2400
play - i: 0 eff: 2400
Shut down GLB
glb is shut down
exit


Maybe GLB works windowed on iPad?
:blink:
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

MrTAToad

Might be easier to set the "main nib file base name" in the pList file.

Hark0

Quote from: MrTAToad on 2012-Apr-03
Might be easier to set the "main nib file base name" in the pList file.

Tried adding "main nib file base name" and "main file base name ipad"...


I left blank fields....


Can you paste string fields for this sets???




http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic


Hark0

Quote from: MrTAToad on 2012-Apr-05
I think you are supposed to put in "MainWindow" for the "main nib base file name" section : http://stackoverflow.com/questions/7520971/applications-are-expected-to-have-a-root-view-controller-at-the-end-of-applicati

Hello again...

I added MainWindow on main in base file name.... ROUNDED CORNERS. Only compile/run in Debug mode.

I tried for Release... Xcode compile and runs, but halt app due "MainWindow.nib" file missing.

I created a new Window file into Xcode called MainWindow.xib.

Compile/run works.... BUT

1 Obviously the new window are ON TOP of my app.
2 Maintain ROUNDED corners...

:O


mmmm I need to use SETSCREEN 1024,768,1 <- Fullscreen?


Im really confused... Im just launch my iPad, the computer and all for the window of my house. (I live on 4 floor)  :rant:


EDIT:

Tried SETSCREEN 1024,768,1

FAIL  :rant:

EDIT2:

I created a NEW GLB project, just setscreen, drawling across window and text hello world...

The app works horizontally (1024x768).
I ONLY set in info.plist this Field:

Initial Interface Orientation -> Landscape (left home button)

and now the 2 rounded corners are at bottom screen...

Im continue investigating with adding isetorientation...

:|


EDIT3:

Definitelly I think GLB runs on window mode.... I make new Xcode GL and works fine...


I goto to cinema.... Im exaust for now....   :giveup:
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic