mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:36:54 +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
|
serializerMapping["combineParts"] = true; // set true so that OBJSerializer reads material info from material library
|
||||||
hfm::Model::Pointer loadedModel = serializer->read(modelData, serializerMapping, _modelURL);
|
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();
|
auto config = baker.getConfiguration();
|
||||||
// Enable compressed draco mesh generation
|
// Enable compressed draco mesh generation
|
||||||
config->getJobConfig("BuildDracoMesh")->setEnabled(true);
|
config->getJobConfig("BuildDracoMesh")->setEnabled(true);
|
||||||
// Do not permit potentially lossy modification of joint data meant for runtime
|
// Do not permit potentially lossy modification of joint data meant for runtime
|
||||||
((PrepareJointsConfig*)config->getJobConfig("PrepareJoints"))->passthrough = true;
|
((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
|
// Begin hfm baking
|
||||||
baker.run();
|
baker.run();
|
||||||
|
|
Loading…
Reference in a new issue