from j2me to iostwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · from j2me to ios galaxy...

28

Upload: others

Post on 19-Jun-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH
Page 2: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

From J2ME to iOS

Galaxy on Fire 2 on the iPad and iPhone

Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Page 3: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Agenda

  FISHLABS  What’s Galaxy on Fire 2  Concept  Graphical Assets   Engine/Game Adaptation  Sound   Learning

Page 4: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

FISHLABS

 Specialized in premium 3D mobile games in Java and C/C++

 Headquartered in Hamburg, Germany   Founded 2004   35 full-time employees   2m Java/BREW game downloads through

160+ carriers & portals   30m iPhone game downloads

Page 5: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

What’s GOF 2

Page 6: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Concept

 Starting October 2009  GOF 2 is a perfect fit for iDevices  Basic game structure can be the same  Deliver top notch graphics

Page 7: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Concept

48% 52%

OpenGL ES distribution July 2010

1.1 2.0

1.1 : iPod Touch 1st, 2nd Gen; iPhone 2G, 3G 2.0 : iPod Touch 3rd Gen; iPhone 3GS; iPhone 4

Page 8: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Concept

  iDevices fragmentation  Different screen sizes: 480x320, 960x640, 1024x786

 Different performance: CPU, GPU, Memory  Different OS: iOS 3.0 – iOS 4.0  Goal: decent framerate

 iPhone 3G and iPod touch 2nd gen. lowest

Page 9: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Concept

 New mood concepts necessary  Switching from keypad to touch  New interface   Pimp up the gameplay

Page 10: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Concept

Page 11: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Graphics / Meshes

Page 12: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Graphics / Level of Detail

Page 13: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Graphics / Textures

  Java: 256x256 pixels max   Java: one texture for all 3D models

Page 14: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Graphics / Textures

  iDevices: up to 2048x2048 pixels   iDevices: 128 textures for 3D models

Page 15: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Graphics / Texture Compression

Uncompressed 32bit 512x512 1024 KB

Page 16: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Graphics / Texture Compression

PVRTC4

12.5% Size 128 KB

Page 17: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Graphics / Texture Compression

PVRTC2

6.25% size 64 KB

Page 18: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

1024

128 64

0

200

400

600

800

1000

1200

File size (kb)

Uncompressed PVRTC4 PVRTC2

Texture Compression

Page 19: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Graphics / FX

  Particle systems   - engine   - smoke   - atmospheric fog

  Animation for explosions   Real-time lighting

Page 20: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Engine From integer to float

  Java: integer due to absence of FPU   iDevices: floating- instead of fixed-point

  Make use of the FPU

Page 21: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Engine State sorting

  Java: limited materials  Rendering strategy: immediate mode   iOS: up to 30 materials  Rendering strategy: retain mode

 Drawing Order  1. Opaque objects first  2. Alpha testing objects  3. Alpha-blended objects

Page 22: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Engine Batching: From 60 to 1 draw calls

Page 23: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Engine View frustum culling

Page 24: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Game Coding

  Java: garbage collection  C/C++: own memory handling  C/C++: remember to init  Keypad to touch  New interface layout   Station[][][] stations;

Page 25: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Sound

  Java:  only limited sound capability  use of midis and simple sound effects

  iDevices:  great sound hardware   full OpenAL support

Page 26: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Learning

  It’s not a PORT   Think more of a console approach  Don’t underestimate the beta phase  Developers are the worst testers  Avoid feature creep  Have fun!

Page 27: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH
Page 28: From J2ME to iOStwvideo01.ubm-us.net/o1/vault/gdceurope2010/slides/... · From J2ME to iOS Galaxy on Fire 2 on the iPad and iPhone Marc Hehmeyer, CTO Fishlabs Entertainment GmbH

Thank you

[email protected]