sio2InitGL problem

View previous topic View next topic Go down

sio2InitGL problem

Post  qflov on Mon May 25, 2009 5:26 am

Hello
I'm preety new using graphic engines, currently developing a 2d game on iphone. I have tried using Sio2Image for rendering a image on the screen. I have succeded only to draw images that are power of 2, so I used some tutorials from http://www.71squared.co.uk/category/iphone-game-programming/, based on Texture2D from the crash landing example.
They have worked so far but the problem occurs when I'm using Image class. It's not rendering anything unless I comment sio2InitGl.
I can't find the code for this init function. Can you please make it public, so can you tell me what can I do so I can use both sio2 and the classes in that link ?
Thanks!

qflov

Posts : 1
Join date : 2009-05-25

View user profile

Back to top Go down

Re: sio2InitGL problem

Post  sio2interactive on Mon May 25, 2009 5:47 am

Make sure that you reset the machine state that this class set ON.

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: sio2InitGL problem

Post  uprise78 on Mon May 25, 2009 11:27 am

The power of 2 limitation is openGL. Texture2d just hides it by filling your non power of 2 images with empty space. Not to mention it is very inefficient at drawing. Apple made it as a quick demo with no intention of having it used for an actual game.

If you want to use SIO2 for a 2d game you may want to check out http://sio2interactive.forumotion.net/sio2-engine-f3/sprite-additions-t502.htm which should provide a good base for you.

uprise78

Posts : 228
Join date : 2008-10-31

View user profile

Back to top Go down

Re: sio2InitGL problem

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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