[vtkusers] Volume Rendering in iOS
Ken Martin
ken.martin at kitware.com
Tue Nov 3 13:21:27 EST 2015
Did the volume rendering example for iOS included with VTK work?
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
ken.martin at kitware.com
919 869-8871 (w)
This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee. Access to this email by anyone else is unauthorized. If you
are not the intended recipient, any disclosure, copying, distribution or
any action taken in reliance on it is prohibited and may be unlawful. If
you received this communication in error please notify us immediately and
destroy the original message. Thank you.
-----Original Message-----
From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of
YassminAbdallah
Sent: Tuesday, November 3, 2015 1:18 PM
To: vtkusers at vtk.org
Subject: [vtkusers] Volume Rendering in iOS
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/vtkOpenGLPolyDataMappe
r2D.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.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list