Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#32688] OBJ Clamp Scale not working as defined

Date:
2012-09-28 21:41
Priority:
3
State:
Closed
Submitted by:
Matt Lawson (outlaw3d)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Import/Export
Status:
Rejected / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
OBJ Clamp Scale not working as defined
Detailed description
Tested on Blender 2.63 and 2.64 RC2
OS: Windows 7 64 bit
Card: GEForce GT 540M

When importing a Wavefront OBJ, it appears that the clamp scale is not working as defined, or perhaps it is not defined correctly? It appears, based on the definition to be a way to clamp a maximum scale to an OBJ during import, but it will only do so in steps of 10x smaller than the original(?), Also it does not enlarge a OBJ, but it does not appear that it is defined to do so.

Identification, and testing done in forum post on BlenderArtists.org: http://blenderartists.org/forum/showthread.php?267498-Clamp-Scale-during-OBJ-import

Steps:
Load empty scene
Add a mesh cube
Export mesh cube as wavefront OBJ default settings
Delete mesh cube
Import Mesh cube as wavefront OBJ using clamp scale of:
100 = same size as exported
10 = same size as exported
5 = same size as exported
4 = same size as exported
2 = same size as exported
Anything below 2 (i.e. 1.99) drops size by a factor of 10
Next apparent drop is around 0.1, which drops again.

Followup

Message
  • Date: 2012-10-01 09:12
  • Sender: Campbell Barton
  • This is working as expected.
    * 0.0 disables the setting (as said in tooltip)
    * Clamp == large values do nothing. this only clamps sizes that are larger.

    That it clamps by a factor of 10 is not documented in the tooltip but I think its not so important to do so.

    The use case is - often OBJ files are scaled so large (100x500x200) or so, that they wont display well in blender. This feature means you can set the value to 10 and know that you can see the model you import. It also means if the model had some measurement eg 100 == 1m, That you wont loose measurements by scaling by some arbitrary number.

    Modified the tooltip to make clamping purpose more clear.

    closing.
 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2012-10-01 09:12campbellbarton
close_dateNone2012-10-01 09:12campbellbarton
assigned_tonone2012-10-01 09:12campbellbarton
StatusNew2012-10-01 09:12campbellbarton