如何在搅拌机中导出带有纹理的.obj格式文件? [英] How to export .obj format file with texture in blender?

查看:612
本文介绍了如何在搅拌机中导出带有纹理的.obj格式文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我是搅拌机的新手.我已经附加了树对象的纹理.这个项目仅导出(.obj)和(.mtl)文件,但不导出纹理图像.我也需要纹理图像.请提供解决方案.

First of all i am new in blender. i have attached texture from tree object. this project exporting (.obj) and (.mtl) files only.but it does not exporting texture images.I need textures image also. please any give the solution.

推荐答案

关于Blender obj的内容请阅读-

about blender obj read this -

Blender导入的obj文件的纹理与Blender Internal渲染器作为活动渲染器时一样好.但是,当前不支持在Cycles为活动渲染器时导入带有纹理的obj文件.使用Cycles,您必须使用纹理创建新材料 因此,第一个想法是检查尝试导入网格时使用的渲染器. 然后是文件格式本身. Obj文件格式由两个文件组成,而不是一个. * .obj文件包含网格数据. * .mtl文件包含一种或多种带有相关纹理路径的简单phong材质.好消息是Obj是一种超级简单的文本格式文件格式.您可以在文本编辑器中打开文件,然后根据需要对其进行编辑. 当* .mtl文件为missig时,则没有任何内容可导入Blender.没有mtl文件意味着没有材质和纹理. 如果存在* .mtl文件,但文件中的纹理路径是绝对的,并且纹理位于其他位置,则由于找不到纹理,因此没有任何内容可以导入Blender. 所以首先要检查:* .mtl文件是否存在?如果是这种情况,并且纹理不导入:* .mtl文件中的纹理路径是相对的还是绝对的?例如,在写字板中打开* .mtl文件.看一下前面带有map_kd的行. 例如,绝对路径将是 map_Kd C:\ UserX \ myfolder \ mytextures \ mytexture.png 当您将其更改为 map_Kd mytexture.png 然后这条路变成相对的.当您将纹理放在obj文件之外时,通常会加载纹理-当Blender Internal是活动渲染器时.如前所述,目前不支持循环.

Blender imports obj files with textures just fine with Blender Internal renderer as the active renderer. But importing obj files with texture while Cycles is the active renderer is currently not supported. With Cycles you have to create a new material with your texture So first idea is to check what renderer you use while trying to import the mesh. Then there was the file format itself. The Obj file format is made of two files, not one. The *.obj file contains the mesh data. The *.mtl file contains one or more simple phong material(s) with the associated texture paths. And the good news is Obj is a super simple file format in text form. You can open the files in a text editor and edit them to your needs. When the *.mtl file is missig then there is nothing to import for Blender. No mtl file means no material and no texture available. When the *.mtl file exists, but the texture paths in the file are absolute, and the texture is at another location, then there is nothing to import for Blender since the textures are not found. So first thing to check: does the *.mtl file exist? And if that's the case and the textures doesn't import: are the texture paths in the *.mtl file relative or absolute? Open the *.mtl file in wordpad for example. Have a look at the line(s) with map_kd at the front. For example, an absolute path would be map_Kd C:\UserX\myfolder\mytextures\mytexture.png When you change it to map_Kd mytexture.png then this path becomes relative. And when you put your texture besides the obj file, then the texture gets usually loaded - when Blender Internal is the active renderer. As told, Cycles is not supported at this point.

这篇关于如何在搅拌机中导出带有纹理的.obj格式文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆