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

textures don't work? #135

Open omnidan opened 6 years ago

omnidan commented 6 years ago

I tried getting a project up and running with the following code:

import createGame from 'voxel-engine'

const game = createGame({
    materials: [
        ['grass', 'dirt', 'grass_dirt'],
        'obsidian',
        'brick',
        'grass',
        'plank',
        'whitewool'
    ],
    texturePath: './textures/'
})

I already put all my textures in the correct folder and they are even loading properly in the browser. However, textures are not being displayed on the blocks (the player texture works but it's a bit buggy, note the black lines on the sides of the arms):

screenshot

I also tried the exact code from the website, using browserify, it still did not work (same problems).

Any idea what could be wrong here?

BTW: I also have extreme FPS drops when flying around, even without any textures. there are also issues with chunks loading properly (see screenshot) - is this library still being developed at all?