3
0
Fork 0
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:
sabrina-shanman 2019-03-13 14:50:50 -07:00
parent b855b0e2a3
commit 32d5f7135f

View file

@ -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();