<div><table><tbody><tr><td><div><div><div><div><div data-lang="2"><p>Hello!</p><p>Could you please tell me if it is possible to use several graphics cards on the same computer with vtkCompositeRenderManager feature?</p><p>I have found only the code below in vtkRenderWindow.h file:</p><p>š// Description:</p><p>š// If there are several graphics card installed on a system,</p><p>š// this index can be used to specify which card you want to render to.</p><p>š// the default is 0. This may not work on all derived render window and</p><p>š// it may need to be set before the first render.</p><p>švtkSetMacro(DeviceIndex,int);</p><p>švtkGetMacro(DeviceIndex,int);</p><p>š// Description:</p><p>š// Returns the number of devices (graphics cards) on a system.</p><p>š// This may not work on all derived render windows.</p><p>švirtual int GetNumberOfDevices()</p><p>š{</p><p>š šreturn 0;</p><p>š}</p><p>š</p><p>As the code shows the zero amount of devices is hard coded and there is no GetNumberOfDevices overlapped function in subclasses such as vtkXOpenGLRenderWindow š(only in vtkEGLRenderWindow classes for Android platform).</p><p>I also tried changing the DeviceIndex variable to different values but with no effect.</p><p>My environment: VTK nightbuild from December 17, VTK_RENDERING_BACKEND OpenGL2, archlinux 64 bit, GTX 285 and GeForce 8400.</p><div>š</div><p>So is the abovementiond code a stub for future implementations or can it be used for some real tasks already today?</p><p>š</p><p>I have also discovered that I can use vtkXOpenGLRenderWindow.SetDisplayId function instead of the the code above for rendering on several graphics cards. However, I am not sure if this is the best way considering there is also that code available. Please advise.</p><div>š</div><div>Thanks</div></div></div></div></div></div></td></tr></tbody></table><div>š</div></div>