[Paraview] ParaviewWeb 4 - WebGL renderer camera reset and background issue

Bogdan Daqui Herrera bdaqui at simscale.de
Mon Dec 2 12:21:19 EST 2013


Hi Kyr,

The way I am doing that is by switching the renderer for the viewport in
the javascript code I use on the client-side with:

pv.viewport.setActiveRenderer("webgl");

It might however not be enough, as it turns out. My camera orientation
keeps resetting, but that I will describe that in my next post.

Kind Regards,
Bogdan

Bogdan
On 02.12.2013 18:10, Albrecht Kyrieleis wrote:
> Hi Bogdan,
> I want to use WebGl with paraviewWeb 4 and JettySessionManager. So far I
> am using the PV binary and have defined my own protocol that works fine.
> At which places in the setup do you have to do alterations to get webgl
> rendering running ? Where can I get more information on that ?
> 
> Many thanks,
> 
> Kyr
> 
> On Dec 2, 2013 9:51 AM, "Bogdan Daqui Herrera" <bdaqui at simscale.de
> <mailto:bdaqui at simscale.de>> wrote:
> 
>     Hello all,
> 
>     I have run into a couple of issues while using the WebGL renderer in
>     ParaviewWeb 4. Could you help me out with some pointers or possible
>     workarounds for these problems.
> 
>     1. Camera View being reset
>     The camera orientation and position are always being reset after
>     performing different operations, such as:
>     -Activating/De-activating the scalarbar
>     -Choosing between point/face data for the ColorBy selection
>     -Adding a filter into the current pipeline
>     -Rescaling
>     -advancing to the next file/time-step in the Data Source.
> 
>     2. Background other than black
>     This happens when a background of a different colour, for example a
>     gradient of white and grey is chosen. If I alter the camera position or
>     orientation, this background (which is in this case represented by a
>     rectangle with the selected colours) can move out of the field-of view,
>     it does not stay in a fixed position relative to the camera meaning the
>     black regular background is in most part visible.
> 
>     Both issues happen only when using the WebGL renderer. When switching to
>     the software renderer, the behaviour is as expected.
> 
>     Kind Regards,
>     Bogdan
> 
>     --
>     Bogdan Daqui
>     Software Development
> 
>     SimScale GmbH
>     Lichtenbergstraße 8
>     85748 Garching bei München
> 
>     Phone: +49 (0)89 3398 4078 <tel:%2B49%20%280%2989%203398%204078>
>     Email: bdaqui at simscale.de <mailto:bdaqui at simscale.de>
> 
>     Amtsgericht München, HRB 201813
>     Geschäftsführer: Vincenz Dölle & David Heiny
> 
>     http://www.simscale.de
>     _______________________________________________
>     Powered by www.kitware.com <http://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 ParaView Wiki at:
>     http://paraview.org/Wiki/ParaView
> 
>     Follow this link to subscribe/unsubscribe:
>     http://www.paraview.org/mailman/listinfo/paraview
> 


More information about the ParaView mailing list