[ITK] VTK6 migration and vtkImageData: "No scalar values found for texture input!" error in vtkOpenGLTexture

Sebastian Ordas sebastian.ordas at gmail.com
Wed Sep 24 10:48:55 EDT 2014


Hi Matt, I'm using almost the latest master (c0fa16c5)
I will enable the tests in my ITK build.

thank you!
sebastian

On Wed, Sep 24, 2014 at 11:42 AM, Matt McCormick <matt.mccormick at kitware.com
> wrote:

> Hi Sebastian,
>
> What version of VTK are you using?  Does the QuickViewTest (built as
> part of the ITKVtkGlue tests) executable work for you?
>
> Thanks,
> Matt
>
> On Tue, Sep 23, 2014 at 11:26 PM, Sebastian Ordas
> <sebastian.ordas at gmail.com> wrote:
> > Dear List,
> >
> > I have started getting the error "No scalar values found for texture
> input!"
> > coming from vtkOpenGLTexture, while porting my code to VTK6
> >
> > More precisely, I have a vtkImageData, generated by
> > itkImageToVTKImageFilter, which is mapped through vtkImageResliceMapper
> >
> > I have tried adding the following to itkImageToVTKImageFilter:
> >
> >   m_Importer->UpdateInformation();
> >   vtkStreamingDemandDrivenPipeline::SetUpdateExtent(
> >         m_Importer->GetOutputInformation(0 /*port number*/),
> >         0 /*piece*/,
> >         2 /*number of pieces*/,
> >         0 /*number of ghost levels*/);
> >   m_Importer->Update();
> >
> > .. but no luck!
> >
> > I have also tried:
> >
> > m_ImageData->GetPointData()->SetActiveAttribute (0,
> vtkPointData::SCALARS);
> >
> > didn´t work either...
> >
> > Any hint?
> >
> > thank you,
> > sebastian
> > _______________________________________________
> > Community mailing list
> > Community at itk.org
> > http://public.kitware.com/mailman/listinfo/community
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140924/b0a0c23c/attachment-0002.html>


More information about the Community mailing list