Hi Everyone I'm trying to build a screen ruler that measures the size of 3d objects. I'm building an application that has 4 orthographic views, similar to that of 3DS Max where users can build simple geometry using Top, Left, Front views etc. On each of these views I need a 2D ruler going across the top and down the side, similar to the ones in Photoshop to allow users to accurately measure what they are creating. I'm at the point where I'm rendering the scale based on a percentage that is the camera's distance from the viewport origin (0,0,0).
This is inaccurate and doesn't work because it doesn't take into account the selected object's distance from the camera. I think the scale of the ruler needs to be sensitive to the selected object. I'm using something similar to Greg Caldwell's awesome Bezier Patch demo (http://www.geepers.co.uk/software/bezier_patch_tutorial.html) to do the geometry creation, so I can get the screenVertex of the selected bezier node, but I'm stuck trying to work out the scale of the ruler. Could anyone offer any advice or ideas? Cheers Robbie
