i want to write a game for which i need few sphere control, how can i write those plz help.... . . . . .
i dont know how its done, but just need a way to do that
Printable View
i want to write a game for which i need few sphere control, how can i write those plz help.... . . . . .
i dont know how its done, but just need a way to do that
Well, it depends on how you want the sphere to look like.
I think the fastest way it to have the sphere pre-drawn in a bitmap so that you just "copy & paste" it in your game.
Another way is to simply draw a circle, and fill the colors in the circle to make it look like a sphere. I think there are algorithms out there that let you draw fake spheres...
Another way is ray-tracing. This is the most accurate and it will look perfect, but it is also the slowest method. So since you said this is for a game, it is not really an option because it is way to slow for a game.