Sunday
Dec132009

Importing FBX

5 am and I've finally sort-of figured it out.

First, the iPhone version of Unity is a fork of an old skew. Export all from Maya using FBX200611.

My settings:

Geometry: Smoothing Groups checked, along with Instances to Objects, and Referenced Containers Content

Animation: Bake animation checked.

Deformed Models: Skins checked, Blend shapes NOT checked

Curve Filters: unchecked

Constraints: unchecked

Sunday
Dec132009

FPS in Maya

So I bought a model from 3DRT but was confused as to why I would have fewer frames in Maya than I did in Max.

The issue is that Maya defaults to 24 fps (film). Unity and presumably Max use 30fps.

To fix this, in Maya

Windows -> Settings / Preferences -> Settings -> Time NTSC [30 fps]

 

 

Sunday
Dec062009

SIGBUS Errors

I was getting these when running a new version of the game with no valid callstack. Problem was this line of script:

transform.postion = spawnPoint.position.

I had not set the spawnPoint for that object, so it was null. This works fine in preview but dies on the iphone.

Run the iPhone version often.

Monday
Nov232009

Micropausing when destroying enemies

There is a micropause when destroying skeleton warriors. I am betting this is due to all the Instantiates and GetComponents that are floating around at that point. There are also Resource.Load calls in there as well.

Solution is to preinstantiate everything. Store a set number of debris pieces in a manager along with references to all textures.

Well, first I need to figure out how to make a game with multiple enemies first eh?

Sunday
Nov222009

Unity iPhone Axis

Y and Z appear to be the same between Maya and Unity iPhone, but the X axis is flipped. This appears to be a Unity / iPhone / camera issue.