mirror of
https://github.com/lubosz/overte.git
synced 2025-04-27 16:55:26 +02:00
Give the oven model-baker Baker an appropriate materialMappingBaseURL, but disable ParseMaterialMappingTask for now
This commit is contained in:
parent
b855b0e2a3
commit
32d5f7135f
1 changed files with 4 additions and 1 deletions
|
@ -249,12 +249,15 @@ void ModelBaker::bakeSourceCopy() {
|
|||
serializerMapping["combineParts"] = true; // set true so that OBJSerializer reads material info from material library
|
||||
hfm::Model::Pointer loadedModel = serializer->read(modelData, serializerMapping, _modelURL);
|
||||
|
||||
baker::Baker baker(loadedModel, serializerMapping, hifi::URL());
|
||||
baker::Baker baker(loadedModel, serializerMapping, _mappingURL);
|
||||
auto config = baker.getConfiguration();
|
||||
// Enable compressed draco mesh generation
|
||||
config->getJobConfig("BuildDracoMesh")->setEnabled(true);
|
||||
// Do not permit potentially lossy modification of joint data meant for runtime
|
||||
((PrepareJointsConfig*)config->getJobConfig("PrepareJoints"))->passthrough = true;
|
||||
// The resources parsed from this job will not be used for now
|
||||
// TODO: Proper full baking of all materials for a model
|
||||
config->getJobConfig("ParseMaterialMapping")->setEnabled(false);
|
||||
|
||||
// Begin hfm baking
|
||||
baker.run();
|
||||
|
|
Loading…
Reference in a new issue