diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-02-22 17:27:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-02-22 17:27:46 +0300 |
commit | 0e935e397b945d2a8d76eb1c748e8bc11bca0095 (patch) | |
tree | 5ba9862638cf1bb02600d223e5fee7bde798e8f1 /source/blender/python | |
parent | d7088ce8259f26eb96d939fe963d4f2a28eb0df3 (diff) |
* Displacement baking wasnt working with negative distances.
* Added Normalize option for diplacement so everything in the 'Dist' range is mapped 0-1
* Increased the maximum Dist and Bias to1000.0 (was 10.0)
* Added python utility function in BPyRender.py - bakeToPlane(...), to automate heightmap, normalmap generation for Crystalspace.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/api2_2x/sceneRender.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/sceneRender.c b/source/blender/python/api2_2x/sceneRender.c index 62ddd5a33bb..4bf823bc938 100644 --- a/source/blender/python/api2_2x/sceneRender.c +++ b/source/blender/python/api2_2x/sceneRender.c @@ -1899,12 +1899,12 @@ static int RenderData_setFloatAttrClamp( BPy_RenderData *self, PyObject *value, break; case EXPP_RENDER_ATTR_BAKEDIST: min = 0.0f; - max = 10.0f; + max = 1000.0f; param = &self->renderContext->bake_maxdist; break; case EXPP_RENDER_ATTR_BAKEBIAS: min = 0.0f; - max = 10.0f; + max = 1000.0f; param = &self->renderContext->bake_biasdist; break; default: @@ -2880,7 +2880,7 @@ static PyGetSetDef BPy_RenderData_getseters[] = { {"bakeNormalizeAO", (getter)RenderData_getBakeMode, (setter)RenderData_setBakeMode, "Bake selection to active", - (void *)R_BAKE_NORMALIZE_AO}, + (void *)R_BAKE_NORMALIZE}, {"bakeMargin", (getter)RenderData_getIValueAttr, (setter)RenderData_setIValueAttrClamp, "number of pixels to use as a margin for the edges of the image", |