Jump to content

How to get a skybox to work on iPad4


andrew_
 Share

Recommended Posts

The example at the link below breaks the office iPad 4... there's an animation rotating the camera and after rotating through about 90 degrees the page freezes.

 

http://www.babylonjs-playground.com/#L1EXZ#17

 

It is a cut down sample based on the standard "Environment" sample on the playground.

 

I've put in the animation so that the user "doesn't have to do anything" to see the problem, but actually to break this on iPad4 the animation isn't needed...

 

Take the animation out and just rotate the camera around (by dragging with your finger on the iPad) and the page freezes pretty soon just with the skybox.

 

If you download the .zip, you'll see the jpgs used aren't that big... around 20KB ...  (97KB for the 6 of them).

 

Thank you very much for helping if you can.

Link to comment
Share on other sites

What is an iPad 4?  Never heard of it.  I tried your playground on a 10" iPad Air 2 wt the little thumb reader.  The animation stopped without going all the way around, but I was unable to reproduce your freezing, using a finger afterward.  I pinched / zoomed / doodled for over a minute.  Frame rate was 60.  Version of OS was 8.4.1.

 

Do you mean iPhone 4?

Link to comment
Share on other sites

Thanks for trying the test app out for me.

iTunesConnect calls the device an "iPad 4th Generation" ... I have just always thought it was (loosely speaking) referred to as an iPad 4 ... I've seen other people doing that.

The model number is MD511ZP/A

The os is 8.4.1 (12H321) ie. the latest, but on the previous OS update the test app behaved in just the same way.

 

EDIT: Ah, having now done some goolging, I understand the reason for the confusion:

 

Wikipedia says: 
https://en.wikipedia.org/wiki/IPad_(4th_generation)

 

"The fourth-generation iPad (originally marketed as iPad with Retina display, retrospectively marketed as the iPad 4)"

Link to comment
Share on other sites

The graphics chip in it is a PowerVR

 

https://en.wikipedia.org/wiki/PowerVR#Series_5XT_.28SGXMP.29

 

 

 

... I'm going to go see if I can get any clues from this:

http://www.html5rocks.com/en/tutorials/games/abouttracing/

 

EDIT:

Ah. Immediate no-go ... it doesn't look like Chrome running on the iPad supports tracing.

EDIT:

Maybe some clues for me here:
http://codeflow.org/entries/2014/jun/08/some-issues-with-apples-ios-webgl-implementation/

(although it is year old)

Link to comment
Share on other sites

It looks like it is possible to remote debug javascript running on the iPad as is described on this page here:
 

https://css-tricks.com/using-chrome-devtools-to-debug-javascript-in-any-browser-with-ghostlab-2/ 

 

In Safari advanced options (in iPad settings) I see I can turn on "Web Inspector", then and connect the iPad up to a Mac also running Safari.

 

I have not done this before, but I will give it a go later on when I can get access to a Mac desktop.

 

I'll post here to say how I get on.

EDIT: Note to self:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...