[vtkusers] how to make vtkOBJExporter save the texture filename inside the .mtl file?

Andras Lasso lasso at queensu.ca
Mon May 14 23:11:35 EDT 2018


> the texture file name is not written inside the .mtl file

This feature has yet to be implemented in vtkOBJExporter, but it is already available in vtkOBJWriter (https://www.vtk.org/doc/nightly/html/classvtkOBJWriter.html).
 
Andras

-----Original Message-----
From: vtkusers <vtkusers-bounces at vtk.org> On Behalf Of vinmean
Sent: Monday, May 14, 2018 9:55 PM
To: vtkusers at vtk.org
Subject: [vtkusers] how to make vtkOBJExporter save the texture filename inside the .mtl file?

Hi,

I am trying to export actors of a render window into an obj file. I am able to save the .obj file and .mtl file but the texture file name is not written inside the .mtl file. How do I enable the exporter to write the texture filename? When I import the saved obj file, I am unable to see the texture.

	vtkNew<vtkOBJExporter> exporter;
	exporter->SetFilePrefix(flnam.c_str());
	exporter->SetRenderWindow(renderWindow);
	exporter->Write();


Thank You,
Vinmean



--
Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Classo%40queensu.ca%7C414fe44cc5544283f65f08d5ba06d561%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636619460893228512&sdata=MPdmvYmi1UMD3oqNz5flMpwrcHfoaXqDeL2RVdd0PUA%3D&reserved=0
_______________________________________________
Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C414fe44cc5544283f65f08d5ba06d561%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636619460893228512&sdata=uqqPHqnL%2FistyvkRAuVYXn3nzK3z%2BRFfSicvI%2BH2NcQ%3D&reserved=0

Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C414fe44cc5544283f65f08d5ba06d561%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636619460893228512&sdata=Vdvmo%2B1Szs5HQLH4kR1ZZR1gVjHrOXnUmqdbEb3MeZI%3D&reserved=0

Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7C414fe44cc5544283f65f08d5ba06d561%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636619460893228512&sdata=1YJ7ngMybtdcIb5gFxMqCBJYLBBwSFtFq0AxeGnm0dM%3D&reserved=0

Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7C414fe44cc5544283f65f08d5ba06d561%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636619460893228512&sdata=3xFSCdlmtf9ldEWpi7OjvMxU6tpRCqra6KOW22MVUZU%3D&reserved=0

Follow this link to subscribe/unsubscribe:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7C414fe44cc5544283f65f08d5ba06d561%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636619460893228512&sdata=t1%2Fx2%2BRToxqJ1QrzRaVadjaqIWVEDxAyz0PuHaZd8mA%3D&reserved=0


More information about the vtkusers mailing list