[Paraview-developers] [ParaviewWeb] Nothing showed on client side

victor sv victorsv at gmail.com
Mon Jul 16 08:59:05 EDT 2012


Hi Seb,

it seems that  http://localhost:8080/PWSimple application works right, it
shows all renderers.

Maybe the probIem is that i'm newbie in javascript too... I send you the
index.jsp file and the log file. In the log file i get some warnings but i
don't know the meaning...

Thank you.
Víctor.

2012/7/16 Sebastien Jourdain <sebastien.jourdain at kitware.com>

> Hi Victor,
>
> the web page localhost:8080/PWService/test/index.jsp is really made
> for testing purpose...
> Meaning that, Selenium is used to execute some JavaScript code in that
> web page context and double check that the server is responding the
> way it is supposed to do.
>
> Did you tried any of the sample application provided with ParaViewWeb ?
>
> Like this one: http://localhost:8080/PWSimple/ ?
>
> If nothing is showing up then, it is likely that your ParaViewWeb
> server is not properly install. If not, then, I'll need the full web
> page because your JavaScript seems OK, if you do have some HTML
> container with id "container-1" like as follow.
>
> <html>
> <body>
> <div id="container-1">
> </div>
> </body>
> </html>
>
> Seb
>
> On Mon, Jul 16, 2012 at 3:33 AM, victor sv <victorsv at gmail.com> wrote:
> > Hi again,
> >
> > sorry for the previous mail, i wrote it very bad :)
> >
> > Ok, i want to see something in the client side, and i use the previous
> code
> > for that.
> > When i go to localhost:8080/PWService/test/index.jsp only "Page used for
> > testing purpose" message is showed.
> > Every time i reload the webpage i can see a new "Active process" in
> > localhost:8080/PWService/ , when i click in "View" link the renderer is
> > showed right.
> >
> > The same is happening with the new line, and nothing is showed in
> > localhost:8080/PWService/test/index.jsp, only "Page used for testing
> > purpose" . I would like to show the renderer in client side
> >
> > do you know how?
> >
> > I try with other renderers with the same result.
> >
> > Thanks :)
> > Víctor.
> >
> > 2012/7/14 Sebastien Jourdain <sebastien.jourdain at kitware.com>
> >>
> >> 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
> >> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120716/154b6060/attachment-0001.htm>
-------------- next part --------------
JMS Initialized in 0.141553 seconds

[... repeated warnings] 

Generic Warning: In /home/victor/paraviewweb/build/ParaView/src/ParaViewCore/ServerManager/vtkSMPropertyHelper.cxx, line 444
Failed to locate property: Camera3DManipulators

Generic Warning: In /home/victor/paraviewweb/build/ParaView/src/ParaViewCore/ServerManager/vtkSMPropertyHelper.cxx, line 680
Call not supported for the current property type.

Generic Warning: In /home/victor/paraviewweb/build/ParaView/src/ParaViewCore/ServerManager/vtkSMPropertyHelper.cxx, line 444
Failed to locate property: Camera3DManipulators

Generic Warning: In /home/victor/paraviewweb/build/ParaView/src/ParaViewCore/ServerManager/vtkSMPropertyHelper.cxx, line 715
Call not supported for the current property type.

[... repeated warnings]

sessionID : 98323
logLevel : ERROR
Processing Engine Initialized in 1.19636 seconds
invoke message

Processing engine is started !
Rendering: Total time to produce image: (s) 4.00543e-05 - compression time: 0
Rendering: Server framerate: 0.830899
invoke message

[... repeated warnings]


invoke message
Rendering: Send Image of size (bytes): 6414
Rendering: Total time to produce image: (s) 0.054467 - compression time: 0.00643897
Rendering: Server framerate: 6.39983
invoke message
Rendering: Send Image of size (bytes): 6414
Rendering: Total time to produce image: (s) 0.0316069 - compression time: 0.00815797
Rendering: Server framerate: 25.9985
invoke message
Rendering: Send Image of size (bytes): 6414
Rendering: Total time to produce image: (s) 0.0129068 - compression time: 0.00610495
Rendering: Server framerate: 60.3758
Configure message
Rendering: Send Image of size (bytes): 3397
Rendering: Total time to produce image: (s) 0.076705 - compression time: 0.00598788
Rendering: Server framerate: 3.34484
Update server configuration:
 - EnableRendering: 1
 - Image delivery type: 1
 - Geometry delivery type: 1 with size 10000000
Rendering: Send Image of size (bytes): 7985
WebGL Exporter: Send metadata of size (bytes): 1847
WebGL Exporter: Send object of size (bytes): 185 cf9874def2930c36f50a0eb4006cf6ff 47645472
WebGL Exporter: Send object of size (bytes): 69685 0f5dc6039ebb5bee5a1feb97472da0c1 55962864
WebGL Exporter: Send object of size (bytes): 113 cd495bff301901466336c153b77393e1 47677648
WebGL Exporter: Send object of size (bytes): 113 1553bb1f792f1e5710015f9cfcce4249 47679408
WebGL Exporter: Send object of size (bytes): 113 200d29c0bc74809aac4d419695aed43e 47681232
WebGL Exporter: Send object of size (bytes): 1181 fed2e49b2e4fdcbd1fea49b623efcfb8 47683056
WebGL Exporter: Send object of size (bytes): 1181 4667a03696725dc638c9119059384bc9 47684880
WebGL Exporter: Send object of size (bytes): 1181 6a3dbbcaec7dbc24cdc39e21eb1aee0d 47686704
WebGL Exporter: Send object of size (bytes): 541 c9c900857be71b66031939ce5a924511 47758000
WebGL Exporter: Send object of size (bytes): 473 b0b8e5eac58fd038201974b30b24d08b 47760352
WebGL Exporter: Send object of size (bytes): 439 d4c3d2a90fabea16a6997e605dbbc50d 47763024
Rendering: Total time to produce image: (s) 0.0880122 - compression time: 0.00596905
Rendering: Server framerate: 11.3358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: index.jsp
Type: application/octet-stream
Size: 962 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120716/154b6060/attachment-0001.obj>


More information about the Paraview-developers mailing list