@Sascha: I'd use color picking if i could but I'm not texturing voxels and I don't plan to. To do color picking in this scenario I guess I'd have to render geometry with unique colours and then change them to proper values from some reference texture?
@User137: yeah, I'm using your engine as a reference from time to time but picking there is done in a way I've described in my previous post. Where do I get model matrix from if glGetDoublev(GL_MODELVIEW_MATRIX) doesn't seem to do it's job?
Internet says GL_SELECT is obsolete and shouldn't be used anymore
edit: another problem with color picking is that I have tons of cubes on the scene so lookup would be costly unless I encode cube coords into color..
Bookmarks