[vtkusers] Using multile texture files in vtkOBJImporter
ken.martin at kitware.com
Wed Aug 16 10:08:17 EDT 2017
Your example should have an OBJ with multiple textures if there is no more
than one texture per material.
If the issue is that you have an OBJ file where one piece (material?), uses
multiple textures and has multiple sets of texture coordinates per vertex,
that is not fully supported. I believe currently the multiple sets of
texture coordinates are read in but only the first texture map and
coordinate are used but I may be out of date.
On Wed, Aug 16, 2017 at 3:14 AM, vinmean <iamdpak at gmail.com> wrote:
> Following is my function to import obj files with texture. But I need to
> import obj files that have multiple .png files as textures. Is there a way
> to use vtkOBJImporter class with mulitple texture files?
> void import_vtk_tex_obj(std::string filenameOBJ, std::string filenameMTL,
> std::string filenameTEX,
> boost::shared_ptr<pcl::visualization::PCLVisualizer> view)
> vtkNew<vtkOBJImporter> importer;
> std::string texture_path =
> vtkSmartPointer<vtkRenderer> renderer
> View this message in context: http://vtk.1045678.n5.nabble.
> 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/
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
Ken Martin PhD
28 Corporate Drive
Clifton Park NY 12065
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers