<div dir="ltr">What version of VTK are you using?<div><br></div><div>- Aashish<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 3, 2015 at 1:17 PM, YassminAbdallah <span dir="ltr"><<a href="mailto:yassminabdallah@gmail.com" target="_blank">yassminabdallah@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
hello,<br>
<br>
i trying to  run  volume rendering example in iOS using DICOM images, but i<br>
get those errors,<br>
<br>
ERROR: In<br>
/Users/Yassmin/desktop/VTKBin/VTK/Rendering/OpenGL2/vtkOpenGLPolyDataMapper2D.cxx,<br>
line 850<br>
vtkOpenGLPolyDataMapper2D (0x7fae62e6d7f0): failed after RenderOverlay 1<br>
OpenGL errors detected<br>
 0 : (1286) Unknown error<br>
<br>
<br>
ERROR: In<br>
/Users/Yassmin/desktop/VTKBin/VTK/Rendering/OpenGL2/vtkTextureObject.cxx,<br>
line 1485<br>
vtkTextureObject (0x7fae62e6c120): failed at glTexImage2D 1 OpenGL errors<br>
detected<br>
 0 : (1282) Invalid operation<br>
<br>
<br>
ERROR: In<br>
/Users/Yassmin/desktop/VTKBin/VTK/Rendering/OpenGL2/vtkTextureObject.cxx,<br>
line 554<br>
vtkTextureObject (0x7fae62e6c120): failed at glBindTexture(0) 1 OpenGL<br>
errors detected<br>
 0 : (1286) Unknown error<br>
<br>
<br>
<br>
and here is sample code,<br>
<br>
<br>
vtkNew<vtkOpenGLGPUVolumeRayCastMapper> volumeMapper;<br>
vtkNew<vtkDICOMImageReader> reader ;<br>
reader->SetDirectoryName("Users/Yassmin/Desktop/sample");<br>
reader->Update();<br>
double range[2];<br>
reader->GetOutput()->GetPointData()->GetScalars()->GetRange(range);<br>
volumeMapper->SetInputConnection(reader->GetOutputPort());<br>
<br>
<br>
Thanks in advance<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Volume-Rendering-in-iOS-tp5734785.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/Volume-Rendering-in-iOS-tp5734785.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader         <br>| Kitware Inc.            <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</div></div></div>