FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Looking for some guidance on game loop and 2d/3d view switching

3 posters

Go down

Looking for some guidance on game loop and 2d/3d view switching Empty Looking for some guidance on game loop and 2d/3d view switching

Post  Krypt Mon Sep 21, 2009 6:12 am

Hiya,

I'm new to SIO and OpenGL programming on the iPhone, but have some experience with C and Objective-C. I think the potential of SIO2 is great and am looking to use it for some game development going forward.

I was hoping for some guidance on how the game loop would fit into a SIO2 app, and also how you might flip between 2D views (i.e. menu) and 3D views (character generation / the actual game).

It seems that the game loop would become part of EAGLView and rather than just calling startAnimation, you could have custom functions here for example to go straight into a static 2d menu when the game was launched (with some 2d buttons etc), before going into a full 3d game with appropriate game state, etc. Am I on the right track here?

Secondly, the tutorials and such that I've looked at so far don't seem to mix a 2D view with a 3D one. Do you need to use separate render functions to achieve this? I'm not quite sure how to get this started in the SIO2 context.

Thanks for all the great info so far, these forums have been a good read.

Krypt

Posts : 15
Join date : 2009-09-21

Back to top Go down

Looking for some guidance on game loop and 2d/3d view switching Empty Re: Looking for some guidance on game loop and 2d/3d view switching

Post  mordenkaim Mon Sep 21, 2009 9:06 am

Look for templateRender in template.mm. That's the render loop where most of the animation will take place.

sio2Enter2D is used to switch to 2D rendering mode, and can be used to render your 2D elements. There are a lot of good examples in the tutorials on the technology link from SIO2Interactive.com.

mordenkaim

Posts : 21
Join date : 2009-05-19

Back to top Go down

Looking for some guidance on game loop and 2d/3d view switching Empty Re: Looking for some guidance on game loop and 2d/3d view switching

Post  yarri Mon Sep 21, 2009 2:15 pm

Hi, tutorial061 is all you need. Example app using this for a HUD is here:
itunes.com/apps/ridengivelite

--yarri

yarri

Posts : 81
Join date : 2009-04-10

Back to top Go down

Looking for some guidance on game loop and 2d/3d view switching Empty Re: Looking for some guidance on game loop and 2d/3d view switching

Post  Krypt Tue Sep 22, 2009 1:59 am

Hi guys,

Thanks for the responses.... I'll spend some more time on tutorial061....

Thanks!

Krypt

Posts : 15
Join date : 2009-09-21

Back to top Go down

Looking for some guidance on game loop and 2d/3d view switching Empty Re: Looking for some guidance on game loop and 2d/3d view switching

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum