[vtkusers] VTK6 migration and vtkImageData: "No scalar values found for texture input!" error in vtkOpenGLTexture
Sebastian Ordas
sebastian.ordas at gmail.com
Sun Oct 12 20:24:36 EDT 2014
you were right! The error was an empty vtkTextActor on the opposite
corner of my application!
problem solved. thank you David and Cory
sebastian
On 11/10/2014 10:00 p.m., David Gobbi wrote:
> Hi Sebastian,
>
> Your first email said that the error is coming from vtkOpenGLTexture.
> Are you using vtkTexture anywhere in your code? Or maybe the
> vtkTextMapper, which uses vtkTexture for rendering text? You can
> test by temporarily removing all actors from your program that display
> tex to see if this stops the error. The vtkImageResliceMapper itself
> does not use vtkOpenGLTexture, so it cannot be the source of the error.
>
> - David
>
>
> On Sat, Oct 11, 2014 at 6:42 PM, Sebastian Ordas
> <sebastian.ordas at gmail.com> wrote:
>> thank you, but it is still throwing the same error
>> this is killing me ...
>>
>> I will keep trying
>>
>> best regards,
>> sebastian
>>
>>
>> On 10/10/2014 02:32 p.m., Cory Quammen wrote:
>>> Sebastian,
>>>
>>> Perhaps in your problem code, you could invoke one of the
>>> SetInputArrayToProcess() variants on your vtkImageResliceMapper:
>>>
>>>
>>> http://www.vtk.org/doc/nightly/html/classvtkAlgorithm.html#a6bea16e1329609dbccce0ff8d2367484
>>>
>>> I believe the name of the scalars in the output of
>>> itkImageToVTKImageFilter is "scalars".
>>>
>>> Cory
>>>
>>> On Tue, Sep 30, 2014 at 5:02 PM, Sebastian Ordas
>>> <sebastian.ordas at gmail.com> wrote:
>>>> Hi Cory,
>>>>
>>>> I set up an example code, but I could not reproduce the error :-(
>>>> The example is attached anyway, in case someone wants to have a look at
>>>> it
>>>>
>>>> I will keep searching the source of the error in my application and will
>>>> come back to the list with any finding
>>>>
>>>> thank you!
>>>> sebastian
>>>>
>>>>
>>>> On 29/09/2014 12:32 p.m., Cory Quammen wrote:
>>>>> 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
>>>>>>
>> _______________________________________________
>> 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