Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new to XNA and game programming.

I'm creating a 2D billiard game and I want to add balls with realistic movement (like 3D). Is it possible to achieve this without using 3D models? I only want to use 2D. Please give me examples.

share|improve this question

closed as unclear what you're asking by bummzack, Anko, Byte56 Apr 27 '15 at 13:59

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

I'm not asking about collision. I want to move balls as 3D models. See this game – Vano Maisuradze Feb 3 '12 at 22:06
Why is 3D mentioned at all? What precisely does "realistic movement" mean here? – Anko Apr 27 '15 at 13:24
up vote 2 down vote accepted

I think you are asking how they perform the faux-3d effect on the billiard balls, and is it "real" 3d models or not. I'm not entirely sure what technique they used, but I don't think that its "real" 3d.

I would guess that its a distortion of a stereographic projection of a billiard ball. There is an example here that talks about the distortion technique in flash, but still uses an underlying 3D model to "drape" the texture onto. And another example here that talks about using another pixel bender to create the faux 3d sphere effect, similar to something like this.

Now, Adobe Pixel Benders are functionally equivalent to pixel or fragment shaders. So you should be able to use the references here to do something similar to a sprite in XNA.

share|improve this answer

I'm creating 2D billiard game and I want to add balls with realistic movement (like 3D).

Do you just want the ball to slow down due to friction? Do you want the queue to be able to knock it up into the air? Do you want to know what happens when the ball hits a well? Or do you want to know what happens when two balls collide? The word moment is too vague for us to really help you without guessing your needs.

That being said check out this link and this link should cover everything :)

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.