Walters.Robert Posted January 22, 2019 Share Posted January 22, 2019 I'm attempting to have a 3 view set up. Ultimately I want a single view Group for out the window with sub-views as left, center, and right. When I modify the default Cigi demo the left and right views do not act as children which distorts the final blended image. After defining a view like the following: cigi->getView(view_id)->setDefinition(0.01f, 40000.0f, -48.5572f, 48.5572f, 32.5f, -32.5f); //set the near & far clipping planes as well as the horizontal & vertical FOV vec3 view_angle = vec3(0.0f, 0.0f, -4.03366f); //defines view rotation about x, y, and z cigi->getView(view_id)->setRotationEuler(view_angle); //rotates the view how do I assign it to a viewGroup? Link to comment
cash-metall Posted January 23, 2019 Share Posted January 23, 2019 Hi! CigiClient can work with ViewGroup: Cigi::IViewGroup * view_group = cigi->getViewGroup(0); Cigi::IView * view = cigi->getView(1); view->setDefinition(/*...*/); view->setParentGroup(view_group); view_group->setRotationEuler(vec3(10,20,30)); it also works through host packages: In the view-definition package you need to specify the parent group_id. Then, in the view-control package you need insert same group_id (view_id will be ignored) Link to comment
Recommended Posts