Mon, 03/14/2011 - 21:29
Forums:
I have a single context and single viewer, but create multilple views so the scene can be viewed from different directions. For each view I create a Visual3d_Layer so that I can add text and linework. I'd like to add different text to each view. Unfortunately, all views appear to draw the same overlay layer, the last one I created. Is there any way to get different views of the same context to use different overlays? For performance reasons I'd really like to avoid creating 4 different viewers and 4 different contexts, each containing an identical set of shapes.
Thu, 03/22/2012 - 14:03
Handle(V3d_Viewer) myViewer;
...
Handle(V3d_View) myView1 = myViewer->CreateView();
Handle(V3d_View) myView2 = myViewer->CreateView();
then you can set different projections by SetProj method on each view
this way you do not need to have different viewers or contexts
Fri, 02/18/2022 - 15:21
Can you give an idea how do you add more than one viewer? Others start in black for a separate window.