Add more poly count options for remesh
parent
8775a09fa3
commit
1844a897c4
|
@ -1076,7 +1076,7 @@ Tips:
|
|||
</message>
|
||||
<message>
|
||||
<source>Low Poly</source>
|
||||
<translation>低面</translation>
|
||||
<translation>低面数</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Original</source>
|
||||
|
@ -1084,11 +1084,7 @@ Tips:
|
|||
</message>
|
||||
<message>
|
||||
<source>High Poly</source>
|
||||
<translation>高面</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Extreme High Poly</source>
|
||||
<translation>极高面</translation>
|
||||
<translation>高面数</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Body</source>
|
||||
|
@ -1106,6 +1102,18 @@ Tips:
|
|||
<source>Centripetal</source>
|
||||
<translation>向心力</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Extremely High Poly</source>
|
||||
<translation>极高面数</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ultra High Poly</source>
|
||||
<translation>超高面数</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Tremendously High Poly</source>
|
||||
<translation>巨多面数</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>RigWidget</name>
|
||||
|
|
|
@ -875,7 +875,7 @@ bool MeshGenerator::componentRemeshed(const std::map<QString, QString> *componen
|
|||
return false;
|
||||
if (ComponentLayer::Cloth == ComponentLayerFromString(valueOfKeyInMapOrEmpty(*component, "layer").toUtf8().constData())) {
|
||||
if (nullptr != polyCountValue)
|
||||
*polyCountValue = PolyCountToValue(PolyCount::ExtremeHighPoly);
|
||||
*polyCountValue = PolyCountToValue(PolyCount::UltraHighPoly);
|
||||
return true;
|
||||
}
|
||||
auto polyCount = PolyCountFromString(valueOfKeyInMapOrEmpty(*component, "polyCount").toUtf8().constData());
|
||||
|
|
|
@ -7,7 +7,9 @@ enum class PolyCount
|
|||
LowPoly,
|
||||
Original,
|
||||
HighPoly,
|
||||
ExtremeHighPoly,
|
||||
UltraHighPoly,
|
||||
ExtremelyHighPoly,
|
||||
TremendouslyHighPoly,
|
||||
Count
|
||||
};
|
||||
PolyCount PolyCountFromString(const char *countString);
|
||||
|
@ -21,8 +23,12 @@ PolyCount PolyCountFromString(const char *countString) \
|
|||
return PolyCount::Original; \
|
||||
if (count == "HighPoly") \
|
||||
return PolyCount::HighPoly; \
|
||||
if (count == "ExtremeHighPoly") \
|
||||
return PolyCount::ExtremeHighPoly; \
|
||||
if (count == "UltraHighPoly") \
|
||||
return PolyCount::UltraHighPoly; \
|
||||
if (count == "ExtremelyHighPoly") \
|
||||
return PolyCount::ExtremelyHighPoly; \
|
||||
if (count == "TremendouslyHighPoly") \
|
||||
return PolyCount::TremendouslyHighPoly; \
|
||||
return PolyCount::Original; \
|
||||
}
|
||||
const char *PolyCountToString(PolyCount count);
|
||||
|
@ -36,8 +42,12 @@ const char *PolyCountToString(PolyCount count) \
|
|||
return "Original"; \
|
||||
case PolyCount::HighPoly: \
|
||||
return "HighPoly"; \
|
||||
case PolyCount::ExtremeHighPoly: \
|
||||
return "ExtremeHighPoly"; \
|
||||
case PolyCount::UltraHighPoly: \
|
||||
return "UltraHighPoly"; \
|
||||
case PolyCount::ExtremelyHighPoly: \
|
||||
return "ExtremelyHighPoly"; \
|
||||
case PolyCount::TremendouslyHighPoly: \
|
||||
return "TremendouslyHighPoly"; \
|
||||
default: \
|
||||
return "Original"; \
|
||||
} \
|
||||
|
@ -53,8 +63,12 @@ QString PolyCountToDispName(PolyCount count) \
|
|||
return QObject::tr("Original"); \
|
||||
case PolyCount::HighPoly: \
|
||||
return QObject::tr("High Poly"); \
|
||||
case PolyCount::ExtremeHighPoly: \
|
||||
return QObject::tr("Extreme High Poly"); \
|
||||
case PolyCount::UltraHighPoly: \
|
||||
return QObject::tr("Ultra High Poly"); \
|
||||
case PolyCount::ExtremelyHighPoly: \
|
||||
return QObject::tr("Extremely High Poly"); \
|
||||
case PolyCount::TremendouslyHighPoly: \
|
||||
return QObject::tr("Tremendously High Poly"); \
|
||||
default: \
|
||||
return QObject::tr("Original"); \
|
||||
} \
|
||||
|
@ -70,8 +84,12 @@ float PolyCountToValue(PolyCount count) \
|
|||
return 1.0f; \
|
||||
case PolyCount::HighPoly: \
|
||||
return 1.2f; \
|
||||
case PolyCount::ExtremeHighPoly: \
|
||||
case PolyCount::UltraHighPoly: \
|
||||
return 1.8f; \
|
||||
case PolyCount::ExtremelyHighPoly: \
|
||||
return 2.4f; \
|
||||
case PolyCount::TremendouslyHighPoly: \
|
||||
return 3.0f; \
|
||||
default: \
|
||||
return 1.0f; \
|
||||
} \
|
||||
|
|
Loading…
Reference in New Issue