Sign in to follow this  
PunchFox

Pre-existing voxel tools/libraries for Java

Recommended Posts

PunchFox    102

I want to do some development which requires manipulating and rendering voxel data. My interest is more in the project its self, rather then things like working out rendering optimization techniques, which I know have been done a billion times by other people.

 

However, all the existing libraries I can find seem to be for other languages. I have found PolyVox, which seems great, but I'd really much rather use Java for this. Are there any fleshed out libraries?

 

If there are none,I'm assuming I'm stuck using LWJGL and building something from scratch. Can anyone recommend some thorough tutorials on the subject? Specifically voxels. I've found tutorials which cover the latest version of LWJGL, but use Shaders for rendering. I've heard VBO's are better for rendering voxels. Is this true? (I know the last bit of this questions is in a different scope, but I didn't want to make an entirely seperate thread. Sorry!)

 

Thanks so much for all the help!

Share this post


Link to post
Share on other sites
ninnghazad    468

A really interesting read and brilliant code:
https://research.nvidia.com/publication/efficient-sparse-voxel-octrees
 

There really isn't much around for voxels considering java.
However depending on your design, big part of the work would probably happen on gpu anyhow.
You'd just need to port/reinvent feeding of your voxel-structure-of-choice to gpu in java.
Sparse octrees do really well for displaying, but may be a hassle to use when manipulating.
Using them for dynamic data means a lot of rebuilding the tree or parts of it. 
On VBO's... that really depends how you want to render your voxels - are you thinking raytracing or rasterization?
Going for minecraftesque blocks or small 'real' voxels?

Needs moar info.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this