-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Add a mesher with transparent material support
voxel-texture 0.5.7+ and voxel-texture-shader 0.1.1+ now support semitransparent textures (screenshots in deathcap/voxel-texture-shader#7 (comment)), but the current meshers in 'voxel' do not. Testing with the 'greedy' mesher: placing transparent voxels on top of opaque voxels lets you see through the opaque voxels (xray effect).
@vogonistic developed a mesher called 'transgreedy' a while back, available here: https://github.com/vogonistic/mineflayer-voxel/blob/d2c541d3d83a3f16d55390b98668ce7e4a4ab1dd/transgreedy.js - it does seem to work in some cases:
but needs more testing, so I haven't PR'd it yet. May need to be updated for the latest voxel-engine (last updated a year ago), or other fixes. Tentative list of problems I've noticed so far:
- Uses wrong textures? Not sure if this is my bug (needs more isolation), but in my testing I've noticed leaves use the water texture (and so does water). As in the screenshot above. transgreedy sets the 16th bit if transparent, may need to be changed?
- Placed transparent voxels still exhibit the xray effect — unlike the generated voxels in the above screenshot, which are fine. No idea what is going on here, but if I place the same voxels myself, it xrays:
- Bottom face not transparent? (place voxel on ground, see through it)
- Incessant flickering - overlapping faces?


