Commit Graph

27 Commits

Author SHA1 Message Date
73cda9f905 feat: update BMapSharp
- add struct assigner and iterator but still has bugs (struct padding issue)
- add function bindings for BM3dObject and BMGroup.
- add basic ctor and dtor for BMMeshTrans.
2024-10-29 15:12:00 +08:00
4d04b38d52 feat: continue improving BMapSharp.
- add BMFileWriter in BMapSharp.
2024-10-27 11:41:49 +08:00
623334f863 feat: update BMapSharp.
- update the function calling in BMapSharp.BMFileReader. (hope JIT can optimize my bad code served for beauty)
- remove outdated content in COMPILE.md
2024-10-24 16:39:11 +08:00
b319e0fcb6 feat: finish basic function of BMapSharp.
- fix weird C sharp behavior about calling FreeNativeData without calling ManagedToNative, which cause segment fault.
- disable unhandled exception handler in debug mode for BMap.
- change all associated code involving these issues.
2024-10-05 11:58:25 +08:00
3566efa36a feat: update custom marshaler in BMapSharp 2024-10-04 21:45:04 +08:00
334580acdc feat: update BMapSharp code 2024-10-03 21:39:36 +08:00
2ce5203ac7 feat: update BMap bindings
- add testbench file in BMap bindings.
- reorganise BMap bindings code.
- write some BMapSharp binding code.
2024-10-02 13:33:32 +08:00
5e5eed03f5 feat: finish c sharp custom marshaler.
- Finish BMapStringArrayMarshaler but not test.
2024-09-21 22:01:25 +08:00
7c88b3614a fix: update BMap bindings
- send message in console if PyBMap fail to load native dynamic library. this is good for user experience.
- remove snippet from BMap bindings generator. We now insert generated code manually.
- fix C sharp code generation issue in BMap bidnings generator.
- add some content for BMapSharp.
2024-09-21 16:50:53 +08:00
8a1fc03965 do some preparation work
- establish BMapSharp project for future development.
- refactor EnumsMigration. add csharp code output for it.
- add README for VectorGen and modify other READMEs.
2024-04-22 14:15:27 +08:00
c03c80d938 ready for first release
- bump up license year.
- format some gitignore files.
- update PyBMap readme.
- create a distribution used folder and give a manual for it.
2024-01-22 14:57:40 +08:00
afd4abadbb fix bugs
- fix typing hint error in PyBMap
- remove UNKNOWN_PF in PixelFormat enum in PyBMap.virtools_type. because it is a fallback value and should not be used directly. so when I apply it to Blender plugin, it cause a error.
2024-01-08 10:54:14 +08:00
92346dc81e add feature
- add exmaple cmake configure command in README.
- change BMap::Save interface to support compression and texture save opt switches.
- update PyBMap due to the change of BMap.
2023-12-03 22:50:36 +08:00
b8b2368ef5 fix issues
- fix lifetime issue about python c callback function
- fix type hint in PyBMap
- fix formatter clamp issue in CKContext
2023-12-03 18:15:05 +08:00
a70e32a306 fix issues
- revert nullptr check for BMap::MeshTrans pointer getter.
- fix pointer return error of BMap::MeshTrans
- fix type hint error and variable name error in PyBMap
- fix CKMesh flag init value error
- improve empty material slots saving. add a nullptr entry if no slots to make sure virtools can load it.
2023-12-01 23:31:09 +08:00
74d8f02588 fix issues
- fix usage error of ckid getter in bmap wrapper.
- fix CKObject flag init value error.
- fix CKFileWriter writing empty object name error.
- regulate some statement.
2023-11-30 22:48:40 +08:00
562b44c7aa use different file name of BMap in PyBMap for different system 2023-11-16 21:11:36 +08:00
d8b7ace53d expose lit mode interface in CKMesh.
- provide lit mode and wrap mode getter and setter in CKMesh.
- add lost flags setter in CKMesh.
- show lit mode and wrap mode data in Unvirt.
- add interface for lit mode in BMap, because some old Ballance map use lit mode to light objects.
- expose a raw c callback when creating bmap to allow user decide how the log output by themselves.
- change python bindings for BMap interface changes.
2023-11-15 21:47:58 +08:00
77bb3ce7d2 fix bmap python binding error 2023-11-10 12:23:03 +08:00
9b447733fb reorg PyBMap files. use correct import statement in module 2023-11-09 17:15:08 +08:00
29e9adac81 finish PyBMap bindings. (no serious debug) 2023-11-07 21:31:24 +08:00
824497f638 finish BMesh part of python bmap bindings 2023-11-07 11:39:35 +08:00
cd2d408618 finish MeshTransition & BMTexture bindings in pybmap 2023-11-06 10:47:49 +08:00
a8bd6888cb add interface for python bmap binding 2023-11-05 21:06:32 +08:00
d6411fd907 fix fatal error about bmap. continue writing py bmap binding 2023-11-05 17:38:08 +08:00
fcd1fa81db rename BM3dEntity to BM3dObject in BMap. continue writing python bmao binding. fix doc 2023-11-05 10:44:11 +08:00
2000a6ad9b update bmap python binding 2023-11-04 21:58:58 +08:00