3D in pure Java ?

I was looking at ( not using a Matrix :slight_smile: ) the amazing applets uploaded by some very talented guys
in the Java4k site. Fantastic works ,imho , particularly this one : Die Z by Alan Waddington.

http://www.java4k.com/index.php?action=games&method=view&gid=444

Reading the code and understand what’s going on unfortunately is beyond my skills.
Any tip about some 3d pure java tutorial?
The ones i have found around are only 2D.
Thanks !

I highly suggest not trying 3D in pure java after looking at that code. It’d be a nightmare. From my understanding of reading that code, it uses raycasting to determine what can be viewed on the screen and renders that. From there I get lost; I can’t be bothered spending hours trying to understand all the bitwise operations.

It’d probably be faster learning the full OpenGL spec from start to finish than reading that code.

OK , I got the message : better to fly low !
However you gave me a good tip , thx !

I have made a 3d game engine in java. its not very efficient mainly because it cannot be hardware accelerated without lots of work. I will gladly help you out with it if you like. Code from 4k is made by gods, its like trying to copy a brickwalls thoughts into a notebook.

I’ve actually learned a lot from 4k code. It can be hard to get a handle on, but can be very rewarding.

Of course you need to realize that for it to be viable, 3d in pure java needs to be very low-res (in every sense).

Making old-style (as in very old) 3d games could be viable and interesting, but anything more complex will probably hit a brick wall soon enough.

I personally have looked at the DieZ code myself, and think such a 3d engine can be interesting for certain retro-style game ideas I have. Love the grass effect in particular… But no, I can’t explain much about how exactly it is doing what it is doing. :slight_smile:

Yes, because opengl isnt used it cannot be hardware accelerated. I have achieved 200000 triangles at 30fps with some of my code for it