mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 06:53:01 +02:00
remove noisy logging added by auto-baking
This commit is contained in:
parent
ec80846281
commit
b77ceab661
1 changed files with 0 additions and 5 deletions
|
@ -241,7 +241,6 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
void GeometryDefinitionResource::downloadFinished(const QByteArray& data) {
|
void GeometryDefinitionResource::downloadFinished(const QByteArray& data) {
|
||||||
qDebug() << "Processing geometry: " << _effectiveBaseURL;
|
|
||||||
_url = _effectiveBaseURL;
|
_url = _effectiveBaseURL;
|
||||||
_textureBaseUrl = _effectiveBaseURL;
|
_textureBaseUrl = _effectiveBaseURL;
|
||||||
QThreadPool::globalInstance()->start(new GeometryReader(_self, _effectiveBaseURL, _mapping, data, _combineParts));
|
QThreadPool::globalInstance()->start(new GeometryReader(_self, _effectiveBaseURL, _mapping, data, _combineParts));
|
||||||
|
@ -255,7 +254,6 @@ void GeometryDefinitionResource::setGeometryDefinition(FBXGeometry::Pointer fbxG
|
||||||
QHash<QString, size_t> materialIDAtlas;
|
QHash<QString, size_t> materialIDAtlas;
|
||||||
for (const FBXMaterial& material : _fbxGeometry->materials) {
|
for (const FBXMaterial& material : _fbxGeometry->materials) {
|
||||||
materialIDAtlas[material.materialID] = _materials.size();
|
materialIDAtlas[material.materialID] = _materials.size();
|
||||||
qDebug() << "setGeometryDefinition() " << _textureBaseUrl;
|
|
||||||
_materials.push_back(std::make_shared<NetworkMaterial>(material, _textureBaseUrl));
|
_materials.push_back(std::make_shared<NetworkMaterial>(material, _textureBaseUrl));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -348,7 +346,6 @@ Geometry::Geometry(const Geometry& geometry) {
|
||||||
|
|
||||||
_materials.reserve(geometry._materials.size());
|
_materials.reserve(geometry._materials.size());
|
||||||
for (const auto& material : geometry._materials) {
|
for (const auto& material : geometry._materials) {
|
||||||
qDebug() << "Geometry() no base url...";
|
|
||||||
_materials.push_back(std::make_shared<NetworkMaterial>(*material));
|
_materials.push_back(std::make_shared<NetworkMaterial>(*material));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -434,7 +431,6 @@ void GeometryResource::deleter() {
|
||||||
void GeometryResource::setTextures() {
|
void GeometryResource::setTextures() {
|
||||||
if (_fbxGeometry) {
|
if (_fbxGeometry) {
|
||||||
for (const FBXMaterial& material : _fbxGeometry->materials) {
|
for (const FBXMaterial& material : _fbxGeometry->materials) {
|
||||||
qDebug() << "setTextures() " << _textureBaseUrl;
|
|
||||||
_materials.push_back(std::make_shared<NetworkMaterial>(material, _textureBaseUrl));
|
_materials.push_back(std::make_shared<NetworkMaterial>(material, _textureBaseUrl));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -536,7 +532,6 @@ model::TextureMapPointer NetworkMaterial::fetchTextureMap(const QUrl& url, image
|
||||||
NetworkMaterial::NetworkMaterial(const FBXMaterial& material, const QUrl& textureBaseUrl) :
|
NetworkMaterial::NetworkMaterial(const FBXMaterial& material, const QUrl& textureBaseUrl) :
|
||||||
model::Material(*material._material)
|
model::Material(*material._material)
|
||||||
{
|
{
|
||||||
qDebug() << "Created network material with base url: " << textureBaseUrl;
|
|
||||||
_textures = Textures(MapChannel::NUM_MAP_CHANNELS);
|
_textures = Textures(MapChannel::NUM_MAP_CHANNELS);
|
||||||
if (!material.albedoTexture.filename.isEmpty()) {
|
if (!material.albedoTexture.filename.isEmpty()) {
|
||||||
auto map = fetchTextureMap(textureBaseUrl, material.albedoTexture, image::TextureUsage::ALBEDO_TEXTURE, MapChannel::ALBEDO_MAP);
|
auto map = fetchTextureMap(textureBaseUrl, material.albedoTexture, image::TextureUsage::ALBEDO_TEXTURE, MapChannel::ALBEDO_MAP);
|
||||||
|
|
Loading…
Reference in a new issue