[Paraview-developers] vtkContext2D and vtkBrush issues in Paraview 5.0.1 with OpenGL2

Stefano Perticoni stefano.perticoni at gmail.com
Tue Jun 7 07:12:11 EDT 2016


Ok the problem with texture trasparency and color has been workarounded by
setting directly the color in the texture scalars.

Regards,
Stefano

On Mon, Jun 6, 2016 at 6:55 PM, Stefano Perticoni <
stefano.perticoni at gmail.com> wrote:

> Replace "brush" with "texture pattern" in mail text...
> Il 06/Giu/2016 18:09, "Stefano Perticoni" <stefano.perticoni at gmail.com>
> ha scritto:
>
>> Dear Developers,
>>
>>
>> I'm trying to make this snippet work under Paraview 5.0.1 and OpenGL2.
>>
>> The following snippet is OK with Paraview 4.2 and 4.4 versions (OpenGL1) but with 5.0.1 (OpenGL2 build) setting both brush and color will show brush only.
>>
>>
>> virtual bool Paint(vtkContext2D *painter)
>> {
>>
>> .....
>>           this->Brush->SetTexture(myTexturePattern);
>>           this->Brush->SetColor(myColor);
>> .....
>>
>>           painter->ApplyBrush(this->Brush);
>> .....
>>
>> }
>>
>>
>> Everything is OK if I set brush only or color only while mixed mode shows brush only.
>>
>>
>> Thank you for any hints,
>>
>>
>> Regards,
>>
>> Stefano
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160607/cda1833a/attachment-0001.html>


More information about the Paraview-developers mailing list