[Paraview-developers] [ParaviewWeb] Nothing showed on client side
Sebastien Jourdain
sebastien.jourdain at kitware.com
Sat Jul 14 10:39:55 EDT 2012
You need to enable the webgl exporter on the server side as by default
we only generate images...
paraview.updateConfiguration(true, "JPEG", "WebGL");
On Fri, Jul 13, 2012 at 9:03 AM, victor sv <victorsv at gmail.com> wrote:
> Hi all,
>
> I'm trying to show something in the client side, but i can see the renderer
> in PWService. I use the following javascript code:
> <script type="text/javascript">
> var serverURL = 'http://localhost:8080/PWService';
> var paraview = new Paraview(serverURL);
> paraview.createSession('testing','basic-test');
> var activeView = paraview.CreateIfNeededRenderView();
>
> var cyl = paraview.Cylinder();
> cyl.setResolution(1024)
> paraview.Show();
>
> var renderer = new webGLScriptRenderer("webgl", serverUrl);
> renderer.init(paraview.sessionId, activeView.__selfid__);
> renderer.setSize('640','480');
> renderer.bindToElementId("container-1");
> renderer.setForceSquareSize(true);
> renderer.start();
>
> </script>
>
> What am i doing wrong?
>
> Best regards,
> Víctor.
>
> _______________________________________________
> 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