<div dir="ltr">Hi Paul,<div><br></div><div style>I&#39;m not sure the Alpha is supported in our current implementation.</div><div style><br></div><div style>Seb</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Oct 21, 2013 at 2:49 PM, Paul Graham <span dir="ltr">&lt;<a href="mailto:meteorpaul@gmail.com" target="_blank">meteorpaul@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hi Sebastien,<br></div><div><br></div><div>Thanks for your instructions, they were very helpful.  I basically changed drawScene() to render just one scene in the cache (rather than all of them) and the animation is working.<br>


<br></div><div>Now I have to try and figure out why the alpha levels are not working.<br><br></div><div>Paul<br></div><div><br><br></div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">
On 21 October 2013 11:59, Sebastien Jourdain <span dir="ltr">&lt;<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">As far a I remember, this.objects is only the cache of all possible objects that can compose the scene.<div>

To create an animation, you first need all your objects in the cache and then you need to update the scene to only pick the objects that are part of the scene for a given time step.</div>
<div><br></div><div>Hopefully that will help you out.</div><div><br></div><div>Seb</div><div><br></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Oct 19, 2013 at 10:17 PM, Paul Graham <span dir="ltr">&lt;<a href="mailto:meteorpaul@gmail.com" target="_blank">meteorpaul@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Sebastien,<br><br></div>I attempted to setup a basic animation as proof of concept by creating an array of scenes and then, in &#39;drawScene()&#39;, updating &#39;this.objects[scenelayer].data = newdata&#39;, where scenelayer is one component of the static scene and &#39;newdata&#39; is a base64 decoded string from the array of scenes.  <br>




<br>Unfortunately, thus far I have not been successful in getting the scene to update.  I wonder if it might be an object scoping issue with &#39;this.objects&#39;.  <br><br></div>Any ideas as to what might be the best approach?<br>




<br>Thanks,<br><br></div>Paul<div><div><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 17 October 2013 07:17, Sebastien Jourdain <span dir="ltr">&lt;<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes you got it.<div>It is exactly that, providing all the objects needed with all the time steps and just then a list of scene graph for each time step. Then just switching from one scene to another.</div>





<div><br></div><div>Seb</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 16, 2013 at 3:57 AM, Paul Graham <span dir="ltr">&lt;<a href="mailto:meteorpaul@gmail.com" target="_blank">meteorpaul@gmail.com</a>&gt;</span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Seb,<br><br>Thanks for your reply.  I have to say the Webgl scene export is excellent, even as simple as it is at the present time.  I hope it will be developed further.<br>





<br>Unfortunately I cannot see the axes in the exported Webgl scene, though they appear in Paraview. <br>
<br></div>I am still interested in animating the scene and have been delving into the code.  As far as I can tell, at least simplistically, I would have to update the &#39;objects&#39; array at regular intervals to get a basic animation.  My plan is to take the relevant base64 scene files and somehow incorporate them into an animation (hopefully!).  <br>






<br>Cheers,<br><br>Paul<div><div><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 16 October 2013 14:38, Sebastien Jourdain <span dir="ltr">&lt;<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>&gt;</span> wrote:<br>






<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Paul,<div><br></div><div>the WebGL exporter is very limited and just export basic geometry but the exported scene should reflect what you were seeing in ParaView with no animation or possible customization of the generated scene. The axes should be present though if they were while exporting.</div>







<div><br></div><div>Seb</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Sun, Oct 13, 2013 at 6:45 AM, Paul Graham <span dir="ltr">&lt;<a href="mailto:meteorpaul@gmail.com" target="_blank">meteorpaul@gmail.com</a>&gt;</span> wrote:<br>







</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hi Everyone,<br><br></div><div>In creating and exporting a Paraview scene to Webgl, I have been unable to:<br>







<br>i) Set opacity<br></div><div>ii) Show axes<br></div><div>iii) Zoom<br></div><div>iv) Animate<br>
<br></div><div>Does anyone know if these features are available in Paraview&#39;s Webgl feature at the present time (Oct 14, 2013) or have I overlooked something that would enable them?<br><br></div><div>Thanks,<br><br></div>








<div>Paul<br></div></div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Paul Graham<br>Email: <a href="mailto:meteorpaul@gmail.com" target="_blank">meteorpaul@gmail.com</a><br>
Mobile: 0403003784
</font></span></div>
</blockquote></div><br></div>