This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Should i use java 3d API

 
Madhur Baheti
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic