bbarker / BlockSmith

BlockSmith is currently an experiment in the ways of MineCraft-like voxel games.
Mozilla Public License 2.0
0 stars 1 forks source link

Fix rendering of blocks #1

Closed bbarker closed 8 years ago

bbarker commented 8 years ago

The problem doesn't appear to be an issue of camera/position; I've verified the velocity trajectory exists as in the Java version, so the initial view should be the same.

Loading textures also isn't the issue (at least not the only issue); if we don't load textures in the Java version, we see white blocks, as opposed to no blocks.

Disabling initializeData gets us closer to the mark, but at least in the Java version, but we can sometimes see a wireframe of whatever block we are nearby or maybe looking at, which doesn't seem to be the case in the Scala version.

bbarker commented 8 years ago

Fixed in e46983e426b252b9ba20cdaf7f84f618ccb9fa8e

Had to place some ground blocks, which somehow didn't get copied over during code translation:

  // Place a ground layer of blocks
  for {
    xx <- 0 until 16
    zz <- 0 until 16
  } yield {
    data(xx)(0)(zz) = 1
  }