Box2D Forums

It is currently Wed May 22, 2013 6:41 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 15 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Mon Jun 18, 2012 3:51 pm 
Offline

Joined: Fri Mar 09, 2012 1:43 pm
Posts: 69
ok here are a few screenshots...basically it seems like it draws something, but not that many things:

Attachment:
Screen Shot 2012-06-18 at 4.37.59 PM.png
Screen Shot 2012-06-18 at 4.37.59 PM.png [ 25.91 KiB | Viewed 208 times ]


Attachment:
Screen Shot 2012-06-18 at 4.38.02 PM.png
Screen Shot 2012-06-18 at 4.38.02 PM.png [ 24.15 KiB | Viewed 208 times ]


Attachment:
Screen Shot 2012-06-18 at 4.38.17 PM.png
Screen Shot 2012-06-18 at 4.38.17 PM.png [ 23.96 KiB | Viewed 208 times ]


It seems to bounce back between 2 and 4 vertices at similar locations.


Top
 Profile  
 
PostPosted: Tue Jun 19, 2012 12:10 am 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1516
Location: Tokyo
So... are the locations what you expect? If they are then maybe there is some other OpenGL state that is not set correctly.


Top
 Profile  
 
PostPosted: Tue Jun 19, 2012 7:41 am 
Offline

Joined: Fri Mar 09, 2012 1:43 pm
Posts: 69
No, to be honest, the values of the vertices seem too low. And how come it only says there are 2 or 4 vertex counts?

I have a car which has at least 4 vertices. I have a meteor crashing down which has another 4 vertices. I have various ground pieces. I don't know why there would be so few vertices.


Top
 Profile  
 
PostPosted: Tue Jun 19, 2012 2:34 pm 
Offline

Joined: Sun Oct 25, 2009 3:28 am
Posts: 242
Is the ground piece made up of edge shapes (edge chain or manually set edge shapes) or a polygon or circle? If it's edge shapes, then the 2-vertex count would make sense, since they consist of two points for each edge shape (unless I'm completely wrong in how debug draw draws edge shapes). If it's a polygon or a circle, then yeah, there's something wrong.


Top
 Profile  
 
PostPosted: Tue Jun 19, 2012 2:45 pm 
Offline

Joined: Fri Mar 09, 2012 1:43 pm
Posts: 69
Well as I said, I have many shapes. I guess if it draws the ground pieces then It may be ok but these pieces never get drawn. Nothing does. The code used to work fine including the debug draw before. It only stopped working when I migrated to cocos2.0 and updated my GLESRender class.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group