[vtkusers] Volume Rendering in iOS

Aashish Chaudhary aashish.chaudhary at kitware.com
Tue Nov 3 13:20:58 EST 2015


What version of VTK are you using?

- Aashish

On Tue, Nov 3, 2015 at 1:17 PM, YassminAbdallah <yassminabdallah at gmail.com>
wrote:

>
> 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.
> _______________________________________________
> 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
>



-- 



*| Aashish Chaudhary | Technical Leader         | Kitware Inc.            *
*| http://www.kitware.com/company/team/chaudhary.html
<http://www.kitware.com/company/team/chaudhary.html>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151103/3fb7d6a4/attachment.html>


More information about the vtkusers mailing list