Possible to build offroad vehicle demo for iOS?

Apologies for the newbie question, but I’m just getting started with UE4 –

I downloaded the offroad VehicleGame demo from the market and I’m trying to deploy it to an iPhone 5s. I copied my mobile provision to the correct spot, and selected my device from the ‘Launch’ dropdown.

However, it’s been a few hours at this point and it still appears to be “Cooking content for launch…” - is that to be expected? Looking at the log it does seem to be doing some work but I don’t really have any context for how much work is remaining or if it will ever complete. For context, I’m on the most recent revision of the rMBP with 16gb of ram and a core i7.

So I guess my questions are:

  • Will this demo even build for iOS?
  • Is it normal/expected for it to take this much time?
  • Will it take this much time every time I try and spin a build?
  • Are there things I can do to reduce the overall time taken to spin a build? Or alternatively, what’s in the VehicleGame demo that causes this process to be so slow?

Cheers!

Hi Rje,

Vehicle Game is not optimized for mobile. There are some projects that are on the Marketplace that are optimized and will run on Mobile (Mobile Temple, Tappy Chicken, Strategy Game, Memory Game, Blackjack, and Swing Ninja)

There are post processes and things with lighting and materials that is being handled in Vehicle Game that will not work on mobile devices. While we are continuing to improve things for mobile devices there are things that are not currently possible.

Thank you!

Tim

Hi Tim,

Thanks for that, I figured as much. :slight_smile:

I’m taking a crack at optimizing it myself and I’ve run into a few additional questions:

  • Do meshes attached to landscape splines work on mobile? I’ve noticed they don’t appear in the mobile simulator but I’ve had trouble finding a specific error in the logs as to why this is the case. If they don’t work on mobile, is there a way to bake them to a separate fbx or uasset?
  • Are there any landscape tool limitations on mobile to be aware of? I know the materials will need to be simplified, but are there any other issues that I’ll run into?

Cheers,
Ryan

Hi Ryan,

Splines do not currently work on Mobile. You can select them in the editor and export as FBX, and they should reimport as a rigid StaticMesh. We should probably support automatically baking them to StaticMeshes for mobile.

For Landscape materials, use up to 4 layers and be sure to use the CustomUV system for your texture coordinates - see this thread.

Cheers

https://github.com/EpicGames/UnrealEngine/commit/20a7d95c75382a4b7b16dffdcbdad1f30580830c

“Make Landscape Splines work on OpenGL ES2
Tested on Nexus 5
Vertex shader has not been optimised for mobile, only made to work”

:smiley:

(will be in 4.5)