Commit Graph
100 Commits
Author SHA1 Message Date
yyc12345 6b31401240 add bme struct. fix bmap type hint 2024-01-04 17:29:01 +08:00
yyc12345 2c006b4528 add conflict resolver 2024-01-04 10:35:52 +08:00
yyc12345 680f367a42 fix issues
- disable bmx import/export temporaryly
- optimize the ui display of importing/exporting. (use box to organize props)
- place button horizontally, not vertically in virtools material.
- disallow apply in legacy align if no axis selected.
- add applied step counter in legacy alignment.
- add feedback for reseting bme material/component. (add a message box to show success)
2024-01-01 13:07:10 +08:00
yyc12345 318d661ac1 separate gitignore and add document 2023-12-31 19:31:41 +08:00
yyc12345 321e1b6fe9 finish rename opers 2023-12-31 17:35:15 +08:00
yyc12345 20aba6c273 fix issue. add feat.
- add ignored bmesh update function in flatten uv
- finish select by group, add, rm, clear group functions.
2023-12-30 22:17:42 +08:00
yyc12345 c5ce6e8a2c add border in bme 2023-12-27 16:05:35 +08:00
yyc12345 9315ff723d fix issues
- apply transform when creating BME struct's vertices and faces.
- add 3ds max align operator. support Apply button in a nasty way.
2023-12-26 22:23:56 +08:00
yyc12345 50b7eb0bce fix issues
- fix Sector group no-successive issue when saving as nmo
- add nong ventilator adder.
- use copy.copy to write some code to reduce the calling of get/set_raw_vt_mtl()
- keep texture when apply virtools mtl preset.
2023-12-25 15:04:22 +08:00
yyc12345 03e8feac67 add support to compress bme json 2023-12-25 10:49:25 +08:00
yyc12345 35f2c4a389 finish bme 2023-12-18 10:30:32 +08:00
yyc12345 6bc3933291 update bme 2023-12-17 23:01:45 +08:00
yyc12345 03441c642b update bme prop display 2023-12-17 12:01:57 +08:00
yyc12345 77b15a8797 refactor EnumPropHelper to improve BME again. 2023-12-16 22:27:31 +08:00
yyc12345 94872957fd init bme creator work 2023-12-16 18:12:00 +08:00
yyc12345 a6de69c882 refactor BlenderEnumPropHelper 2023-12-15 21:57:50 +08:00
yyc12345 52f3936e42 try bme adder 2023-12-14 21:33:22 +08:00
yyc12345 2f123e6a3c add bme material preset 2023-12-14 18:03:03 +08:00
yyc12345 f6569313bf update component creation 2023-12-09 17:42:03 +08:00
yyc12345 ebb22c9ec1 refactor. and finish basic of adding component 2023-12-07 21:28:23 +08:00
yyc12345 ae9a848864 write shit 2023-12-06 17:16:31 +08:00
yyc12345 ca7e047c09 add something
- move all annotation to vt types
- add 2 options when saving virtools file accoridng to the change of BMap interface changes.
2023-12-03 22:49:29 +08:00
yyc12345 5c34bbad38 fix virtools export fatal errors 2023-12-03 18:14:20 +08:00
yyc12345 70dd525315 almost finish virtools exporing 2023-12-03 17:07:52 +08:00
yyc12345 3025fcf305 update vt file exporting 2023-12-02 20:25:36 +08:00
yyc12345 52452a96d5 update virtools export 2023-12-01 23:27:53 +08:00
yyc12345 84b3ace13d start exporing virtools file 2023-11-30 22:38:53 +08:00
yyc12345 7116d7198a update naming 2023-11-29 22:12:04 +08:00
yyc12345 6944415912 finish naming convention converter 2023-11-29 21:35:15 +08:00
yyc12345 88fe1519e3 add name convention 2023-11-26 20:37:19 +08:00
yyc12345 5bb3abed20 shhit 2023-11-26 12:57:49 +08:00
yyc12345 e79982c43f init naming convention plugin system 2023-11-24 17:49:18 +08:00
yyc12345 8e2d7a4133 update plugin
- revert merge of ballance textures
- prepare for naming convension dev
- show icons for virtools group list
2023-11-23 22:34:06 +08:00
yyc12345 cb80fa8b03 add icons manager. show icons in group 2023-11-22 19:57:29 +08:00
yyc12345 e84c1148f3 add thumbnail for blender icons 2023-11-22 17:41:43 +08:00
yyc12345 1432c2990a fix issues.
- fix issue according to python linter
- do not write vt group if no changes. reduce the cost of virtools group class.
2023-11-17 22:00:22 +08:00
yyc12345 1a2dd08092 update plugin.
- sync PyBMap work. use different library name in different OS.
- add BMap encoding default value according to different OS (Windows and non-Windows) because non-Windows OS, we use libiconv as encoding converter.
- move all pointer properties to a single module and give corresponding visitor.
- add shared importer exporter parameters module thus bmfile import/export also can ref it.
2023-11-16 22:41:03 +08:00
yyc12345 59a1275f68 add support of virtools mesh lit mode 2023-11-15 23:05:00 +08:00
yyc12345 d128ffcde5 update custom normals importing 2023-11-14 22:16:12 +08:00
yyc12345 fd17d3b5c9 revert some changes about prev commit 2023-11-14 21:37:29 +08:00
yyc12345 1f0444009f fix 2 issues
- update apply_virtools_material. use keywords, not index to visit input and output sockets.
- update blender mesh operator. send a message when mesh::validate() proceed mesh and stop custom normals assignment.
2023-11-14 21:24:09 +08:00
yyc12345 bd40e0fdf2 update video format display name 2023-11-12 20:55:21 +08:00
yyc12345 6991307b8b merge util_blc_tex to prop_vt_tex. support virtools texture props when importing virtools file. 2023-11-12 20:35:54 +08:00
yyc12345 b7ad5c67d4 add virtools texture support 2023-11-11 13:32:58 +08:00
yyc12345 5bbaa895eb fix raw data texture reading error 2023-11-10 14:59:06 +08:00
yyc12345 1299a14f3b finish virtools file importer 2023-11-10 12:26:04 +08:00
yyc12345 8fad643dd9 finish half of virtools importer 2023-11-09 21:41:26 +08:00
yyc12345 ec0749f3e5 adapt to PyBMap binding 2023-11-09 17:20:57 +08:00
yyc12345 6e4b1b37da finish virtools groups 2023-10-27 11:51:12 +08:00
yyc12345 1eaaedfcbd finish ballance element 2023-10-26 12:32:08 +08:00
yyc12345 c1f92c7244 basically finish framework of ballance_element 2023-10-25 21:35:26 +08:00
yyc12345 2896602e6a add basic support of Ballance elements 2023-10-25 12:07:14 +08:00
yyc12345 9079bf1bb3 remove uv modifier from bld_mesh.py and finish flatten uv and rail uv 2023-10-23 10:57:29 +08:00
yyc12345 f7dd5f32ba update MeshUVModifier 2023-10-21 10:48:46 +08:00
yyc12345 b4bb85cc71 update MeshUVModifier 2023-10-20 20:50:30 +08:00
yyc12345 bcbe9c987e add MeshUVModifier 2023-10-20 10:40:20 +08:00
yyc12345 16d4fc2bca finish mesh reader 2023-10-19 10:56:33 +08:00
yyc12345 4f10b1a9e9 add placeholder for importer and exporter 2023-10-18 21:23:04 +08:00
yyc12345 484a4101ad finish blender mesh writer 2023-10-18 12:09:40 +08:00
yyc12345 ea6cb430fe add blender mesh helper 2023-10-17 11:50:31 +08:00
yyc12345 354b3cd180 fix and add some functions 2023-10-16 10:12:05 +08:00
yyc12345 1d1de08bd7 update texture manager 2023-10-15 21:13:56 +08:00
yyc12345 21345b8251 add some functions 2023-10-15 13:48:50 +08:00
yyc12345 b94e7e2b22 add addon pref and file browser wrapper 2023-10-14 11:48:41 +08:00
yyc12345 5584bc66a0 basically finish virtools material 2023-10-12 22:15:21 +08:00
yyc12345 4f693b555d add virtools material basically 2023-10-11 22:24:22 +08:00
yyc12345 4733295a39 add some basic of virtools material 2023-10-11 10:55:45 +08:00
yyc12345 d9b9531828 try migrate first operator 2023-10-10 16:01:52 +08:00
yyc12345 1db6cab8ca add some code 2023-10-09 22:20:21 +08:00
yyc12345 8de1adda04 add some development help 2023-10-09 14:10:25 +08:00
yyc12345 f07cfc91d5 [doc] prepare next generation development 2023-10-09 10:39:35 +08:00
yyc12345 0a3b3c5862 [feat] allow nested collection when exporting bm file.
provided by propylamine
2023-09-05 14:40:10 +08:00
yyc12345 0d1e382b37 [fix] fix typo
- unknow -> unknown
2023-08-17 10:21:42 +08:00
yyc12345 12d5f8c236 [doc] bump up version. fix document.
- bump up version to 3.3
- fix documents
  * rewrite the supported version.
  * update suggested plugin link.
  * notify user some installation changes. order user change installation folder.
2023-07-21 10:02:36 +08:00
yyc12345 6fe856fa8e [fix] migrate to blender 3.6 LTS
- change bl_info["support"] to COMMUNITY. because Blender do not support TESTINg anymore.
- now plugin should be installed in addons folder, not addons_contrib, due to blender changes.
- remove the reference about mesh.polypons.loop_total. because it is readonly now. (blender 3.6 changed)
- change uv assign method. use new properties instead. (MeshUVLoop is deprecated in blender 3.5 and removed in blender 4.0)
2023-07-01 12:56:07 +08:00
yyc12345 c2a85a2d86 [fix] fix empty material slot export error.
- fix the issue that the object with empty material slot will cause a None crash when exporting BM file.
2023-05-25 20:54:50 +08:00
yyc12345 dafb679780 [doc] add document for flatten uv and bump up version.
- add document for flatten uv
- bump up version to 3.2
2023-03-11 16:57:17 +08:00
yyc12345 f3663a4280 [fix] fix fatal div zero issue
- fix div error exception when flatten uv - scale size == 0
2023-03-09 21:24:05 +08:00
yyc12345 9c8d365ab6 [feat] add ref. point feature for flatten uv
- add reference point & uv feature for flatten.
- due to first feature, flatten uv now can process more structure of ballance floor, such as looping floor with low edge count.
- give flatten uv 2 different modes.
- original flatten uv method still existed as a scale size mode.
2023-03-09 21:18:13 +08:00
yyc12345 0be036fcea [fix] fix various bugs
- update README to keep update with plugin design
    * refactor Select by Virtools Group section
    * add material preset function description
- fix issue about flatten uv may get zero base vector.
- update elements adder menu.
- bump up version to 3.1
2023-01-31 10:50:07 +08:00
yyc12345 e153e51abd [feat] improve element adder
- fix ambiguous default side setter for floor adder. use "update" field of EnumProperty instead. also applied for dup element with span adder.
- divide component adder into 3 different adder, to process different add strategies.
- update elements placeholder adder. this change will force all element placeholder share a single mesh in the whole map.
- add series element adder.
2023-01-30 22:49:49 +08:00
yyc12345 d292ce389a [fix] add icons for sound hit/roll id group
- add 3 extra icons for groups Sound_(Roll/Hit)ID_(01|02|03).
- add a empty placeholder icon to make some UI more clear
- finish add group icons.
2023-01-30 15:00:29 +08:00
yyc12345 807e006245 [feat] add full element icons
- add more element icons. now element icons is not problem.
- change icon load strategy. now icon is loaded outside plugin. this operations might slow down blender but now I can apply my custom map to some operators to get better using experience.
- use new element icons to decorate some group name to let user know what this group stands for.
2023-01-30 11:12:15 +08:00
yyc12345 8d7a982e50 [fix] fix add floor alignment and add some new icons.
- try setting center alignment for add floor popup operator. it is not center alignment now because blender's impl but it is better than previous layout.
- add some components icon for more directly visual.
2023-01-29 21:39:24 +08:00
yyc12345 ddf6b7befe [fix] fix misc not important issues
- correct all icon usage. use 'CANCEL' instead of 'ERROR' to indicate error correctly. and move these icon const into UTILS_icons_manager.py
- auto rename generated rail section to match the default name standard.
- give more clear signal about import and export bm file by using Operator.report() function.
2023-01-29 10:32:43 +08:00
yyc12345 a300ddbb49 [fix] fix fatal error when use flatten uv for sink floor top.
- default behavior of flatten uv only suit for normal floor
- add extra property called scale correction to allow use specific custom uv scale.
2023-01-28 20:44:39 +08:00
yyc12345 c9e51c9b6a [feat] change function "selected by Virtools groups"
- remove ignore hidden property. because it is rarely used.
- support more select mode. like blender selection.
- merge function filter by group and select by group as a united function.
2023-01-28 20:05:18 +08:00
yyc12345 b58f837a94 [feat] add confirm window for some dangerous opers
- add clear oper in Virtools group panel.
- add confirm window for clear Virtools groups opers. both panel and context menu.
2023-01-28 11:15:41 +08:00
yyc12345 5fe865c621 [feat] improve rename system
- rename system now support display renamed name and old name at the same time to solve the problem that user can not find renamed objects.
- correct some typo of rename system report.
2023-01-28 10:39:31 +08:00
yyc12345 9b9fc9cde8 [feat] promote experience about floor creation.
- change bl_options and rewrite invoke and draw functions to let floor creating window become more visual. credit: BLumia.
- also change 3ds max align and flatten uv presentation after changing creating floor window.
- seperate icon loader/unload module.
2023-01-27 16:28:32 +08:00
yyc12345 ef459a210d [feat] promote virtools material
- set the default value of virtools material like virtools creation.
- add preset in virtools panel for convenient using.
2023-01-25 14:57:30 +08:00
yyc12345 7680d11c0e [fix] fix various issues
- add edit mode switch before bm export to prevent potential error
- let the default value of ZBuffer in Virtools Material become True
- fix the issue that duplicated elements adder do not understand enable option.
2023-01-18 00:03:11 +08:00
yyc12345 e7376a3e9c [feat] add 2 new features
- add tunnel section creation and re-organise rail creation menu.
- allow duplicated elements (Nong xxx) creation for some special, such as Fan and Extra Point.
2023-01-09 11:10:13 +08:00
yyc12345 2a87e98904 add lost group Shadow. fix README typo 2023-01-05 10:32:46 +08:00
yyc12345 9211b0bcca translate engrish document and promote zh document 2023-01-03 14:43:12 +08:00
yyc12345 43a93d7c19 update ZH document 2023-01-02 17:20:36 +08:00
yyc12345 803bcaad05 [feat] promote visual representation
- update enum prop into radio button display mode in bmx export and group name selections
- move rename system into outline window right click menu.
- add grouping operator to object menu in outline window.
2022-12-30 10:06:02 +08:00
yyc12345 314284ed94 [feat] finish wide floor and sink platform auto gen.
- add height re-calc in derived block generation for fixing height issue when re-use Flat in sink platform.
- finish all wide floor prototype.
- finish all platform prototype.
2022-12-29 11:28:50 +08:00
yyc12345 0a815f04d6 [feat] change BMERevenge model read method
- divided json into small pieces for easy management.
- change json reading method for change (1)
2022-12-28 21:40:51 +08:00
yyc12345 2bd031784a [feat] update BMERevenge generation method
- use some laggy AST code to update BMERevenge generation method.
- after this change, BMERevenge become more programable and easy to create more complex models
- ready for wide floor generation development
2022-12-27 22:08:35 +08:00