create document and bump version

This commit is contained in:
yyc12345 2020-08-08 11:35:32 +08:00
parent af05f2ae21
commit 40756b0178
3 changed files with 108 additions and 6 deletions

View File

@ -1,9 +1,54 @@
# Ballance Blender Helper # Ballance Blender Helper
This is a Blender plugin which is served for Ballance mapping. [中文版本](README_ZH.md)
WIP. Only BM export function is finished. But it is enough. Following function will be added in the future and it just like the decoration of BM export. Because once we have BM export, every map can be converted from Blender to Virtools. ## Brief introduction
BM file spec can be seen in [there](https://github.com/yyc12345/gist/tree/master/BMFileSpec) This is a Blender plugin which is served for Ballance mapping in Blender.
Support criteria: Only support the lastest **LTS** version. Currently, it only contain fundamental functions. More useful features will be added in future.
## Technical infomation
Used BM file spec can be found in [there](https://github.com/yyc12345/gist/blob/master/BMFileSpec/BMSpec_ZH.md)(Chinese only).
Used tools chain principle and the file format located in `meshes` can be found in [there](https://github.com/yyc12345/gist/blob/master/BMFileSpec/YYCToolsChainSpec_ZH.md)(Chinese only).
This plugin will continuously support Blender lastest **LTS** version. This plugin will migrate to new version when the new LTS version released. Currently, it based on Blender 2.83.x.
## Function introduction
### Plugin settings
* External texture folder: Please fill in the Texture directory of Ballance, the plugin will call the external texture file from this directory (the texture file originally with Ballance)
* No component collection: Objects in this collection will be forced to be set as non-Component. If left blank, this function will be shutdown.
* Temp texture folder: used to cache texture files extracted from BM files. Please arrange a directory that will not be automatically cleaned up. Since Blender will continue to read texture files from this directory, it cannot be emptied at will. And it also does not allow files with the same name to exist, that is, if I import two BMs for two maps, and there are two files with the same name but different images in the two BMs, the later files will overwrite the previous files , And in turn caused a texture error when the first blender document was opened again. For solving this problem, please refer to the subsequent BM import / export
### BM import / export
For import, in order to prevent texture errors, the best way is to force packaging once. After successfully importing the BM, choose to pack all into the blend file, and then clear the directory where the Temp texture folder is located, and then click Unpack to file if necessary, this operation will re-depend the textures in the texture library under the project folder.
For export, you can choose to export a collection or an object (Export mode), and specify the target (Export target).
It should be noted that once the BM is exported, all the faces in the file will be converted to triangular faces, please make a backup in advance. And it is recommended to use a flat collection structure, do not put a collections within another collection, which may cause some unnecessary problems.
### Ballance 3D
Ballance 3D is a set of light tools related to 3D operations, which can be found in the upper right corner of the 3D view.
#### Super Align
Provide 3ds Max like align tools. Current active will be seen as reference object. All selected objects(except active object) will be seen as operating object (So you can select multiple objects to align to the reference object).
#### Create Rail UV
Create UV for rails. You should select the object which you want add rail like UV to. Then, click this menu. Before doing this, you need make sure all selected object have at least 1 UV map (If it have more than 1 UV map, only the first UV map will be changed).
## Install
Put `ballance_blender_plugin` into Blender's plugin folder, `scripts/addons_contrib`. Then enable this plugin in Blender's preferences (Don't forget to configure this plugin's settings).
## Dev plan
* Add elements in Add menu.
* The assisted tools for creating custom floor in Blender (for example: add UV for floor).

54
README_ZH.md Normal file
View File

@ -0,0 +1,54 @@
# Ballance Blender Helper
[English version](README.md)
## 简介
这是一个用于Blender的插件其主要是服务于Ballance制图。
目前仅仅包含比较基本的功能,其余的更多有用的功能将在未来版本中进行开发
## 技术信息
使用的BM文件标准可以在[这里](https://github.com/yyc12345/gist/blob/master/BMFileSpec/BMSpec_ZH.md)查找
使用的制图链标准以及`meshes`文件夹下的文件的格式可以在[这里](https://github.com/yyc12345/gist/blob/master/BMFileSpec/YYCToolsChainSpec_ZH.md)查找
支持Blender的原则是支持当前最新的 **LTS** 版本在最新的LTS版本释出之后会花一些时间迁移插件。当前插件基于2.83.x版本
## 功能介绍
### 插件设置
* External texture folder请填写为Ballance的Texture目录插件将从此目录下调用外置贴图文件即Ballance原本带有的贴图文件
* No component collection处于此集合中的物体将被强制指定为非Component。如果留空则表示不需要这个功能。
* Temp texture folder用于缓存从BM文件中提取的贴图文件请安排一个平时不会被自动清理的目录。由于Blender会持续从这个目录读取贴图文件因此不能随意清空。并且其也不允许同名文件存在即如果我为2个地图分别导入两个BM这两个BM中存在贴图文件名相同但图像不同的两个文件那么后来的文件将会覆盖前面的文件并进而导致前者导入后的文档再次打开时出现贴图错误。关于解决这个问题的方法请参考后续的BM导入导出
### BM导入导出
对于导入而言为了防止贴图出错最好的方法是强制打包一次。在导入BM成功之后选择全部打包到blend文件然后清空Temp texture folder所在目录然后如果有需要可以再点击解包到文件将贴图重新依赖到工程文件夹下的贴图库内。
对于导出可以选择导出一个集合或者是一个物体Export mode并给定对象Export target即可。
需要注意的是一旦导出BM文件中所有的面将全部转换为三角形面请做好备份。并且建议使用平铺的集合结构不要在集合内嵌套集合可能会导致一些不必要的问题。
### Ballance 3D
Ballance 3D是一套简单的用于制图3D相关的轻型工具集合可以在3D视图右上角找到。
#### Super Align
提供一种类似于3ds Max的对齐方式。当前活动物体将被设为参照对象当前选中的所有物体如果参照也被选中则去掉参照对象将被视为操作对象因此可以选择多个物体一起对齐到参照对象
#### Create Rail UV
为地图中的钢轨创建UV你需要先选中需要添加类似钢轨UV的物体然后点击这个按钮以创建。在创建之前需要保证选中物体在右侧属性列表中至少有一个UV若有多个UV则会只操作第一个
## 安装
将`ballance_blender_plugin`直接复制到Blender插件目录`scripts/addons_contrib`内即可。然后在Blender偏好设置中启用即可记得配置插件设置
## 后续开发计划
* 直接从添加菜单中添加机关
* 在Blender中创建自定义路面的辅助工具例如辅助添加路面UV等

View File

@ -2,10 +2,13 @@ bl_info={
"name":"Ballance Blender Plugin", "name":"Ballance Blender Plugin",
"description":"Ballance mapping tools for Blender", "description":"Ballance mapping tools for Blender",
"author":"yyc12345", "author":"yyc12345",
"version":(0,1), "version":(1,0),
"blender":(2,83,0), "blender":(2,83,0),
"category":"Object", "category":"Object",
"support":"TESTING" "support":"TESTING",
"warning": "Please read document before using this plugin.",
"wiki_url": "https://github.com/yyc12345/BallanceBlenderHelper",
"tracker_url": "https://github.com/yyc12345/BallanceBlenderHelper/issues"
} }
# ============================================= import system # ============================================= import system