[vtkusers] (no subject)

Stefan sps.mindworks at googlemail.com
Tue Aug 5 02:58:09 EDT 2008


Hello,

 

I'm developing a GPU based raycaster that I'd like to integrate into vtk. I
am fairly new to vtk, so please be patient if my questions seem to be
trivial.

 

I obviously need hardware acceleration for the program, but somehow I seem
to be unable to get it working. I'm developing under Vista and created a
render window by calling 

 

HWND myHandle = (HWND)this->Handle.ToPointer();

renderWindow=vtkWin32OpenGLRenderWindow::New();

renderWindow->SetParentId(myHandle);

 

int isHardwareAccelerated = renderWindow->IsDirect();

 

from a .NET user control. Unfortunately renderWindow->IsDirect() always
returns 0.

 

 Furthermore (IMHO as a result of the problem explained above) I can not
load any OpenGL extensions:

 

vtkOpenGLExtensionManager *extensions = vtkOpenGLExtensionManager::New();

extensions->SetRenderWindow(this->renderWindow);

 int supports_GL_1_3=extensions->ExtensionSupported("GL_VERSION_1_3");

 int supports_GL_1_4=extensions->ExtensionSupported("GL_VERSION_1_4");

 int supports_GL_1_5=extensions->ExtensionSupported("GL_VERSION_1_5");

 int supports_GL_2_0=extensions->ExtensionSupported("GL_VERSION_2_0");

 

gives me all zeros. 

 

Is there a method to enable hardware acceleration or am I missing a step? Or
do you have any Idea how to identify the problem?

 

Thanks in advance!

 

Cheers,

 

Stefan

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080805/bd5e4c7a/attachment.htm>


More information about the vtkusers mailing list