Skip to content

Transgreedy mesher #16

@deathcap

Description

@deathcap

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:

screen shot 2014-02-22 at 7 09 25 pm

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:

screen shot 2014-02-23 at 12 30 11 am

  • Bottom face not transparent? (place voxel on ground, see through it)

screen shot 2014-02-23 at 12 33 47 am

  • Incessant flickering - overlapping faces?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions