Originally posted by Madhur Baheti:
I am planning to make a simple game of snake in java. I thought why not make a 3D snake, but i couldn't find any 3D drawing classes in java sdk.
I just require basic 3D shapes like cuboids and spheres. Would i have to go for the java 3D API? I really don't want to invest much time in that.
Yes.
You should consider using Java3D.
You could render simple 3D shapes on the fly, without using a 3D API, but the cost of rendering will be enormous if you use transformations and shading which might make the game unplayable.
Java3D can use the underlying hardware accelaration to perform those computations much more faster. Investing some time can be worth it, since you can use it for other 3D stuff.
Good luck and post the game when it is done.
Raj
[ March 26, 2003: Message edited by: raj madhuram ]