fenomas / noa

Experimental voxel game engine.
MIT License
611 stars 87 forks source link

How to texture blocks with images? #107

Closed sourcerose closed 4 years ago

sourcerose commented 4 years ago

I feel stupid asking this, but when I try to texture a block using the image url in the example files I get this: image

fenomas commented 4 years ago

Hi, I'm not sure but I think that's Babylon's "texture didn't load" texture, so my first guess would be something mundane like a typo in the image url path, or maybe something with webpack settings related to paths? If you check the browser's dev console there may be errors showing what path was loaded.

Alternately, if you try running the test world (with npm test rather than npm start in the examples repo), there are some textured blocks in that world which should hopefully be a reference!

sourcerose commented 4 years ago

Ahhh, I found my issue. Turns out you have to put the Assets in the docs/helloworld folder. I should've read console.