Commit graph

106 commits

Author SHA1 Message Date
Dale Glass
8d8d43e342 Review fix 2021-12-23 23:10:44 +01:00
Dale Glass
aeb52b38c7 Replace the deprecated toStdVector() and fromStdVector() 2021-12-23 23:10:44 +01:00
Kasen IO
21fd10d154 Revert commit 359248829c using -m 1 to temporarily fix issue 383. 2020-06-03 16:08:18 -04:00
sabrina-shanman
9a65d78cdf Fix model baking to work with new hfm::Shape material definition (1
material per mesh part)
2019-11-11 17:52:00 -08:00
Sabrina Shanman
28b68b6fce
Merge pull request #16453 from sabrina-shanman/instancing
Merge master into instancing
2019-11-05 10:25:51 -08:00
sabrina-shanman
7b14c00540 Merge branch 'master' into instancing 2019-11-05 10:22:24 -08:00
sabrina-shanman
d9e441d65e Make shape extent calculations use slim mesh extents, and rename task to CalculateTransformedExtentsTask 2019-11-01 10:47:10 -07:00
sabrina-shanman
6666df6137 Fix build warnings/errors 2019-10-31 14:49:28 -07:00
sabrina-shanman
023d73a25d Finish TriangleListMesh generation, rename some things 2019-10-31 13:47:00 -07:00
Sam Gateau
e9ce467eb9 Crahs because of ? 2019-10-31 13:04:11 -07:00
HifiExperiments
1e100a672e merge with master and try to fix opacity mode stuff 2019-10-23 22:21:45 -07:00
sabrina-shanman
ad6720240f Introduce hfm::Mesh.clusterWeightsPerVertex 2019-10-18 11:30:48 -07:00
sabrina-shanman
be9931bcab Move skinning reweighting code out of model prep to hfm library; use in FBXSerializer. 2019-10-18 10:08:45 -07:00
sabrina-shanman
0c3e81f52f Merge branch 'instancing' of github.com:highfidelity/hifi into instancing_gltf 2019-10-16 14:03:01 -07:00
Sam Gateau
eecaeb1155 FOund the issue why the skinning was incorrect, removed unecessary data structures in the newly added objects and renamed Deformer to SkinCluster and DYnamicTransform to SkinDeformer 2019-10-16 04:02:05 -07:00
Sam Gateau
108d331d86 more 2019-10-14 17:45:07 -07:00
sabrina-shanman
09f584818b Add extent calculation utilities, CalculateExtentsTask, make tangent
calculation more lenient
2019-10-07 16:38:01 -07:00
sabrina-shanman
41de373570 Fix not allocating shapeVerticesPerJoint in CollectShapeVerticesTask.cpp 2019-10-03 15:17:26 -07:00
Sam Gateau
001718224e fine tune the recent changes to be able to return to rendering of the hfm::Mesh loaded, not the shapes yet 2019-10-02 14:39:00 -07:00
sabrina-shanman
6eed3e43bc Fix skinning deformer data being added to graphics::Mesh even if the mesh has no skinning 2019-10-02 13:03:19 -07:00
sabrina-shanman
f773bdeca2 Remove unused variable 2019-09-30 09:07:42 -07:00
sabrina-shanman
b4c50b3f48 Remove unused parameter from getReweightedDeformers 2019-09-27 17:46:12 -07:00
sabrina-shanman
cd94dc15f9 Add CollectShapeVerticesTask 2019-09-27 17:14:09 -07:00
sabrina-shanman
2077da6f37 Create ReweightDeformersTask 2019-09-26 17:06:41 -07:00
sabrina-shanman
725d4ee643 Fix build warnings 2019-09-24 10:57:16 -07:00
sabrina-shanman
99386565b0 Fix build warnings/errors 2019-09-19 11:15:38 -07:00
sabrina-shanman
56896e0866 Re-name error message to mention deformers, not blendshapes 2019-09-19 09:26:28 -07:00
sabrina-shanman
de8223fee8 Change BuildGraphicsMeshTask to use new deformers 2019-09-18 15:46:15 -07:00
sabrina-shanman
76b1f551b1 Merge branch 'master' into instancing 2019-09-16 10:17:59 -07:00
sabrina-shanman
46616b4efd Fix more integer conversion warnings 2019-09-16 09:55:25 -07:00
Maia Hansen
53aed1e6bf
Merge pull request #16171 from sabrina-shanman/bug_oven_draco
(BUGZ-1446) Fix oven error when baking FBX mesh with no indices
2019-09-12 12:37:49 -07:00
sabrina-shanman
00f7b75f34 Fix draco errors being added to wrong part of list 2019-09-12 10:45:35 -07:00
sabrina-shanman
b944db3e79 std::vector-ize joints and materials in hfm::Model 2019-09-11 16:54:07 -07:00
sabrina-shanman
c4db6c78d8 std::vector-ize meshes/mesh parts in hfm::Model 2019-09-11 16:50:50 -07:00
sabrina-shanman
65d85138cc TIL that std::vector<bool> is a bit field
https://howardhinnant.github.io/onvectorbool.html
2019-09-10 16:31:30 -07:00
sabrina-shanman
384b7fd629 Fix FBXBaker failing when an unbaked mesh is empty
Error early for all model bakers for draco errors
2019-09-10 15:22:54 -07:00
luiscuenca
94e1707ab9
Fix avatars with rotation offsets 2019-09-09 10:33:51 -07:00
luiscuenca
07d17343bf
fix warnigns 2019-08-23 07:21:19 -07:00
luiscuenca
4b1b61ae5b
Keep new offset rotation method and resolve duplicates at the end 2019-08-22 13:16:32 -07:00
luiscuenca
260ee59585
Make sure joint names are unique 2019-08-15 16:57:17 -07:00
luiscuenca
2ef1c6458a
Fix joint indexing when duplicated joint on skeleton 2019-08-15 14:53:30 -07:00
SamGondelman
60600779c9 merge with master 2019-07-12 11:01:17 -07:00
Anthony Thibault
6c66f5a37b Fix for DependencyManager crash on shutdown on Mac
On Mac, it is possible to crash when shutting down, it is not clear if this is due to
shutting down the app on another thread during logout or something that can happen
during normal shutdown, because it is so difficult to reproduce.

However, from looking at the stack traces it is possible for a [NSApplication terminate:]
event to get processed while Appliction::aboutToQuit() is calling ScriptEngine::waitTillDoneRunning()
This causes AppKit to invoke the static destructors too early.  Which in turn, causes the
DependencyManager destructor to fire while there are still many dependencies running.
Unfortunatly, the order of destruction is not determinstic, causing them to get shutdown
in an incorrect order.

To workaround this, we delay the call to QCoreApplication::processEvents() as late as possible,
in the Application destructor. Theoretically, this will be a safe time for the static destructors
to be invoked, because it is after all of the DependencyManager's dependencies have been
manually destroyed.

However, this is only a speculative fix, because this is so difficult to reproduce.
2019-07-01 17:37:57 -07:00
Sam Gondelman
3d05a954bc
Merge branch 'master' into proceduralMesh 2019-05-23 09:35:14 -07:00
sabrina-shanman
3849450c66 Fix crash calculating tangents without texcoords 2019-05-22 11:57:20 -07:00
Shannon Romano
11f4252a30
Merge pull request #15599 from sabrina-shanman/bug_hfm_normal-map
(BUGZ-167) Always calculate tangents
2019-05-21 12:06:06 -07:00
sabrina-shanman
4b15ee9c3a Always calculate tangents 2019-05-21 10:47:10 -07:00
SamGondelman
da254c2ccc (¬‿¬) 2019-05-15 23:48:04 -07:00
sabrina-shanman
0b3f2b1765 Fix crash due to invalid indices in baker::calculateNormals 2019-05-01 09:53:48 -07:00
Clement
0f2dbd7b6a Fix mac warnings 2019-04-19 20:14:15 -07:00