max-mapper / voxel-engine

3D HTML5 voxel game engine
http://maxogden.github.com/voxel-engine
BSD 3-Clause "New" or "Revised" License
1.29k stars 220 forks source link

water voxels #80

Open max-mapper opened 11 years ago

max-mapper commented 11 years ago

shouldn't be tooooo hard if we implement water as a new kind of chunk that draws on it's own

kumavis commented 10 years ago

To be clear, this is about the requirement for transparent blocks, not flowing blocks

max-mapper commented 10 years ago

yea transparent-ness is more difficult than flowing I think

shama commented 10 years ago

Both will be solved simultaneously by switching to ndarray/gl-now :)

Although the latest version of voxel-texture@0.5.7 does handle transparency quite a bit better.

deathcap commented 10 years ago

Porting to ndarray would be cool, but in the meantime, I think the three.js-based voxel.js is now only missing mesher support. With voxel-texture 0.5.7 or voxel-texture-shader 0.1.1, partially transparent water voxels are not looking too bad:

screen shot 2014-02-22 at 6 55 11 pm

but there is still the problem of meshing these voxels to fix the 'xray' effect when adjacent to opaque. Some existing progress on this (a 'transgreedy' mesher), filed a new issue here to track: https://github.com/maxogden/voxel/issues/16