max-mapper / voxel-hello-world

a template voxel game repo you can use to build your own voxel games
http://maxogden.github.com/voxel-engine
63 stars 64 forks source link

invisible textures with three.js r55/r56 #17

Closed max-mapper closed 11 years ago

max-mapper commented 11 years ago

Screen Shot 2013-03-12 at 3 43 24 PM

also a mysterious <pre> gets added to the page...

to reproduce:

clone this repo, npm install && npm start

max-mapper commented 11 years ago

cc @shama

shama commented 11 years ago

Just an update. I don't think it's the textures. The materials get applied correctly to other geometries. I think something is going on in the mesher. All of the vertexColors on a mesh are the same. Will continue to look into why.

jeromeetienne commented 11 years ago

according to webgl inspector, no texture is uploaded to gpu. so it would not be invisible but inexistant from a gpu point of view

jeromeetienne commented 11 years ago

putting everybody on three r56 and voxel-engine 0.14.1 helps. no more webgl warning. and the game is actually running. highlighter + character are seen. but still no voxel

timoxley commented 11 years ago

more evidence it's not a texture issue: new Game({meshType: 'wireMesh'… also has same behaviour

timoxley commented 11 years ago

Got it… voxel-mesh doesn't use the game's THREE instance, and is using the old THREE version.

timoxley commented 11 years ago

peer dependencies perhaps?

max-mapper commented 11 years ago

BAHHH ok fixing. and adding peerdeps

shama commented 11 years ago

Nice catch @timoxley!