diff options
author | McCabe Maxsted | 2009-10-04 22:44:41 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-10-04 23:20:41 -0700 |
commit | 3a519a998c4d3ebd3cfcbe632a67b6c37c45860f (patch) | |
tree | 8588a421d665e313ebabaddb81bc5c5035ce2d7c /linden/indra/llmath/llvolume.cpp | |
parent | Fixed mini-map distance label and rounding (diff) | |
download | meta-impy-3a519a998c4d3ebd3cfcbe632a67b6c37c45860f.zip meta-impy-3a519a998c4d3ebd3cfcbe632a67b6c37c45860f.tar.gz meta-impy-3a519a998c4d3ebd3cfcbe632a67b6c37c45860f.tar.bz2 meta-impy-3a519a998c4d3ebd3cfcbe632a67b6c37c45860f.tar.xz |
Changes that should improve sculpty LOD
Diffstat (limited to 'linden/indra/llmath/llvolume.cpp')
-rw-r--r-- | linden/indra/llmath/llvolume.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/linden/indra/llmath/llvolume.cpp b/linden/indra/llmath/llvolume.cpp index 5603a9c..9aa02ee 100644 --- a/linden/indra/llmath/llvolume.cpp +++ b/linden/indra/llmath/llvolume.cpp | |||
@@ -2198,10 +2198,16 @@ void LLVolume::sculpt(U16 sculpt_width, U16 sculpt_height, S8 sculpt_components, | |||
2198 | S32 requested_sizeS = 0; | 2198 | S32 requested_sizeS = 0; |
2199 | S32 requested_sizeT = 0; | 2199 | S32 requested_sizeT = 0; |
2200 | 2200 | ||
2201 | sculpt_calc_mesh_resolution(sculpt_width, sculpt_height, sculpt_type, mDetail, requested_sizeS, requested_sizeT); | 2201 | // create oblong sculpties with high LOD always |
2202 | F32 sculpt_detail = mDetail; | ||
2203 | if (sculpt_width != sculpt_height && sculpt_detail < 4.0) | ||
2204 | { | ||
2205 | sculpt_detail = 4.0; | ||
2206 | } | ||
2207 | sculpt_calc_mesh_resolution(sculpt_width, sculpt_height, sculpt_type, sculpt_detail, requested_sizeS, requested_sizeT); | ||
2202 | 2208 | ||
2203 | mPathp->generate(mParams.getPathParams(), mDetail, 0, TRUE, requested_sizeS); | 2209 | mPathp->generate(mParams.getPathParams(), sculpt_detail, 0, TRUE, requested_sizeS); |
2204 | mProfilep->generate(mParams.getProfileParams(), mPathp->isOpen(), mDetail, 0, TRUE, requested_sizeT); | 2210 | mProfilep->generate(mParams.getProfileParams(), mPathp->isOpen(), sculpt_detail, 0, TRUE, requested_sizeT); |
2205 | 2211 | ||
2206 | S32 sizeS = mPathp->mPath.size(); // we requested a specific size, now see what we really got | 2212 | S32 sizeS = mPathp->mPath.size(); // we requested a specific size, now see what we really got |
2207 | S32 sizeT = mProfilep->mProfile.size(); // we requested a specific size, now see what we really got | 2213 | S32 sizeT = mProfilep->mProfile.size(); // we requested a specific size, now see what we really got |