Manual zig zag encoding + geometry encoding (first pass)