I am looking for a script which could give a continuous numerical info about how far my 3D viewing point is from view center / view pivot-point, while I’m scrolling the MOUSE WHEEL.
I was already searching from forum, but I only could find scripts which acting in static manner: select start point - select end point - click for result.
Its not quite as simple as you might like.
are 2 values that set the view position.
The view “offset” - Window Python modulke can get this. its the point that you pivod around when you rotate the view. Then theres the ‘dist’ - Only accessable from C as far as I know. thats the viewports distance from the central offset, notice of you keep zooming in, at some point you cant zoom in any more (prespective mode).
First, have a go ad finding the dist between your view offset and 0,0,0.
I was asking about viewing distance info, because I think it would handy tool for LOD objects evaluation. I could easily compare how different LOD objects (in separate layers) are looking from certain distances.
This would cut down the work load, because proper LOD1/2/3 object optimizing and min/max distance values finalising could already done in Blender. Well, at least pretty close to the final version.
For lods your better off using the view matrix and the objects bounding box.
With these you can calculate the size of the box in screenspace and see what lod to set it at.