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

Sebastien Jourdain sebastien.jourdain at kitware.com
Mon Dec 2 13:09:31 EST 2013


You can probably download any nightly binary and just get the new "www"
directory with the python code vtk/web/* + paraview/web/*.
That might just work. ;-)

Seb

PS: As you noticed, make sure you clear your browser cache.


On Mon, Dec 2, 2013 at 11:02 AM, Bogdan Daqui Herrera <bdaqui at simscale.de>wrote:

> Ah, that should be it. Mine is around 3-4 weeks old. I will recompile it
> in its entirety, but as a starting point for this particular isue, what
> needs to be recompiled, or is it just the javascripts that need to be
> updated?
>
> Bogdan
>
> On 02.12.2013 18:59, Sebastien Jourdain wrote:
> > Hum,
> >
> > that should work then.
> > I've fixed it a week or 2 ago. Are you using the latest ParaView/master
> > from git?
> >
> > Seb
> >
> >
> >
> > On Mon, Dec 2, 2013 at 10:37 AM, Bogdan Daqui Herrera
> > <bdaqui at simscale.de <mailto:bdaqui at simscale.de>> wrote:
> >
> >     Hi Seb,
> >
> >     I have located the file and key where the value should, I assume, be
> set
> >     on the web deployment: vtkweb-all.js.
> >
> >     The key value combination seem to be in:
> >     DEFAULT_OPTIONS = {
> >             keepServerInSynch: true
> >     }
> >
> >     which I have set to true. In the web-browser, after deleting the
> cache,
> >     I can see this is the current key-value combination, however
> >     synchronisation is not completed. I tried placing the key-value in
> >     quotes as well, without any effect.
> >
> >     I am switching the WebGL renderer on with
> >     pv.viewport.setActiveRenderer("webgl");
> >
> >     Should this be enough or I am still missing some configuration
> values?
> >
> >     The vtkweb.viewport.webgl.js itself is in the ParaView sources under:
> >     src/VTK/Web/JavaScript/Lib/vtkweb.viewport.webgl.js, but its
> contents is
> >     also in vtkweb-all.js, which is deployed for the web-app as well as
> in
> >     the different examples.
> >
> >     Kind Regards,
> >     Bogdan
> >
> >
> >     On 02.12.2013 17:56, Sebastien Jourdain wrote:
> >     > Hi Bogdan,
> >     >
> >     > To fix the issue #1, you just need to add a property at the
> >     construction
> >     > of the viewport in order to keep client and server in synch.
> >     > I don't remember the key/value pair but if you look inside the
> >     > xxx.webgl.js, you should find out.
> >     > Moreover, once the JS documentation get regenerated after the next
> >     > gatekeeper review, this will be well described.
> >     >
> >     > For the #2, this is definitely a new bug that will need to be
> >     addressed.
> >     >
> >     > Thanks for your feedback,
> >     >
> >     > Seb
> >     >
> >     >
> >     > On Mon, Dec 2, 2013 at 2:51 AM, Bogdan Daqui Herrera
> >     <bdaqui at simscale.de <mailto:bdaqui at simscale.de>
> >     > <mailto: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>
> >     <tel:%2B49%20%280%2989%203398%204078>
> >     >     Email: bdaqui at simscale.de <mailto:bdaqui at simscale.de>
> >     <mailto: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>
> >     <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
> >     >
> >     >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131202/537a4f96/attachment.htm>


More information about the ParaView mailing list