<div dir="ltr">Hi,<div><br></div><div>(Sorry for multipost by mistake, I sent same question to <a href="mailto:ves@public.kitware.com">ves@public.kitware.com</a>.)</div><div><div class="gmail_quote"><div dir="ltr"><div>I'm trying to display a sequence of OBJ file (OBJ animation) with textures on kiwiviewer.</div>
<div><br></div><div>Based on the document</div><div><a href="http://www.vtk.org/Wiki/VES/KiwiViewer_Scene_File" target="_blank">http://www.vtk.org/Wiki/VES/KiwiViewer_Scene_File</a><br clear="all">
<div>and some trial and error, I have succeeded in displaying the following two cases:</div><div><br></div><div>(1) one frame of OBJ with a texture.</div><div>(2) a sequence of OBJs without texture.</div>
<div><br></div><div>However, I can't find how to display OBJ animation.</div><div><br></div><div>To display the case (1), I made a .kiwi file like below.</div><div><div>{</div><div><span style="white-space:pre-wrap">        </span>"objects": </div>

<div><span style="white-space:pre-wrap">  </span>[</div><div><span style="white-space:pre-wrap">                </span>{</div><div><span style="white-space:pre-wrap">                        </span>"filename": "model-00000.obj", </div>
<div><span style="white-space:pre-wrap">                  </span>"material": "model-00000.mtl",      </div><div><span style="white-space:pre-wrap">                      </span>"texture": "model-00000.png"   </div>
<div><span style="white-space:pre-wrap">          </span>}   </div><div><span style="white-space:pre-wrap">   </span>]</div><div>}</div><div><br></div><div>To display the case (2), I made a .kiwi file like below.<br></div><div>
<div>{  </div><div><span style="white-space:pre-wrap">       </span>"objects": </div><div><span style="white-space:pre-wrap">   </span>[</div><div><span style="white-space:pre-wrap">                </span>{      </div><div>
<span style="white-space:pre-wrap">                     </span>"frames_per_second": 30,</div><div><span style="white-space:pre-wrap">                       </span>"filenames": </div><div><span style="white-space:pre-wrap">                 </span>[</div>

<div>                                "model-00000.obj", </div><div>                                (partially omitted)</div><div>                                "model-00029.obj" </div></div><div>
                        ]</div><div>                 }</div><div>         ]</div><div>}</div><div><br></div><div>Both of above .kiwi files are successfully loaded on KiwiViewer.</div><div>But I can't find how to mix them and display a OBJ animation with textures.</div>

<div>For example, a trial like below didn't work.</div><div><div>{</div><div>    "objects": [</div><div>        {</div><div><span style="white-space:pre-wrap"> </span>    "frames_per_second": 4,</div>

<div><span style="white-space:pre-wrap">  </span>    "filenames":</div><div><span style="white-space:pre-wrap">     </span>    [</div><div><span style="white-space:pre-wrap">          </span>"model-00100.obj",</div>

<div><span style="white-space:pre-wrap">          </span>"model-00200.obj"</div><div><span style="white-space:pre-wrap">      </span>    ],           <span style="white-space:pre-wrap">                </span></div><div>            "materials":</div>

<div><span style="white-space:pre-wrap">  </span>    [</div><div><span style="white-space:pre-wrap">          </span> "model-00100.mtl",</div><div><span style="white-space:pre-wrap">            </span> "model-00200.mtl"</div>

<div><span style="white-space:pre-wrap">  </span>    ],</div><div><span style="white-space:pre-wrap"> </span>    "textures":</div><div><span style="white-space:pre-wrap">      </span>    [</div><div><span style="white-space:pre-wrap">          </span> "model-00100.png",</div>

<div>          <span style="white-space:pre-wrap">   </span> "model-00200.png"</div><div><span style="white-space:pre-wrap">     </span>     ]</div><div><span style="white-space:pre-wrap"> </span>}</div><div>
    ]</div><div>}</div><div><br></div></div><div>Could you please give me some hints fo how to make this work?</div><div>Any details of kiwi scene file are very welcome.</div><div>Thank you in advance.</div>
<div><br></div><div>Best regards,</div><div>Tomoyuki</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div></div></div></div>-- <br> 武 Tomoyuki MUKASA<br> 笠 <a href="mailto:mks.tmyk@gmail.com">mks.tmyk@gmail.com</a><br>
 知<br> 幸
</div></div>