Camera position and direction API

Issue #177 open
Ali Ozdemir created an issue

It would be nice to have an api call that controls the location & direction of the camera.

Comments (3)

  1. Ali Koc
    • changed status to open

    Rather than low level camera and direction, perhaps what would be useful is the ability to zoom in and out of an object.

    In fact more like, having the ability to focus on an object, in which case graphic would zoom extend to the object only and draw everything translucent except the object would be drawn solid.

    Would this approach serve what you want to do?

  2. Ali Ozdemir reporter

    Yes, It may work but I need to see in action. Let me explain my use case&problem, and you can come up with a good approach:

    Right now when we create an object in OPENBRIM using API, graphic window doesn't change the location of the camera. I think this feature should stay as it is but when the drawn object is not inside the camera view angle, we should do something otherwise user has to click zoom extents button in order to see it. I want to call a function similar to zoom extents from API with one exception.I will hide all other stories and I would like show my active story from a good angle. So I would like to use zoom extents for all visible objects and openbrim can do auto zoom extents for the case that I explained(last drawn object not inside the camera view angle etc)

  3. Ali Koc

    You basically want to hide part of the structure and zoom extent to the visible structure. You can currently hide structure using ObjectSetVisible() method of OBrIMConn object. There is now also GraphicsZoomExtent() method allowing you to zoom extend the visible structure.

    You can download the latest connection library using this link:

    https://goo.gl/RCOFvn

  4. Log in to comment