Commit Graph

266 Commits (a1249f5fcb06c0e06fa7f4216986d59ba8771a82)

Author SHA1 Message Date
Jeremy Hu a1249f5fcb Fix material preview. 2019-03-16 15:32:45 +09:30
Jeremy Hu bc3109def9 Prepare 1.0.0-beta.16 2019-03-10 11:26:54 +09:30
Jeremy Hu e2f829d3ce Make chamfer tool as a separate tool
Remove cut template customiziation.
2019-03-10 07:40:39 +09:30
Jeremy Hu 26353d530a Support onion skin in pose editor
Also add more buttons to speed up the pose editing.
Thanks @Toshiwoz for proposing this feature.
2019-03-03 09:35:13 +09:30
Jeremy Hu 8c0156bc7a Add example model: Bob
Add menu item "Open Example", open a default example model, called "bob.ds3".
Thanks to reddit user(bvanevery) for proposing this feature.
2019-03-01 22:34:46 +09:30
Jeremy Hu cbaccb0116 Add cut face chamfer tool. 2019-02-27 22:29:03 +09:30
Jeremy Hu 86978d0ac3 Add new cut face type: triangle 2019-02-27 08:25:29 +09:30
Jeremy Hu 2b44576f22 Fix cut face base normal. 2019-02-26 22:54:58 +09:30
Jeremy Hu 02bb32391e Add cut face customizing.
This commit introduce a new tool, allow user to customize the face template for automatical extruding.
2019-02-24 23:12:23 +09:30
Jeremy Hu 7491679425 Remove smooth operation from component mesh. 2019-02-23 22:40:11 +09:30
Jeremy Hu 160d2aae5e Show part preview in red color when there is self intersection. 2019-02-23 13:36:24 +09:30
Jeremy Hu b86837b4b0 Add shortcut 'W' for toggling wireframe. 2019-02-23 10:11:56 +09:30
Jeremy Hu d866e0147b Add cut rotation tool
Cut rotation tool allow user to adjust the generated face's rotation.
Convex hull wrapping tool removed in this commit.
2019-02-22 08:18:15 +09:30
Jeremy Hu de133b0838 Hide whole model rotating buttons 2019-02-21 21:54:45 +09:30
Jeremy Hu 4922c669ba Add wireframe toggle back 2019-02-21 21:49:26 +09:30
Jeremy Hu 8053d3c3fb Improve the quality of mesh parts bridging
First, split parts by combine mode, then sub group by color name, those parts which following in the same sub group will be bridged together.
2019-02-21 08:27:15 +09:30
Jeremy Hu 3e1fde4260 Fix build 2019-02-19 20:51:12 +09:30
Jeremy Hu 4bdbdd496a Introduce new mesh generator: nodemesh
Remove meshlite, introduce nodemesh: https://github.com/huxingyi/nodemesh
Now, all the codebase move to C++, no rust language dependency.
2019-02-18 22:27:18 +09:30
Jeremy Hu b65205a48c Add tool button tips especially when failed to generate mesh #20
This commit add tips for buttons, to show what the function of the button.
Also, fixed a issue, there was no useful infos to tell user when the mesh was failed to generate, now user should see a warning icon with tips to show why the preview disappear.

Thanks the following contributors:
@RubenSandwich <https://github.com/RubenSandwich>
boynet <https://dust3d.discourse.group/u/boynet>
fornclake <https://www.reddit.com/user/fornclake>
2019-01-07 22:33:42 +09:30
Jeremy Hu 3f3134cc0e Fix typo 2018-12-29 09:32:53 +09:30
Jeremy Hu ef82f2cc6f Change background opacity of pose editor
When one pose consists of multiple frames, each frame will be hardly see when the opacity is 0.25, this commit change the opacity to 0.5 in pose editor, however, leave it as 0.25 in main modeling interface.
2018-12-16 14:59:22 +09:30
Jeremy Hu ff65a24f32 Fix node scaling with keyboard on add mode
Node scaling only worked with mouse on add mode before, now should be also working with keyboard.
2018-12-15 23:11:02 +09:30
Jeremy Hu 7fe87b2dee Fix double click selection in pose editor
Double click should select connected items only, not select all.
2018-12-11 21:25:55 +09:30
Jeremy Hu f19771fbb1 Fix minimum node radius 2018-12-09 12:20:15 +09:30
Jeremy Hu 251e1f5a6e Fix toolbar icon size #19 2018-12-03 22:56:20 +09:30
Jeremy Hu 08b20e4d5b Fit right sub widget size #19 2018-12-02 23:16:04 +09:30
Jeremy Hu 5704525505 Fit toolbar button size #19 2018-12-02 22:02:34 +09:30
Jeremy Hu ba218b7168 Make the font default size #19 2018-12-02 08:24:04 +09:30
Jeremy Hu ebe97adcde Export metallic, roughness and ambient occlusion map to fbx file 2018-11-28 12:30:03 +09:30
Jeremy Hu 0bee294c7f Put base name into texture image name as prefix 2018-11-28 11:19:22 +09:30
Jeremy Hu b60b9d8691 Embed textures(Color/Normal) to FBX 2018-11-28 00:14:56 +09:30
Jeremy Hu 1866e8fbda Export normal texture and ORM texture to glTF 2018-11-18 08:16:26 +08:00
Jeremy Hu aea7b0cb74 Switch the order of ORM combined texture
Red: Ambient Occlusion
Green: Roughness
Blue: Metallic
2018-11-18 07:30:26 +08:00
Jeremy Hu f6bafdb720 Fix typo 2018-11-18 07:02:12 +08:00
Jeremy Hu 538528d103 Fix normal tangent
Some tangents did not get calculate, this cause some uncolored triangles show in the rendered model, this commit fixed it.
2018-11-17 23:42:46 +08:00
Jeremy Hu 1853e45ea4 Remove model preview from export widget 2018-11-17 17:10:08 +08:00
Jeremy Hu e39acc9f25 Add normal map preview 2018-11-16 13:55:52 +08:00
Jeremy Hu 69d97c7780 Fix build 2018-11-16 07:13:15 +08:00
Jeremy Hu d48bea6248 Merge branch 'master' of https://github.com/huxingyi/dust3d 2018-11-16 07:01:53 +08:00
Jeremy Hu 7f5a47c074 Fix merged texture image
The merged texture image of metalness, roughness and ambient occlusion did not get saved in the document class, this commit fixed it.
2018-11-16 06:56:24 +08:00
huxingyi 9b56ce2dd3 Fix wheel event on windows
The mouse wheel event got triggered on multiple widgets at the same time, this will cause the rendered model been wrongly zoomed while the intention is resizing the nodes.
2018-11-15 22:33:56 +08:00
huxingyi 889c11ecef Add new combine mode: Inflation
This mode turn the component to functional nodes instead of mesh construction. The mesh generated before this component will be proportional deformed.
2018-11-15 22:01:20 +08:00
huxingyi ab97615bea Add "combineMode" configuration for component to replace the "inverse" attribute
Currently, only support "Normal" and "Inversion" modes, "Normal" means normal mesh union, "Inversion" means mesh diff, it behaves like subtract itself from the previous mesh.
2018-11-14 21:21:45 +08:00
huxingyi 753dfe9d8f Make the inverted component more obvious
Mark inverted components as blue to differentiate with normal components.
2018-11-14 11:11:31 +08:00
Jeremy Hu 1f8f7913a7 Improve mesh generation
Insert intermediate nodes automatically between nodes of long edges to avoid generating tiny area but long edge triangles.
2018-11-12 07:21:34 +08:00
Jeremy Hu 39cfe6537d Speed up document saving
If there are images need to be saved, such as the model turnaround reference sheet and texture images, the document saving may be slow because of image encoding to png, now, all the images are pre encoded when the first load, so the document saving could be speed up by avoid the cost of image encoding.
2018-11-11 21:08:13 +08:00
Jeremy Hu dff8e40ef8 Fix PBR material preview
The metallic and roughness texture not show up before, now should be ok if material is been set properly, however, export not done yet.
2018-11-11 17:13:46 +08:00
Jeremy Hu 4416c05bb5 Export translation to FBX 2018-11-11 11:14:49 +08:00
Jeremy Hu 9231ce9162 Fix pose setting: Height above ground level.
Root bone will have heightAboveGroundLevel parameter to indicate the distance between ground and foot. It's a relative value, comparing with the distance of the first spine head position and foot.
2018-11-11 00:05:49 +08:00
Jeremy Hu 205a9f512f Fix paste shortcut for pose editor 2018-11-10 08:21:07 +08:00