[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Chipmunk Physics • View topic - debug draw not working on cocos2d v2.0

debug draw not working on cocos2d v2.0

Official forum for the .

debug draw not working on cocos2d v2.0

Postby marciokoko » Tue Jun 12, 2012 4:58 pm

I had a perfectly working game on cocos2d 1.0.1 and upgraded to 2.0.

After many debugs, Im only left with the fact that my bodies don't have the rectangles around them which used to let me see where they were. I was using them to debug. How do i get them back? I have cp6.1 because I remember upgrading a few weeks back. But for some reason the console says:

Initializing cpSpace - Chipmunk v6.0.3 (Debug Enabled)

Maybe since its as far up as cocos2d v2 rc2 recognizes...?
marciokoko
 
Posts: 86
Joined: Thu Jan 12, 2012 11:50 am

Re: debug draw not working on cocos2d v2.0

Postby ksjogo » Tue Jun 12, 2012 6:52 pm

User avatar
ksjogo
 
Posts: 5
Joined: Tue Jun 12, 2012 6:37 pm

Re: debug draw not working on cocos2d v2.0

Postby marciokoko » Tue Jun 12, 2012 9:55 pm

Cool thanks, I'll look into it.

So let me understand this, the fact that cocos2d version changed, breaks the chipmunk debug functionality?

So it's probably why my box2d debug draw is failing as well?
marciokoko
 
Posts: 86
Joined: Thu Jan 12, 2012 11:50 am

Re: debug draw not working on cocos2d v2.0

Postby ksjogo » Wed Jun 13, 2012 4:16 am

Cocos2d 2.0 is using GLES 2.0, thus the old draw functions do not work and need to be changed to the new ones.
User avatar
ksjogo
 
Posts: 5
Joined: Tue Jun 12, 2012 6:37 pm

Re: debug draw not working on cocos2d v2.0

Postby marciokoko » Wed Jun 13, 2012 9:50 am

OOOooh! Nice and green! :)

Thanks @ksjogo, highly appreciated. You wouldn't happen to know how to fix my box2d debug draw would you?

Ill go post over there :)

Thx again!
marciokoko
 
Posts: 86
Joined: Thu Jan 12, 2012 11:50 am

Re: debug draw not working on cocos2d v2.0

Postby ksjogo » Wed Jun 13, 2012 5:39 pm

You could take the drawing code from the CPDebugLayer and insert it into the box2d calls - but better ask there.;)
User avatar
ksjogo
 
Posts: 5
Joined: Tue Jun 12, 2012 6:37 pm


Return to Chipmunk2D Physics

Who is online

Users browsing this forum: No registered users and 1 guest