![]() Clicking on a "corner" of the cube orients the camera between the three associated faces.Īlso, note that the viewing cube has a built-in animation that provides a smooth transition between camera orientations. Clicking on an "edge" of the cube orients the camera between the two associated faces. Notice that the viewing cube provides many more options than just the primary axes. Using SoViewingCube to animate the camera to a predefined orientation. This animation shows the viewing cube in action: In this way, the viewing cube provides the same options as the predefined view buttons while using much less screen space and reducing the complexity of the user interface. ![]() ⇒ Clicking on any part of the viewing cube makes the camera rotate (around its current focal point ) until the camera is facing the corresponding part of the scene. ![]() In any case, these buttons or menu items use a lot of screen space, clutter the user interface, and may be hard to find. They may be called front and back, posterior and anterior, or other industry-specific names. 3D applications often present the user with a selection of predefined views. Camera Interactionīut SoViewingCube is much more than a passive display object! It also provides a convenient and powerful way for users to interact with the scene camera. Of course, you can specify which corner of the window ('position' field), the size of the viewport ('size' field), and other options we will describe later. You just add it to the scene graph, like any other shape, and attach it to the scene camera (SoCamera). SoViewingCube tracking the current camera orientation. Many 3D applications need a "compass" or "gnomon" object that dynamically updates to show the user the current orientation of the scene camera, as shown in this animation. Another example is the Halo Highlighting feature that provides an elegant visual indication for selected objects. With Open Inventor 10, we are continuing to provide new and improved tools to enhance the user experience for Open Inventor based applications. The SoViewingCube class is a new user interface component that provides visual feedback about the current orientation of the scene camera and also gives the user a convenient way to select predefined camera orientations.
0 Comments
Leave a Reply. |