[vtkusers] Using multile texture files in vtkOBJImporter
Bill Lorensen
bill.lorensen at gmail.com
Wed Aug 16 21:32:45 EDT 2017
SetTexturePath is a directory that contains textures...
See this example:
https://lorensen.github.io/VTKExamples/site/Cxx/IO/OBJImporter/
that uses this data:
https://github.com/lorensen/VTKExamples/tree/master/src/Testing/Data/doorman
Bill
On Wed, Aug 16, 2017 at 9:18 PM, vinmean <iamdpak at gmail.com> wrote:
> Thanks for the reply. What I had with me was a single mesh.obj, a single MTL
> file mesh.mtl and multiple texture files mesh_material0000_map_kd.png,
> mesh_material0001_map_kd.png, mesh_material0002_map_kd.png.
>
> After setting the obj and mtl file names, I set only the first material
> mesh_material0000_map_kd.png using the importer->setTexturePath(). I was
> able to get the complete 3D object with the textures applied.
>
> I had asked this question because the setTexturePath took only one texture
> file path. Even though my problem seems to be resolved, I am curious to
> understand if my scenario is different from "/Only one texture per object/".
> It would be great if you can point me to tutorials/materials which talk
> about how textures are applied because I didn't understand the statement
> /"you have an OBJ file where one piece (material?), uses multiple textures
> and has multiple sets of texture coordinates per vertex"/
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Using-multile-texture-files-in-vtkOBJImporter-tp5744430p5744463.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
--
Unpaid intern in BillsBasement at noware dot com
More information about the vtkusers
mailing list