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.

share|improve this question

put on hold as unclear what you're asking by bummzack, Anko, Byte56 4 hours ago

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.

    
1  
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
    
Why is 3D mentioned at all? What precisely does "realistic movement" mean here? –  Anko 5 hours ago

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

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