Commit Graph

518 Commits (ace93d0d9fff1ffc90feb3daca4433c44ecb9f16)

Author SHA1 Message Date
Jeremy Hu 1623d7d782 Update to the latest thekla_atlas 2018-10-11 08:56:09 +08:00
Jeremy Hu a2770ecd8e Change texture painter clip expand joint style to round from miter 2018-10-10 22:42:55 +08:00
Jeremy Hu eeff771a3b Optimize texture generating time 2018-10-09 21:01:04 +08:00
Jeremy Hu 5f2a46be9c Avoid unnecessary mesh regeneration while only texture map changed 2018-10-09 17:17:44 +08:00
Jeremy Hu 73d20da08f Make better result to seamless texture
Fix parts vertices' connectivity in the uv unwrapping code.
2018-10-09 15:05:20 +08:00
Jeremy Hu 7eb5a325a0 Add MetalicRoughness material manager
Besides adding the PBR material manager, this commit hide some unnecessary features such as toggle wireframes and toggle normal smooth.
Add a regenerate button to indicate mesh is generating by showing a spiner, user can click this button to regenerate if the final result is not good.
Please note that, we generate the texture map by default compared to before we only generate texture map when user export glTF result. Current uvunwrap library cann't handle bad mesh very well, so it will crash on the wires model.
2018-10-09 10:19:12 +08:00
Jeremy Hu 308bc48c54 Add author @anderejd from meshlite library 2018-10-05 23:58:00 +08:00
Jeremy Hu 7de9b61de7 Remove generated trivial seam triangles 2018-10-05 23:54:12 +08:00
Jeremy Hu c2a54069f5 Thanks to @JoeyDeVries for his website https://learnopengl.com 2018-10-05 15:50:02 +08:00
Jeremy Hu 9c0da8f38f Replace the render with PBR
In this commit, another PBR render, come from website: https://learnopengl.com/PBR, also included as shaders/pbr-joey.frag
2018-10-05 15:37:01 +08:00
Jeremy Hu f7b5fb1c6a Add PBR support
Now can configure metalness and roughness for parts, however, the PBR render isn't enabled in the code currently.
2018-10-04 20:51:01 +08:00
Jeremy Hu 5c25d7d4f8 Move shader from source code to separated folder 2018-10-03 13:52:35 +08:00
Jeremy Hu 997d9efd75 Fix build 2018-10-02 13:18:35 +08:00
Jeremy Hu b02ffedb9d Merge branch 'curveeditor' 2018-10-02 13:09:04 +08:00
Jeremy Hu ee92472027 Add motion manager
Added motions tab, hermite curve editor, quaternion overshoot blend and so on.
2018-10-02 12:59:30 +08:00
Jeremy Hu dbb23b9029 Rename library name meshlite to meshlite_ffi 2018-09-28 10:45:39 +08:00
Jeremy Hu e2f44dded7 Fix normal interpolation on export 2018-09-23 11:34:35 +08:00
Jeremy Hu d6b38f5750 Fix part cache not update when add new node 2018-09-23 10:41:47 +08:00
Jeremy Hu 2156855444 Add show if opengl core profile used in about widget 2018-09-23 09:02:08 +08:00
Jeremy Hu 6ffbdc9c7b Add mesh seam combine algorithm
Not enable by default, should enable the weldEnabled in the SkeletonDocument class.
2018-09-22 18:31:02 +08:00
Jeremy Hu a419a0fb7a Fix pose edit 2018-09-21 16:14:37 +08:00
Jeremy Hu e22a6de6cb Add poses list view
Added Add, modify, delete, copy, and paste poses. The paste menu for nodes not show up also got fixed in this commit.
2018-09-21 15:10:18 +08:00
Jeremy Hu f163522aa2 Change hotkey 'Tab' to 'E'
The Tab key conflicts with system's hot key. Now, should use 'E' to switch the selection from one color to the other.
2018-09-19 00:04:23 +08:00
Jeremy Hu 7341259a48 Fix opengl widget messing up while dock top level changed 2018-09-18 22:23:28 +08:00
Jeremy Hu d3e28e88f2 Fix mesh render update blocking main UI 2018-09-18 15:20:51 +08:00
Jeremy Hu 1ab3d16bd4 Fix parts render crash
Before, app crash on some machines as been reported in #15 and #16, and cannot easily be reproduced on other machines, such as a virtual box guest system, which make it very hard to trace the root cause.
Now, the offline render is totally removed from the code base, instead of offline-render to image then show the image, we can directly show the parts model in the parts tree using normal opengl widget, and the result looks better than before.
2018-09-18 14:22:29 +08:00
Jeremy Hu 2f4102cedc Merge branch 'animation' 2018-09-18 11:25:07 +08:00
Jeremy Hu c64743f2f2 Fix rig skinning weights, add pose configure UI. 2018-09-18 11:17:35 +08:00
Jeremy Hu 778491bc11 Add author @PowPingDone #16 2018-09-17 07:03:00 +08:00
Jeremy Hu 278c1bb8cd Merge branch 'PowPingDone-patch-1' 2018-09-17 06:55:36 +08:00
PowPingDone e2d9fc1c32
Fix Compile Error 2018-09-16 14:23:54 -05:00
Jeremy Hu 8dcabeae72 Fix build 2018-09-14 18:28:03 +08:00
Jeremy Hu 360ed52a5c Fix build 2018-09-14 18:06:07 +08:00
Jeremy Hu 48bc8df5c3 Add auto-rig
This is the second version of auto-rig, differing from the first version, the user should pick up a rig type, unless no rig will be generated. Currently, only supports Tetrapod without tail. Export as glTF format to test this feature.

This commit also achive better quality quads than before.
2018-09-14 17:45:05 +08:00
Jeremy Hu a9b379a77a Add radius lock 2018-09-08 12:20:31 +08:00
Jeremy Hu 1988118179 Add smooth shading toggle 2018-09-07 20:51:33 +08:00
Jeremy Hu 94d63237e7 Add multiple select on parts tree 2018-09-07 18:13:55 +08:00
Jeremy Hu 0bf64eeb2d Fix build 2018-09-06 23:29:26 +08:00
Jeremy Hu 3c2d4f7480 Add mesh smooth slider
This feature could be useful for smooth one component and soften the seam of combination,
This commit also include a crash fix about incorrect use of CGAL.
2018-09-06 23:04:59 +08:00
Jeremy Hu 87b0f70460 Add mtl export with obj 2018-09-05 11:14:36 +08:00
Jeremy Hu e0621edff1 Fix deform width 2018-09-03 17:16:40 +08:00
Jeremy Hu 9a3dfb8ff2 Add view rotation 2018-09-03 15:05:05 +08:00
Jeremy Hu 10160285b8 Fix mesh cache
When origin changed by user, all parts should be regenerated.
2018-09-02 10:24:39 +08:00
Jeremy Hu fe401a5f13 Change connect nodes behavor.
If hovered target is not editable, create new node instead of connect existed nodes.
2018-09-02 07:48:38 +08:00
Jeremy Hu 6693365543 Fix invalid mesh cache 2018-09-01 18:18:28 +08:00
Jeremy Hu 717c8ef266 Add select by component 2018-09-01 10:17:26 +08:00
Jeremy Hu b945ab9725 Fix focus lost 2018-09-01 08:47:10 +08:00
Jeremy Hu 80ccbc51bf Validate points before doing convex hull 2018-09-01 07:17:36 +08:00
Jeremy Hu 7320568d1d Fix crash on union empty meshs 2018-08-31 23:49:32 +08:00
Jeremy Hu 1bac6c4c53 Fix undo/redo on color picking 2018-08-31 20:19:56 +08:00