i'm not good at 3d math (and openGL in general) at all - and i don't really want to learn right now, i just want to get this bit done. there are plenty of tutorials for heightmaps but i can't find examples of drawing an object on top of the heightmap - eg. (1) find the height of a point inside a heightmap cell, translate to that point (2) rotate to align with the cell's plane, so i can draw an object on it (so that the plane's normal is the up direction).
i think (1) should be easy, just adding some vectors. but i'm not sure how to do (2).
i'm not very familiar with glm but i think i should use this to do the math.
i hope i am making sense. any help would be appreciated. thanks