|
Sweet Home 3D Forum » List all forums » » Forum: Features use and tips » » » Thread: importing mtl file » » » » Post: Re: importing mtl file |
Print at Dec 18, 2025, 4:11:52 PM |
| Posted by dani191234 at May 24, 2017, 7:09:06 PM |
|
Re: importing mtl file I have the same issues with my files I downloaded from https://www.cgtrader.com. I am not able to find the exact link but here are some code-snippets (I hope they are helpful). Here are the first lines of my obj.file which has more than 19.000 lines and 13MB (it's a tree). mtllib OC12_1.mtl # object OC12_1 g OC12_1 v -0.01253 -0.00193 0.00455 v -0.00879 -0.00551 0.01153 v -0.00093 -0.00652 0.01508 v 0.00737 -0.00449 0.01356 v 0.01224 -0.00036 0.00766 v 0.01139 0.00392 0.00015 v 0.00522 0.00636 -0.00546 v -0.00338 0.00581 -0.00654 v -0.01039 0.00254 -0.00259 v -0.01335 -0.00310 0.00381 v -0.00938 -0.00681 0.01131 v -0.00100 -0.00783 0.01514 and here is my mtl-file: newmtl ROOTS2 Ka 0.1 0.1 0.1 Kd 1 1 1 Ks 0 0 0 illum 2 Ns 2 map_Kd OC12brk2.tif map_bump bump map_opacity map_d refl map_kS map_kA map_Ns newmtl TRUNK2 Ka 0.1 0.1 0.1 Kd 1 1 1 Ks 0 0 0 illum 2 Ns 2 map_Kd OC12brk2.tif map_bump bump map_opacity map_d refl map_kS map_kA map_Ns newmtl BARK2 Ka 0.1 0.1 0.1 Kd 1 1 1 Ks 0 0 0 illum 2 Ns 2 map_Kd OC12brk2.tif map_bump bump map_opacity map_d refl map_kS map_kA map_Ns newmtl TWIG2 Ka 0.1 0.1 0.1 Kd 1 1 1 Ks 0 0 0 illum 2 Ns 2 map_Kd OC12brk2.tif map_bump bump map_opacity map_d refl map_kS map_kA map_Ns newmtl LEAF2 Ka 0.1 0.1 0.1 Kd 1 1 1 Ks 0 0 0 illum 2 Ns 2 map_Kd OC12lef2.tif map_bump bump map_opacity map_d refl map_kS map_kA map_Ns I also have several tif-files. Both mtl- and obj-files are in the same zip-folder when importing, but colors are not imported. Please help me :) Thanks in advance. |
|
|
Current timezone is GMT Dec 18, 2025, 4:11:52 PM |