<div dir="ltr">Hi,<div><br></div><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">http://www.vtk.org/Wiki/VES/KiwiViewer_Scene_File</a><br clear="all">
<div style>and some trial and error, I have succeeded in displaying the following two cases:</div><div style><br></div><div style>(1) one frame of OBJ with a texture.</div><div style>(2) a sequence of OBJs without texture.</div>
<div style><br></div><div style>However, I can't find how to display OBJ animation.</div><div style><br></div><div style>To display the case (1), I made a .kiwi file like below.</div><div style><div>{</div><div><span class="" style="white-space:pre">    </span>"objects": </div>
<div><span class="" style="white-space:pre">    </span>[</div><div><span class="" style="white-space:pre">          </span>{</div><div><span class="" style="white-space:pre">                  </span>"filename": "model-00000.obj", </div>
<div><span class="" style="white-space:pre">                    </span>"material": "model-00000.mtl",      </div><div><span class="" style="white-space:pre">                    </span>"texture": "model-00000.png"   </div>
<div><span class="" style="white-space:pre">            </span>}   </div><div><span class="" style="white-space:pre">     </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 class="" style="white-space:pre">     </span>"objects": </div><div><span class="" style="white-space:pre"> </span>[</div><div><span class="" style="white-space:pre">          </span>{      </div><div>
<span class="" style="white-space:pre">                       </span>"frames_per_second": 30,</div><div><span class="" style="white-space:pre">                 </span>"filenames": </div><div><span class="" style="white-space:pre">                       </span>[</div>
<div>                                "model-00000.obj", </div><div style>                                (partially omitted)</div><div>                                "model-00029.obj" </div></div><div>
                        ]</div><div>                 }</div><div>         ]</div><div>}</div><div><br></div><div style>Both of above .kiwi files are successfully loaded on KiwiViewer.</div><div style>But I can't find how to mix them and display a OBJ animation with textures.</div>
<div style>For example, a trial like below didn't work.</div><div style><div>{</div><div>    "objects": [</div><div>        {</div><div><span class="" style="white-space:pre">       </span>    "frames_per_second": 4,</div>
<div><span class="" style="white-space:pre">    </span>    "filenames":</div><div><span class="" style="white-space:pre">       </span>    [</div><div><span class="" style="white-space:pre">            </span>"model-00100.obj",</div>
<div><span class="" style="white-space:pre">            </span>"model-00200.obj"</div><div><span class="" style="white-space:pre">        </span>    ],           <span class="" style="white-space:pre">              </span></div><div>            "materials":</div>
<div><span class="" style="white-space:pre">    </span>    [</div><div><span class="" style="white-space:pre">            </span> "model-00100.mtl",</div><div><span class="" style="white-space:pre">              </span> "model-00200.mtl"</div>
<div><span class="" style="white-space:pre">    </span>    ],</div><div><span class="" style="white-space:pre">   </span>    "textures":</div><div><span class="" style="white-space:pre">        </span>    [</div><div><span class="" style="white-space:pre">            </span> "model-00100.png",</div>
<div>          <span class="" style="white-space:pre"> </span> "model-00200.png"</div><div><span class="" style="white-space:pre">       </span>     ]</div><div><span class="" style="white-space:pre">   </span>}</div><div>
    ]</div><div>}</div><div><br></div></div><div style>Could you please give me some hints fo how to make this work?</div><div style>Any details of kiwi scene file are very welcome.</div><div style>Thank you in advance.</div>
<div style><br></div><div style>Best regards,</div><div style>Tomoyuki</div><div style><br></div></div>-- <br> 武 Tomoyuki MUKASA<br> 笠 <a href="mailto:mks.tmyk@gmail.com">mks.tmyk@gmail.com</a><br> 知<br> 幸
</div></div>