I did something wrong above when trying to set the colors. The box is aparently created without any color information for the vertices, so the loop that tries to set vertex colors does not work. This code
mathematically you can’t multiply a vec3 and a mat4x4 you need to have the same number of rows as columns in the matrix to be able to multiply 2 matrices.
when multiplying a 3d vector by a 4x4 matrix the most common thing to do is to add a 1 as the w coordinate multiply by the 4x4 matrix and then get the results xyz. if the matrix has any projective transformation instead of affine (scale, traslation and rotation are all affine transformations) then you would need to divide the result by the resulting w:
although this is the most common thing to do there’s cases in which you might want to add a 0 as w instead of 1 or even other numbers, that’s why glm doesn’t do it automatically as ofVec3f/ofMatrix4x4 did. this is all related to homogeneous coordinates if you want to know more details about it