使用blender做一个地球模型,贴上UV纹理,导出Obj格式
2014-07-22 09:37
1736 查看
使用blender做一个地球模型,贴上UV纹理,导出Obj格式
Table of Contents
1 blender1.1 图文教程
1.2 export to objloader, coordinate rotate
1.3 UV image editor: add texture to surface
1 blender
1.1 图文教程
我用的blender版本是2.63.0,各个版本之间应该是大同小异的首先打开blender, 删除startup默认添加的cube(左键选中后,按一下del), 这样就是一个空白的world了。
从mech菜单中,选择添加一个UV sphere, 快捷键是 'shift+a':
球就出来了:
为了能够一遍编辑这个Sphere, 一边编辑UV映射, 我们拉开一个新的窗口。点击下图中的这个三角,往左拉动,就变成2个窗口了:
然后左边切换到 Edit-Mode(快捷键 Tab), 右边把Editor切换到 UV/Image Editor. 两个切换的地方不一样:
然后在右边的 UV/Image Editor中添加一个Material, 然后添加Texture, 选择子菜单中Type为Image, 然后子菜单中打开图片, 然后最下面的图片选项,选择我们刚才打开的图片:
结果就是这样:
然后左边切换到Editor-Mode以后,选择unwrap, 选择 sphere projection, 如下调整参数,这样右边就会出现UV网络,用translate, scale, rotate调整到你想要的地方就完了:
参数:
好了, 在选中左边的窗口, 按一下F12, 就能看到结果了:
最后是导出Obj格式, 需要注意Blender里面的坐标是右手坐标系,向后躺下来的. 所以, 这里要调整一下坐标系方向(Y forward), 同时做好用Triangle Face应为后面的Objloader没有那么高端:
这样,我们就得到了旋转地球的2个素材, obj和一张png, obj里面包含了模型点坐标,normal坐标,uv坐标,png则是我们准备贴上去的纹理资源.
下面两项是总结与其它链接
1.2 export to objloader, coordinate rotate
blender's coordinate is x-right, y-forward, z-up. But opengl isx-right, y-up, -z-forward. So when use blender export .obj file, thecoordinate system should changed1.3 UV image editor: add texture to surface
in Object Mode, select which object you want to add texturepress tab, switch to Edit Mode.a, for select all vertex;seam, for let blender know where should start unwrap;or use smart unwrap/projection, or sphere project
in Object Mode, press u, show the UV menu, select unwrap. Thiswill show the
UV Image editor.
In UV image editor, add Material to object, then add
Textureto Material.
select Texture type to image, than press alt+o or select
open image to open external resource.
use g, s, r, addtional x, y, z strict into given coordinate, torerange the UVs to match pixels in
Texture
save & export
read example
offical_manul
earth_example
http://digitized-life.blogspot.jp/2011/07/blender-249-uv.html
相关文章推荐
- 使用Blender的UV映射制作一个地球
- three.js使用三:加载有纹理的模型,结合blender和convert_obj_three.py
- 【H5 3D应用开发】Blender 制作导出Obj模型带纹理到three.js(二)
- 使用Blender的UV映射制作一个地球
- 如何使用yum 下载 一个 package ?如何使用 yum install package 但是保留 rpm 格式的 package ? 或者又 如何通过yum 中已经安装的package 导出它,即yum导出rpm?
- 如何使用Blender将点模型的obj文件渲染成网格模型
- OpenGL ES 学习教程(六) 使用开源库 Assimp 将 Obj 模型 转换成自己的格式
- OpenGL ES 学习教程(六) 使用开源库 Assimp 将 Obj 模型 转换成自己的格式
- 3dmax导出three.js使用的obj格式文件时缺少贴图
- Blender软件导出的obj数据格式文件内容解读
- opengles加载obj格式3D模型含光照和纹理
- DirectX11 With Windows SDK--19 模型加载:obj格式的读取及使用二进制文件提升读取效率
- 处理模型——使用自定义Effects和纹理绘制模型
- 一个使用itext导出pdf的例子
- 使用mysqldump导出多表到一个文件
- 使用投影纹理进行模型贴花(Mesh Decals)
- 一个WinForm程序配置信息的简单模型和维护工具——使用说明
- 使用投影纹理进行模型贴花(Mesh Decals)
- 使用SQL Server Business Intelligence Development Studio 2005设计报表模型时的一个容易被忽视的问题
- 使用SQL Server Business Intelligence Development Studio 2005设计报表模型时的一个容易被忽视的问题