aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Should i use java 3d API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Should i use java 3d API" Watch "Should i use java 3d API" New topic
Author

Should i use java 3d API

Madhur Baheti
Greenhorn

Joined: Nov 30, 2000
Posts: 12
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.
raj madhuram
Ranch Hand

Joined: Oct 10, 2001
Posts: 71
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Should i use java 3d API