Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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.

Here is the game. I'm not sure if this game is 2D, but I want to achieve same result.

share|improve this question
I'm not asking about collision. I want to move balls as 3D models. See this game miniclip.com/games/8-ball-pool-multiplayer/en –  Vano Maisuradze Feb 3 '12 at 22:06

2 Answers 2

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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