GOOD tutorials and sample code for DirectX/OpenGL?

Can someone please point me to good tutorials for developing 3D games in Java using DirectX and OpenGL? I’ve read throught the ones at http://java.sun.com and I’m looking for something a bit more stimulating. I also want to see a good collection of sample code, perhaps snippets that show specific things in 3d programming.

Thanks,

Knight

I’m assuming that you mean Java3D - there are other ways of programming with OGL in java, so it is useful to specify a bit. Good starting places include www.j3d.org and the Selman book, which is available online ( http://www.manning.com/selman/ ) and, once you get a bit deeper into it, the Java3D-interest mailing list.

if you don’t want to use Java3D, there are greats tutorials for GL4Java (http://www.jausoft.com/gl4java) at http://web.hypersurf.com/~sully/OpenGL/DemoBox.html
also take a look at the LWJGL (http://java-game-lib.sourceforge.net/).
and please don’t use Directx with java, because directx only works on window$…

I started by reading a J3d tutorial from IBM some time ago.
Go here:
http://www.ibm.com/developerworks/java

Then select Education and then Tutorials, they have some nice on other topics, too.

(I think you have to register, but they don’t want much info and it’s free)

Can we use Java3D to implement 2D games? will the effect be good? using DirectX and OpenGL

If you’re looking at developing in 2D you may be better using one of the openGL interfaces. DirectX doesn’t really offer you anything that openGL doesn’t so you might as well stick with one API.

Check out nehe.gamedev.net for opengl tutorials.