Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

andyb716

2D or 3D balls

This topic is 5282 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m a beginner and I want to make pong clone like everyone else. I can make box''s just fine, I just what I need to do to make a 2D ball, 3D would be better but all I need now is 2D. I''m programming with c++ 6 and directx 8. thanks

Share this post


Link to post
Share on other sites
Advertisement
It is hard to tell what you mean here. Pong normally is a 2D type game. If your making your game in 2D then look into making a bitmap of the ball, loading that in and using it as a sprite.

If your trying to make a 3D game. then make your ball from a 3D mesh. You could build this by hand if you needed to. It wouldn't be the easiest way to do it, but it could be done. Or you could get a mesh for the ball from a 3D package like 3D Studio and import it.

You also might want to upgrade to DirectX 9. There are tons of tutorials on doing this sort of importing and manipulating objects in 3D :D

I hope this helps you out some.


Sincerely,
Randy Trulson
www.GamePotato.com
www.NeuronGames.com


[edited by - Randy of Neuron on June 2, 2004 12:27:06 PM]

Share this post


Link to post
Share on other sites
Well in both 2D and 3D a ball is very easy to represent as a position vector with a velocity vector and a radius. How you draw it is up to the graphics API you are using.

[edited by - Unwise owl on June 2, 2004 12:55:33 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!