Hi,<br><br>The current version of KiwiViewer doesn't allow you to modify the in-app menu to add additional datasets.  You might want to try the DropBox app, it can be a convenient way to download datasets to the mobile device and KiwiViewer can be launched by selecting a dataset in a DropBox folder.<br>

<br>Is it possible to send me the vtp file you are using so I can try it out?<br><br>Pat<br><br><div class="gmail_quote">On Mon, Sep 3, 2012 at 8:31 PM, Joćo Domingos <span dir="ltr"><<a href="mailto:joao.sousa.domingos@gmail.com" target="_blank">joao.sousa.domingos@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Pat,<div><br></div><div>I have 2 arrays in the vtkPolyData:</div><div><br></div><div><div>  Number Of Arrays: 2</div><div>

  Array 0 name = ImageScalars</div><div>  Array 1 name = Normals</div><div><br></div><div>Deleting both does not change that.. It is still red. (I have not tried in Paraview)</div>

<div><br></div><div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Regarding scene description files, i Meant, is there a way to make the .kiwi visible in the Open Data (</span><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">builtin example scenes) menu? I guess, with your answer you meant no. Well, something for you guys to take into consideration for the next version.</span></div>



<div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Many thanks,</span></div>

<div>Joao</div><div><div class="h5"><div><br></div><div><br></div><br><div class="gmail_quote">On 3 September 2012 22:46, Pat Marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Joao,<br><br>Oh, perhaps this surface has a point data attribute array, like point ids or something?  Can you open the vtp file in ParaView and see if it has an attribute array?  If so, KiwiViewer will color the points using the attribute array.  There is no way to disable that and use solid coloring, and no way to use opacity.  If you delete the attribute array, then solid coloring and opacity should work.  You could do this in your pipeline, if you're using a c++ vtk pipeline, like:<br>





<br>// get the poly data at the end of the pipeline<br>vtkPolyData* myData = contourFilter->GetOutput();<br><br>// remove all point data arrays<br>while (myData->GetPointData()->GetNumberOfArrays())<br>  myData->GetPointData()->RemoveArray(0);<br>





<br><br>Regarding scene description files, KiwiViewer doesn't actually use any .kiwi files for the builtin example scenes.  Most of the builtin datasets are just regular surfaces.  The textured earth, brain atlas, and can animation are special purpose demos, and can't be described using the simple .kiwi file format.<span><font color="#888888"><br>





<br>Pat</font></span><div><div><br><br><br><div class="gmail_quote">On Mon, Sep 3, 2012 at 4:14 PM, Joćo Domingos <span dir="ltr"><<a href="mailto:joao.sousa.domingos@gmail.com" target="_blank">joao.sousa.domingos@gmail.com</a>></span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Pat,<div><br></div><div>Did some more testing and apparently the app is working fine. I was able to change colors and opacity of several datasets, except on the surface I told you about. The problem happens when you have an output of the following pipeline type:</div>







<div><br></div><div>vtkPolyData()(a mesh of points) -> vtkSurfaceReconstructionFilter() -> vtkContourFilter()</div><div><br></div><div>On the computer (meaning under normal VTK usage), this final vtkPolyData output can be represented with a different opacity (surf.GetProperty().SetOpacity(0.6) works), but color will always be red (surf.GetProperty().SetColor(0,1,0) does nothing). On the KiwiViewer color change again does not work for this surface (it is always red as in the computer) but, unexpectedly, opacity also doesn't work. Besides this specific case, I could represent my remaining datasets successfully and change colors and opacities.</div>







<div><br></div><div>One question, is there a way of including the <span style="line-height:19.049999237060547px;font-size:13px;font-family:sans-serif">scene description files (.kiwi) with the examples KiwiViewer already has?</span></div>







<div><span style="line-height:19.049999237060547px;font-size:13px;font-family:sans-serif"><br></span></div><div><span style="line-height:19.049999237060547px;font-size:13px;font-family:sans-serif">Many thanks,</span></div>







<div><span style="line-height:19.049999237060547px;font-size:13px;font-family:sans-serif">Joao</span></div><div><div><div><span style="line-height:19.049999237060547px;font-size:13px;font-family:sans-serif"><br>



</span></div><div><span style="line-height:19.049999237060547px;font-size:13px;font-family:sans-serif"><br></span></div><div><br></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">

On 31 August 2012 20:06, Joćo Domingos <span dir="ltr"><<a href="mailto:joao.sousa.domingos@gmail.com" target="_blank">joao.sousa.domingos@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







Hi Pat,<div><br></div><div>Good to hear from you. I tried what you gave me and still the 3D model is completely red (tried opacity of 0.1). I'm using KiwiViewer from Android app store on a Galaxy S3. Eventually I will try to compile my own version. Do you have any more ideas for the opacity to work? Also, are those the only settings we can program without compiling a copy? The 'model-tapping to disappear function' I told you about can be simply coded in a .kiwi metafile as well?</div>







<div>
<div><br></div><div>Many thanks for your time,</div></div><div>Joao</div><div><div><div><br></div><div><br><br><div class="gmail_quote">On 31 August 2012 16:17, Pat Marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>></span> wrote:<br>








<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>Sorry I did not notice your emails earlier!  Regarding the transparency bug, could you try reformating your .kiwi metafile so it lists the volume first, then the surface, and add commas for each empty column, like this:<br>










<br>filename,r,g,b,a<br><div>37fr15.mha,,,,</div><div>LV_surface.vtp,1.0,0.0,0.0,0.5<br><br>Does that work any better?  I've done a metafile just like this before with transparency on the surface and it worked correctly for me, but I can try again.  Are you using KiwiViewer from the Android app store, or did you compile your own copy for Android or iOS?<br>










<br>For the brain atlas, I hope that in future releases the demo can be easily configurable for new models.  Right now you could edit the models.txt file and replace the filenames, colors, and labels with your own, but the demo does require the skin and skull models to be present, and the initial position & scale of the clipping plane is hard coded.<br>










<br>Pat<br></div><div><br></div><br><br><div class="gmail_quote"><div><div>On Fri, Aug 31, 2012 at 2:55 AM, Joćo Domingos <span dir="ltr"><<a href="mailto:joao.sousa.domingos@gmail.com" target="_blank">joao.sousa.domingos@gmail.com</a>></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>Any help please?<div><br></div><div>Many thanks for your time,</div><div>Domingos</div>
<div><div>
<div><br></div><div><br><br><div class="gmail_quote">On 26 August 2012 20:53, Joćo Domingos <span dir="ltr"><<a href="mailto:joao.sousa.domingos@gmail.com" target="_blank">joao.sousa.domingos@gmail.com</a>></span> wrote:<br>













<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also, just like in the SPL-PNL Brain Atlas, can someone please tell me how do you program a specific surface (ex: brain structure) to show its legend and appear/disappear when touched? Would like to program that function into my surface so that it could appear disappear from a metafile volume (still with slicing capability embedded).<div>














<br></div><div>Many thanks,</div><div>Domingos</div><div><div><div><br></div><div><br></div><div><br><div class="gmail_quote">On 25 August 2012 17:07, Joćo Domingos <span dir="ltr"><<a href="mailto:joao.sousa.domingos@gmail.com" target="_blank">joao.sousa.domingos@gmail.com</a>></span> wrote:<br>














<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<div><br></div><div>I was able to load both a metafile and a surface with the following instructions:</div><div>














<br></div><div><div>filename,r,g,b,a</div><div>LV_surface.vtp,1,0,0,0.5</div><div>37fr15.mha</div><div>
<br></div><div>Another question: in the presence of a metafile volume, the <span style="line-height:19.049999237060547px;font-size:13px;font-family:sans-serif">transparency is not working on the surface. Do you know why? I have tried by putting everything 1 in the .mha.. but it is the same, no opacity change on the surface.</span></div>















<div><span style="line-height:19.049999237060547px;font-size:13px;font-family:sans-serif"><br></span></div><div><span style="line-height:19.049999237060547px;font-size:13px;font-family:sans-serif">Many thanks,</span></div>















<div><span style="line-height:19.049999237060547px;font-size:13px;font-family:sans-serif">Joao Domingos</span></div><div><div><div><span style="line-height:19.049999237060547px;font-size:13px;font-family:sans-serif"><br>















</span></div><div><span style="line-height:19.049999237060547px;font-size:13px;font-family:sans-serif"><br></span></div><br><div class="gmail_quote">On 25 August 2012 07:33, Joćo Domingos <span dir="ltr"><<a href="mailto:joao.sousa.domingos@gmail.com" target="_blank">joao.sousa.domingos@gmail.com</a>></span> wrote:<br>















<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Dear all,</span><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
















<br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">I have opened (on a PC) a 3D volume and fitted a 3D surface and now I would like to save both into a file so that I can open it in the KiwiViewer. In the latter I can open the .mha (.raw) volume and my surface.vtp file. The problem is, both are opened separately. Is there a way to save both on the same file and then open both at the same time with KiwiViewer?</div>
















<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Many thanks,</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Domingos</div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br></div></div>_______________________________________________<br>
Kiwiviewer mailing list<br>
<a href="mailto:Kiwiviewer@public.kitware.com" target="_blank">Kiwiviewer@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/kiwiviewer" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/kiwiviewer</a><br>
<br></blockquote></div><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br>