Box2D Forums

It is currently Sat May 25, 2013 3:15 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Thu Sep 03, 2009 8:57 am 
Offline

Joined: Thu Sep 03, 2009 8:54 am
Posts: 3
I wanna change the texture of Circle Body in Processing but i don't know how to make it. Please, i need help :D
I tried with Image(); but this didn't work.


Top
 Profile  
 
PostPosted: Thu Sep 03, 2009 1:46 pm 
Offline

Joined: Mon Jul 27, 2009 6:46 am
Posts: 230
Texturing is out of Box2d's area; you'd have to make your own rendering system for that sort of thing.
The testbed offers the debug drawing, which is passed through Box2d to your application; you shouldn't really use this as your main method of drawing.

-P


Top
 Profile  
 
PostPosted: Fri Sep 04, 2009 12:39 am 
Offline

Joined: Thu Sep 03, 2009 8:54 am
Posts: 3
but it must to be easier!! XD is just an image in the ball.... is not neccesary to make my own rendering setup :D is cause i dont know the method in testbed... i only have documentation for org.jbox2d.p5.*;
Just one image in balls and static bodys ... anyone? XD


Top
 Profile  
 
PostPosted: Fri Sep 04, 2009 11:58 am 
Offline

Joined: Mon Jul 27, 2009 6:46 am
Posts: 230
Box2D is just the physics engine, how you draw everything is up to you. The easiest way is to store the ball globally and draw a circle over the ball.

-P


Top
 Profile  
 
PostPosted: Fri Sep 04, 2009 12:01 pm 
Offline

Joined: Sun Sep 23, 2007 2:35 pm
Posts: 803
Unfortunately nobody has written an image renderer for the Processing wrapper yet.

It's on my todo list, but I can't make any promises about when it might be ready, there's a lot of JBox2d specific stuff that I need to get through first. I'll post a note here when it's done.

@Paril: You're correct, Box2d just handles physics, but this question really relates to BoxWrap2d, a wrapper I set up for working with JBox2d from Processing, so it's fair game since that does handle graphics (not very well, clearly - still much to do!).


Top
 Profile  
 
PostPosted: Wed Sep 16, 2009 8:49 pm 
Offline

Joined: Mon Jul 27, 2009 6:46 am
Posts: 230
Oh, alright. I just assumed because he didn't really mention that. Sorry for the confusion.

-P


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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