Text this: Neural Network-Based Projective Grid Model for Learning Representation of Surface and Wave Foams