[vtk-developers] vtk-glTF

Lucas Gandel lucas.gandel at kitware.com
Mon Jan 7 04:38:32 EST 2019


Following up on this, I've been trying to integrate Assimp into VTK to
perform skinning/skeletal animation.
First results look very promising. I'll try to share a branch within the
next few weeks when it is ready.


On Fri, Nov 30, 2018 at 7:31 PM Milef, Nicholas Boris <milefn at rpi.edu>
wrote:

> I also integrated Assimp with a fork of VTK before as well, but it was for
> something very specific because we needed bone weights/indices. However,
> from what I understand, Assimp seems to internally process the mesh data,
> so you may get slightly different results than the vtkOBJReader (for
> instance) because of vertex reordering.
>
> ------------------------------
> *From:* Alexis Girault [alexis.girault at kitware.com]
> *Sent:* Friday, November 30, 2018 12:37 PM
> *To:* Milef, Nicholas Boris; Aashish Chaudhary; Mathieu Westphal
> *Cc:* Ken Martin; Steve Pieper; vtk-developers at public.kitware.com
> *Subject:* Re: [vtk-developers] vtk-glTF
>
> Nicholas Milef from RPI was the one who inquired about ASSIMP in VTK:
> http://vtk.1045678.n5.nabble.com/Assimp-integration-td5741474.html
> CCing in case he wants to follow up on it
>
> Nick also integrated ASSIMP in iMSTK. To answer your question Aashish:
> - iMSTK has its own data structure for geometries that uses Eigen:
> https://gitlab.kitware.com/iMSTK/iMSTK/tree/master/Source/Geometry/Mesh
> - The ASSIMP importer converts (copies) the data from ASSIMP to those
> internal Eigen structures:
> https://gitlab.kitware.com/iMSTK/iMSTK/blob/master/Source/Geometry/Reader/imstkAssimpMeshIO.cpp
> - The geometry vertices are mapped to a VTK data array with no copy:
> https://gitlab.kitware.com/iMSTK/iMSTK/blob/85c154f1/Source/Rendering/VTKRenderer/RenderDelegate/imstkVTKSurfaceMeshRenderDelegate.cpp#L48-52
>
> Alexis Girault
> R&D Engineer in Medical Computing
> Kitware, Inc.
>
> http://www.kitware.com
> (919) 969-6990 x325
>
>
> On Fri, Nov 30, 2018 at 10:50 AM Sebastien Jourdain <
> sebastien.jourdain at kitware.com> wrote:
>
>> I would love that, but I'm not aware of any.
>>
>> On Fri, Nov 30, 2018 at 8:46 AM Matt McCormick <
>> matt.mccormick at kitware.com> wrote:
>>
>>> Are there any plans for a glTF reader in vtk.js? With a writer in VTK,
>>> this may be an efficient path for VTK/ITK output in WebAssembly rendered in
>>> vtk.js.
>>>
>>> - Matt
>>>
>>> On Fri, Nov 30, 2018 at 10:23 AM Ken Martin via vtk-developers <
>>> vtk-developers at public.kitware.com> wrote:
>>>
>>>> Has anyone looked into putting assimp into VTK?
>>>>
>>>> On Fri, Nov 30, 2018 at 10:09 AM Alexis Girault via vtk-developers <
>>>> vtk-developers at public.kitware.com> wrote:
>>>>
>>>>> For a list of existing IO toolkits, see "Converters, Importers, and
>>>>> Exporters"  on Khronos page for gltf here:
>>>>> https://www.khronos.org/gltf/
>>>>>
>>>>> In iMSTK, we have been using ASSIMP <http://www.assimp.org/> (mentioned
>>>>> in the list above) for some other formats. I believe people inquired about
>>>>> integrating ASSIMP in VTK in the past.
>>>>>
>>>>> Alexis Girault
>>>>> R&D Engineer in Medical Computing
>>>>> Kitware, Inc.
>>>>>
>>>>> http://www.kitware.com
>>>>> (919) 969-6990 x325
>>>>>
>>>>>
>>>>> On Fri, Nov 30, 2018 at 10:04 AM Aashish Chaudhary via vtk-developers <
>>>>> vtk-developers at public.kitware.com> wrote:
>>>>>
>>>>>> Yes please do. You could post the updates on the mailing list (dev).
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> On Fri, Nov 30, 2018 at 10:01 AM Mathieu Westphal <
>>>>>> mathieu.westphal at kitware.com> wrote:
>>>>>>
>>>>>>> HI Aashish, list,
>>>>>>>
>>>>>>> We are currently working on a gltf reader ! But only for next year.
>>>>>>> Let us know if you want to be kept in the loop.
>>>>>>>
>>>>>>> Best,
>>>>>>>
>>>>>>> Mathieu Westphal
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Nov 30, 2018 at 3:58 PM Aashish Chaudhary via vtk-developers
>>>>>>> <vtk-developers at public.kitware.com> wrote:
>>>>>>>
>>>>>>>> Having a glTF reader/writer would be great to have in VTK
>>>>>>>> specifically for us as geospatial community is producing more data in this
>>>>>>>> format.
>>>>>>>>
>>>>>>>> - Aashish
>>>>>>>>
>>>>>>>> On Fri, Nov 30, 2018 at 7:57 AM Steve Pieper <pieper at isomics.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi -
>>>>>>>>>
>>>>>>>>> I'd love to see a glTF 2.0 exporter native in VTK.  I wrote a glTF
>>>>>>>>> 1.0 version in python a while back if you want to look at that for
>>>>>>>>> reference [1].
>>>>>>>>>
>>>>>>>>> On request: please include a WriteToMemory option like in the
>>>>>>>>> vtkImageWriter classes so it can be used easily without the file system
>>>>>>>>> (e.g. like in the web server mode I was doing).
>>>>>>>>>
>>>>>>>>> Good luck,
>>>>>>>>> Steve
>>>>>>>>>
>>>>>>>>> [1]
>>>>>>>>> https://github.com/pieper/SlicerWeb/blob/master/WebServer/WebServer.py#L37-L457
>>>>>>>>>
>>>>>>>>> On Thu, Nov 29, 2018 at 10:32 PM Ken Martin via vtk-developers <
>>>>>>>>> vtk-developers at public.kitware.com> wrote:
>>>>>>>>>
>>>>>>>>>> FWIW I'm working on a simple very basic starting point for gltf
>>>>>>>>>> ala
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> https://gitlab.kitware.com/ken-martin/vtk/commit/656f7e231e9434431e234f701c7101006e2be40a
>>>>>>>>>>
>>>>>>>>>> if you want to work off that. I'll probably try merging it soon .
>>>>>>>>>>
>>>>>>>>>> - Ken
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Thu, Nov 29, 2018 at 9:11 PM Sal Choueib <
>>>>>>>>>> sal.choueib at queensu.ca> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hello All,
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>    We are currently in the process of developing an exporter to
>>>>>>>>>>> glTF 2.0. Does anyone have experience working with gltf? Or perhaps knows
>>>>>>>>>>> of any resources that might be useful?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>    Furthermore, we are utilizing tiny-gltf, a header only glTF
>>>>>>>>>>> library, to serialize data and write the gltf file (
>>>>>>>>>>> https://github.com/syoyo/tinygltf
>>>>>>>>>>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsyoyo%2Ftinygltf&data=02%7C01%7C%7Cb483f966d3e64e639c5f08d653be573f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636788474294213389&sdata=W7iwlPE31LC0XVeJoEos9iVdcZCWmR%2BCwZe%2Bp%2FIP4EE%3D&reserved=0>).
>>>>>>>>>>> We are hoping someone could comment on our choice of library. Is this
>>>>>>>>>>> library good? Any potential risks or cons to using this library? Does
>>>>>>>>>>> anyone have suggestions for a better library to use?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>   Thank you for your help,
>>>>>>>>>>>
>>>>>>>>>>> Sal
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Powered by www.kitware.com
>>>>>>>>>>>
>>>>>>>>>>> Visit other Kitware open-source projects at
>>>>>>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>>>>>>
>>>>>>>>>>> Search the list archives at:
>>>>>>>>>>> http://markmail.org/search/?q=vtk-developers
>>>>>>>>>>>
>>>>>>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>>>>>>> https://public.kitware.com/mailman/listinfo/vtk-developers
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Ken Martin PhD
>>>>>>>>>> Distinguished Engineer
>>>>>>>>>> Kitware Inc.
>>>>>>>>>> 101 East Weaver Street
>>>>>>>>>> <https://maps.google.com/?q=101+East+Weaver+Street+Carrboro,+North+Carolina+%0D%0A27510+USA&entry=gmail&source=g>
>>>>>>>>>> Carrboro, North Carolina
>>>>>>>>>> <https://maps.google.com/?q=101+East+Weaver+Street+Carrboro,+North+Carolina+%0D%0A27510+USA&entry=gmail&source=g>
>>>>>>>>>> 27510 USA
>>>>>>>>>> <https://maps.google.com/?q=101+East+Weaver+Street+Carrboro,+North+Carolina+%0D%0A27510+USA&entry=gmail&source=g>
>>>>>>>>>>
>>>>>>>>>> This communication, including all attachments, contains
>>>>>>>>>> confidential and legally privileged information, and it is intended only
>>>>>>>>>> for the use of the addressee.  Access to this email by anyone else is
>>>>>>>>>> unauthorized. If you are not the intended recipient, any disclosure,
>>>>>>>>>> copying, distribution or any action taken in reliance on it is prohibited
>>>>>>>>>> and may be unlawful. If you received this communication in error please
>>>>>>>>>> notify us immediately and destroy the original message.  Thank you.
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Powered by www.kitware.com
>>>>>>>>>>
>>>>>>>>>> Visit other Kitware open-source projects at
>>>>>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>>>>>
>>>>>>>>>> Search the list archives at:
>>>>>>>>>> http://markmail.org/search/?q=vtk-developers
>>>>>>>>>>
>>>>>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>>>>>> https://public.kitware.com/mailman/listinfo/vtk-developers
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>> Powered by www.kitware.com
>>>>>>>>>
>>>>>>>>> Visit other Kitware open-source projects at
>>>>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>>>>
>>>>>>>>> Search the list archives at:
>>>>>>>>> http://markmail.org/search/?q=vtk-developers
>>>>>>>>>
>>>>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>>>>> https://public.kitware.com/mailman/listinfo/vtk-developers
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> *| Aashish Chaudhary | Technical Leader          | Kitware Inc.
>>>>>>>>         *
>>>>>>>> *| http://www.kitware.com/company/team/chaudhary.html
>>>>>>>> <http://www.kitware.com/company/team/chaudhary.html>*
>>>>>>>> _______________________________________________
>>>>>>>> Powered by www.kitware.com
>>>>>>>>
>>>>>>>> Visit other Kitware open-source projects at
>>>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>>>
>>>>>>>> Search the list archives at:
>>>>>>>> http://markmail.org/search/?q=vtk-developers
>>>>>>>>
>>>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>>>> https://public.kitware.com/mailman/listinfo/vtk-developers
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>> Powered by www.kitware.com
>>>>>>
>>>>>> Visit other Kitware open-source projects at
>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>
>>>>>> Search the list archives at:
>>>>>> http://markmail.org/search/?q=vtk-developers
>>>>>>
>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>> https://public.kitware.com/mailman/listinfo/vtk-developers
>>>>>>
>>>>>> _______________________________________________
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Search the list archives at:
>>>>> http://markmail.org/search/?q=vtk-developers
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> https://public.kitware.com/mailman/listinfo/vtk-developers
>>>>>
>>>>>
>>>>
>>>> --
>>>> Ken Martin PhD
>>>> Distinguished Engineer
>>>> Kitware Inc.
>>>> 101 East Weaver Street
>>>> Carrboro, North Carolina
>>>> 27510 USA
>>>>
>>>> This communication, including all attachments, contains confidential
>>>> and legally privileged information, and it is intended only for the use of
>>>> the addressee.  Access to this email by anyone else is unauthorized. If you
>>>> are not the intended recipient, any disclosure, copying, distribution or
>>>> any action taken in reliance on it is prohibited and may be unlawful. If
>>>> you received this communication in error please notify us immediately and
>>>> destroy the original message.  Thank you.
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Search the list archives at:
>>>> http://markmail.org/search/?q=vtk-developers
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> https://public.kitware.com/mailman/listinfo/vtk-developers
>>>>
>>>> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtk-developers/attachments/20190107/78ba1785/attachment-0001.html>


More information about the vtk-developers mailing list