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

Cory Quammen cory.quammen at kitware.com
Mon Sep 29 11:32:26 EDT 2014


Sebastian,

Could you post a small, working example program that demonstrates the problem?

Thank you,
Cory

On Mon, Sep 29, 2014 at 11:25 AM, Sebastian Ordas
<sebastian.ordas at gmail.com> wrote:
> Dear List,
>
> (I just realized I sent my message to ITK list instead of VTK!)
>
> 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
>
>
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/vtkusers
>


More information about the vtkusers mailing list