[Insight-users] [vtkusers] problems with rendering using ray casting
Prathamesh Kulkarni
prathameshmkulkarni at gmail.com
Wed Sep 21 11:21:36 EDT 2011
Okay. I am using Windows 7 Professional. The OpenGL version is 1.1 with
8.17.12.5957. Here is a detailed report:
Renderer: GDI Generic
Vendor: Microsoft Corporation
Memory: 4095 MB
Version: 1.1.0
Shading language version: N/A
Max texture size: 1024 x 1024
Max texture coordinates: 0
Max vertex texture image units: 0
Max texture image units: 0
Max geometry texture units: 0
Max anisotropic filtering value: 0
Max number of light sources: 8
Max viewport size: 16384 x 16384
Max uniform vertex components: 0
Max uniform fragment components: 0
Max geometry uniform components: 0
Max varying floats: 0
Max samples: 0
Max draw buffers: 0
Extensions: 3
GL_EXT_bgra
GL_EXT_paletted_texture
GL_WIN_swap_hint
Core features
v1.1 (100 % - 7/7)
v1.2 (0 % - 0/6)
v1.3 (0 % - 0/9)
v1.4 (0 % - 0/14)
v1.5 (0 % - 0/3)
v2.0 (0 % - 0/10)
v2.1 (0 % - 0/3)
v3.0 (0 % - 0/23)
v3.1 (0 % - 0/7)
v3.2 (0 % - 0/10)
v3.3 (0 % - 0/9)
v4.0 (0 % - 0/13)
v4.1 (0 % - 0/5)
v4.2 (0 % - 0/12)
OpenGL driver version check (Current: 1.1.0, Latest known: 8.17.12.5957):
Outdated version of display drivers detected
According the database, you are might be not using the latest version of
display drivers for your video card.
No ICD registry entry
The current OpenGL driver doesn't expose the SOFTWARE/Microsoft/Windows
(NT)/CurrentVersion/OpenGLDrivers registry entry. Unable to detect the
driver version, driver revision name and filename.
No compiled vertex array support
This may cause performance loss in some applications.
No multitexturing support
This may cause performance loss in some applications.
No secondary color support
Some applications may not render polygon highlights correctly.
No S3TC compression support
This may cause performance loss in some applications.
No texture edge clamp support
This feature adds clamping control to edge texel filtering. Some programs
may not render textures correctly (black line on borders.)
No vertex program support
This feature enables vertex programming (equivalent to DX8 Vertex Shader.)
Some current or future OpenGL programs may require this feature.
No fragment program support
This feature enables per pixel programming (equivalent to DX9 Pixel Shader.)
Some current or future OpenGL programs may require this feature.
No OpenGL Shading Language support
This may break compatibility for applications using per pixel shading.
No Frame buffer object support
This may break compatibility for applications using render to texture
functions.
Few texture units found
This may slow down some applications using fragment programs or extensive
texture mapping.
Extension verification:
GL_EXT_color_subtable was not found, but has the entry point
glColorSubTableEXT
GL_EXT_gpu_shader4 was not found, but has the entry point
glColorSubTableEXT
GL_EXT_paletted_texture has the entry point glDrawArraysInstancedEXT
missing!
GL_EXT_paletted_texture has the entry point glDrawElementsInstancedEXT
missing!
GL_EXT_texture_compression_rgtc was not found, but has the entry point
glColorTableEXT
GL_EXT_texture_compression_rgtc was not found, but has the entry point
glGetColorTableEXT
GL_EXT_texture_compression_rgtc was not found, but has the entry point
glGetColorTableParameterfvEXT
GL_EXT_texture_compression_rgtc was not found, but has the entry point
glGetColorTableParameterivEXT
GL_WIN_swap_hint has the entry point glClearDepthfOES missing!
GL_WIN_swap_hint has the entry point glClipPlanefOES missing!
GL_WIN_swap_hint has the entry point glDepthRangefOES missing!
GL_WIN_swap_hint has the entry point glFrustumfOES missing!
GL_WIN_swap_hint has the entry point glGetClipPlanefOES missing!
GL_WIN_swap_hint has the entry point glOrthofOES missing!
GL_EXT_draw_buffers2 was not found, but is available in driver version
1.1.0
GL_EXT_texture_compression_rgtc was not found, but is available in driver
version 1.1.0
Prathamesh
On Wed, Sep 21, 2011 at 9:27 AM, Aashish Chaudhary <
aashish.chaudhary at kitware.com> wrote:
> You card supports OpenGL 4.1 which is quite new where as the code for
> vtkOpenGLVolumeTextureMapper3D is written to support earlier versions.
> What I am saying is that some of the extensions required are now may
> be in core (rather than being extensions).
>
> What OS / driver you are using? Also can you send us the output of glxinfo?
>
> Thanks,
>
>
> On Wed, Sep 21, 2011 at 10:04 AM, Prathamesh Kulkarni
> <prathameshmkulkarni at gmail.com> wrote:
> > I am using Nvidia 6000 Quadro card which supposedly has support for
> OpenGL.
> > Prathamesh
> >
> > On Wed, Sep 21, 2011 at 12:38 AM, alex Dowson <alexdowson at hotmail.com>
> > wrote:
> >>
> >> Hi
> >>
> >> I think you’r graphic card doesnot have this extension supported. Do you
> >> have any GPU based card ? like ATI Radeon or Nvidia ?
> >>
> >> Alex
> >>
> >> From: Prathamesh Kulkarni
> >> Sent: Wednesday, September 21, 2011 9:32 AM
> >> To: VTK Mailing List ; insight-users at itk.org
> >> Cc: Luisi, Jonathan D
> >> Subject: [Insight-users] problems with rendering using ray casting
> >>
> >>
> >> Hello,
> >>
> >> I am trying to render a volume (mhd file read as ITKImage<float, 3>)
> using
> >> VTK ray casting. I have tried to use the different available mappers,
> but
> >> the output is always only background. For the mappers using OpenGL, I
> get
> >> the error: line 100 vtkOpenGLVolumeTextureMapper3D (0000000003270440):
> >> required extensions not supported. Below is my code. Any help would be
> very
> >> useful.
> >>
> >>
> >> typedef itk::ImageToVTKImageFilter<ImageType3D>
> >> ITKToVTKConnectorType;
> >> ITKToVTKConnectorType::Pointer ITK_to_VTK_connector =
> >> ITKToVTKConnectorType::New();
> >>
> >> ITK_to_VTK_connector->SetInput(data_ptr);
> >> ITK_to_VTK_connector->Update();
> >>
> >> vtkSmartPointer<vtkImageData> vtk_image =
> >> ITK_to_VTK_connector->GetOutput();
> >>
> >> // Testing vtk image
> >> vtk_image->PrintSelf(std::cout, vtkIndent(0));
> >>
> >> vtkSmartPointer<vtkRenderer> renderer =
> >> vtkSmartPointer<vtkRenderer>::New();
> >> renderer->SetBackground(1.0, 1.0, 1.0);
> >> vtkSmartPointer<vtkRenderWindow> render_window =
> >> vtkSmartPointer<vtkRenderWindow>::New();
> >> render_window->AddRenderer(renderer);
> >> vtkSmartPointer<vtkRenderWindowInteractor> render_window_interactor =
> >> vtkSmartPointer<vtkRenderWindowInteractor>::New();
> >> render_window_interactor->SetRenderWindow(render_window);
> >> vtkSmartPointer<vtkPiecewiseFunction> opacity_transfer_function =
> >> vtkSmartPointer<vtkPiecewiseFunction>::New();
> >> /*opacity_transfer_function->AddPoint(20, 0.0);
> >> opacity_transfer_function->AddPoint(25, 0.2);
> >> */
> >>
> >> vtkSmartPointer<vtkColorTransferFunction> color_transfer_function =
> >> vtkSmartPointer<vtkColorTransferFunction>::New();
> >> /*color_transfer_function->AddRGBPoint(0.0, 0.0, 0.0, 0.0);
> >> color_transfer_function->AddRGBPoint(64.0, 1.0, 0.0, 0.0);
> >> color_transfer_function->AddRGBPoint(128.0, 0.0, 0.0, 1.0);
> >> color_transfer_function->AddRGBPoint(192.0, 0.0, 1.0, 0.0);
> >> color_transfer_function->AddRGBPoint(255.0, 0.0, 0.2, 0.0);
> >> */
> >>
> >> vtkSmartPointer<vtkVolumeProperty> volume_property =
> >> vtkSmartPointer<vtkVolumeProperty>::New();
> >> volume_property->SetColor(color_transfer_function);
> >> volume_property->SetScalarOpacity(opacity_transfer_function);
> >> volume_property->ShadeOn();
> >> volume_property->SetInterpolationTypeToLinear();
> >> volume_property->SetIndependentComponents(1);
> >>
> >> vtkSmartPointer<vtkVolumeRayCastCompositeFunction> composite_function =
> >> vtkSmartPointer<vtkVolumeRayCastCompositeFunction>::New();
> >> //vtkSmartPointer<vtkVolumeRayCastMapper> volume_mapper =
> >> vtkSmartPointer<vtkVolumeRayCastMapper>::New();
> >> //vtkSmartPointer<vtkFixedPointVolumeRayCastMapper> volume_mapper =
> >> vtkSmartPointer<vtkFixedPointVolumeRayCastMapper>::New();
> >> vtkSmartPointer<vtkOpenGLVolumeTextureMapper3D> volume_mapper =
> >> vtkSmartPointer<vtkOpenGLVolumeTextureMapper3D>::New();
> >> //vtkSmartPointer<vtkGPUVolumeRayCastMapper> volume_mapper =
> >> vtkSmartPointer<vtkGPUVolumeRayCastMapper>::New();
> >> //vtkSmartPointer<vtkOpenGLGPUVolumeRayCastMapper> volume_mapper =
> >> vtkSmartPointer<vtkOpenGLGPUVolumeRayCastMapper>::New();
> >>
> >> //volume_mapper->SetVolumeRayCastFunction(composite_function);
> >> volume_mapper->SetInput(vtk_image);
> >> volume_mapper->SetBlendModeToComposite();
> >> //volume_mapper->SetBlendModeToMaximumIntensity();
> >> //volume_mapper->SetScalarMode(1);
> >> volume_mapper->SetSampleDistance(0.2);
> >>
> >> vtkSmartPointer<vtkVolume> volume = vtkSmartPointer<vtkVolume>::New();
> >> volume->SetMapper(volume_mapper);
> >> volume->SetProperty(volume_property);
> >> volume->Update();
> >> render_window->Render();
> >> renderer->AddVolume(volume);
> >> renderer->ResetCamera();
> >> render_window_interactor->Initialize();
> >> render_window->Render();
> >> render_window_interactor->Start();
> >>
> >>
> >> Thanks,
> >> Prathamesh
> >>
> >> ________________________________
> >> _____________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Kitware offers ITK Training Courses, for more information visit:
> >> http://www.kitware.com/products/protraining.html
> >>
> >> Please keep messages on-topic and check the ITK FAQ at:
> >> http://www.itk.org/Wiki/ITK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.itk.org/mailman/listinfo/insight-users
> >
> >
> > _______________________________________________
> > 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
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
>
>
>
> --
> | Aashish Chaudhary
> | R&D Engineer
> | Kitware Inc.
> | www.kitware.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110921/7c36584f/attachment.htm>
More information about the Insight-users
mailing list