[Paraview-developers] Image reduction factor

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon May 14 10:24:13 EDT 2012


Out of curiosity, why can't your painter make use of the OpenGL stack?
Painters always can access OpenGL state, there's nothing in VTK
precludes them from doing so.

Utkarsh


On Sat, May 12, 2012 at 4:23 PM, Biddiscombe, John A. <biddisco at cscs.ch> wrote:
> Well, I tried everything to get access to the subsample factor. I overrode every painter, intercepted every call to everything, but was not able to get it.
> Finally, I had to insert this in my painter
>
>  IceTInt ids;
>  icetGetIntegerv(ICET_NUM_TILES,&ids);
>  IceTInt *vp=new IceTInt[4*ids];
>  icetGetIntegerv(ICET_TILE_VIEWPORTS,vp);
>
> and this does return the correct viewport, adjusted down.
>
> It seems that if you use a painter that doesn't make use of the standard modelview matrix settings which are put there during (presumably) the ice Camera pass, then it isn't possible to access the adjusted viewport.
>
> My trouble being that my mapper uses software only and does not make use of the OpenGL transform stack.
>
> Please tell me if there's some other way.
>
> Ta
>
> JB
>
> -----Original Message-----
> From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com]
> Sent: 04 April 2012 18:43
> To: Biddiscombe, John A.
> Cc: paraview-developers at paraview.org
> Subject: Re: [Paraview-developers] Image reduction factor
>
> If I remember correctly, the only thing that changes when subsample rate is specified is the viewport on the renderer.
>
> On Wed, Apr 4, 2012 at 11:46 AM, Biddiscombe, John A. <biddisco at cscs.ch> wrote:
>> Utkarsh.
>>
>> 'Fraid not. This still only returns the same size as the renderwindow, setting the interactive subsample rate to N doesn't make the size smaller.
>>
>> I'll keep trying. thanks anyway.
>>
>> JB
>>
>> -----Original Message-----
>> From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com]
>> Sent: 04 April 2012 17:25
>> To: Biddiscombe, John A.
>> Cc: paraview-developers at paraview.org
>> Subject: Re: [Paraview-developers] Image reduction factor
>>
>> Look at  vtkSurfaceLICPainter (Perhaps PrepareForRendering() ). I believe you may be missing using the GetTiledSizeAndOrigin(). I cannot remember the details off the top of my head, but that should give you a starting point.
>>
>> Utkarsh
>>
>> On Tue, Apr 3, 2012 at 7:03 PM, Biddiscombe, John A. <biddisco at cscs.ch> wrote:
>>> I've got a custom mapper which does its own compositing and works
>>> fine, except during interactive renders in parallel.
>>>
>>>
>>>
>>> During interaction, the subsample rate>1 and the viewport coordinate
>>> transform I'm using is wrong.
>>>
>>>
>>>
>>> Problem is, from the mapper, I just don't know how to get the
>>> subsample rate. I've tried to get hold of the composite render
>>> manager, but failed so far.
>>>
>>>
>>>
>>> If anyone knows, please tell.
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> JB
>>>
>>>
>>>
>>>
>>>
>>> --
>>>
>>> John Biddiscombe,                        email:biddisco @.at.@
>>> cscs.ch
>>>
>>> http://www.cscs.ch/
>>>
>>> CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91)
>>> 610.82.07
>>>
>>> Via Trevano 131, 6900 Lugano, Switzerland   | Fax:  +41 (91)
>>> 610.82.82
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Paraview-developers mailing list
>>> Paraview-developers at paraview.org
>>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>>


More information about the Paraview-developers mailing list