[vtkusers] Volume Rendering in iOS
YassminAbdallah
yassminabdallah at gmail.com
Tue Nov 3 13:17:35 EST 2015
hello,
i trying to run volume rendering example in iOS using DICOM images, but i
get those errors,
ERROR: In
/Users/Yassmin/desktop/VTKBin/VTK/Rendering/OpenGL2/vtkOpenGLPolyDataMapper2D.cxx,
line 850
vtkOpenGLPolyDataMapper2D (0x7fae62e6d7f0): failed after RenderOverlay 1
OpenGL errors detected
0 : (1286) Unknown error
ERROR: In
/Users/Yassmin/desktop/VTKBin/VTK/Rendering/OpenGL2/vtkTextureObject.cxx,
line 1485
vtkTextureObject (0x7fae62e6c120): failed at glTexImage2D 1 OpenGL errors
detected
0 : (1282) Invalid operation
ERROR: In
/Users/Yassmin/desktop/VTKBin/VTK/Rendering/OpenGL2/vtkTextureObject.cxx,
line 554
vtkTextureObject (0x7fae62e6c120): failed at glBindTexture(0) 1 OpenGL
errors detected
0 : (1286) Unknown error
and here is sample code,
vtkNew<vtkOpenGLGPUVolumeRayCastMapper> volumeMapper;
vtkNew<vtkDICOMImageReader> reader ;
reader->SetDirectoryName("Users/Yassmin/Desktop/sample");
reader->Update();
double range[2];
reader->GetOutput()->GetPointData()->GetScalars()->GetRange(range);
volumeMapper->SetInputConnection(reader->GetOutputPort());
Thanks in advance
--
View this message in context: http://vtk.1045678.n5.nabble.com/Volume-Rendering-in-iOS-tp5734785.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list