View Full Version : Show cartesian coordinate system on top a cube?

11-10-2014, 09:49 AM
Hi, I have a cube that can be rotated, zoomed in and out etc but I need to display Cartesian coordinate system on top of it.

How would I go about doing this?


Agent D
11-11-2014, 12:44 AM
Do you want to draw model space coordinate axes or some kind of grid?

You somehow managed to draw an object (a cube), with coordinates specified in model space that are then transformed to camera local space
and projected. If you can do that with a cube, I don't see why you can't do that with bunch of lines or some fancy arrow models.

Or is the problem the "drawing on top" part? How about drawing axes or arrows big enough, so they are sure to peek out of the cube? If it is
just a bunch of lines, what about disabling depth testing?