falling though world on device

View previous topic View next topic Go down

falling though world on device

Post  spoboyle on Tue Apr 14, 2009 9:48 am

i have created a world and imported it into the tutorial 09 code base.

everything worked great on the simulator, but when i installed the app onto a device all my rigid/dynamic bodies fall though the world.

does any one have any ideas what could potentially cause this behaviour?

-spob

ok i did do a search for similar posts and nothing came up. the searched for my own post and found loads :S

going to work through some of the other suggestions i found

spoboyle

Posts : 12
Join date : 2009-04-08
Age : 36
Location : manchester, uk

View user profile

Back to top Go down

Re: falling though world on device

Post  spoboyle on Tue Apr 14, 2009 10:18 am

ok

replacing
sio2PhysicRender( sio2->_SIO2physic, sio2->_SIO2window->d_time, 2 );

with
sio2PhysicRender( sio2->_SIO2physic, 1.0f / 30.0f, 2 );

worked but the app does not run at anywhere near the frame rate i was hoping

spoboyle

Posts : 12
Join date : 2009-04-08
Age : 36
Location : manchester, uk

View user profile

Back to top Go down

Re: falling though world on device

Post  sio2interactive on Tue Apr 14, 2009 4:56 pm

Check tutorial06_2 and see if you can use multi-thread with the physic?

_________________
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 : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: falling though world on device

Post  spoboyle on Thu Apr 16, 2009 9:35 am

ok i have finally managed to get a seperate physics thread sorted and things have improved but for a relatively simplistic world far from ideal

rendering: 14 fps
physics: 10 fps

spoboyle

Posts : 12
Join date : 2009-04-08
Age : 36
Location : manchester, uk

View user profile

Back to top Go down

Re: falling though world on device

Post  sio2interactive on Thu Apr 16, 2009 4:48 pm

Do not compile with thumb 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 : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: falling though world on device

Post  spoboyle on Fri Apr 17, 2009 2:54 am

it wasn't on

spoboyle

Posts : 12
Join date : 2009-04-08
Age : 36
Location : manchester, uk

View user profile

Back to top Go down

Re: falling though world on device

Post  sio2interactive on Fri Apr 17, 2009 3:07 am

Dude profile cuz me I get more than 20k of textured polygon per FOV where all objects are physic objects and I get 30+ fps on my iPod Touch 2nd gen...

_________________
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 : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: falling though world on device

Post  spoboyle on Fri Apr 17, 2009 3:40 am

yeah its obvious there is something wrong with my app, cause i have seen more complex worlds drawn at faster frame rates using this engine. hmm now to find out what's wrong ... i'll post here again if i work anything out

spoboyle

Posts : 12
Join date : 2009-04-08
Age : 36
Location : manchester, uk

View user profile

Back to top Go down

Re: falling though world on device

Post  sio2interactive on Fri Apr 17, 2009 3:51 am

just use shark dude, you'll see it right away...

_________________
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 : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

shark

Post  sNovak on Thu Jun 04, 2009 12:48 pm

I don't mean to be a newb. But, afterall I am a newb.. So, what's Shark?
avatar
sNovak

Posts : 5
Join date : 2009-05-25
Age : 38
Location : Davie, FL

View user profile http://www.snovak.com

Back to top Go down

Re: falling though world on device

Post  Francescu on Thu Jun 04, 2009 1:11 pm

sNovak wrote:I don't mean to be a newb. But, afterall I am a newb.. So, what's Shark?
http://developer.apple.com/DOCUMENTATION/DeveloperTools/Conceptual/SharkUserGuide/Introduction/Introduction.html
http://discussions.apple.com/thread.jspa?threadID=1655414&tstart=0

Francescu

Posts : 136
Join date : 2009-03-18

View user profile

Back to top Go down

Re: falling though world on device

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