Skip to content
Snippets Groups Projects
  • Bastien Montagne's avatar
    3430fbc7
    Fix T45316: Obj loading/saving brightness inconsistency. · 3430fbc7
    Bastien Montagne authored
    Fixes:
    * Wrong (off-by-one) import of specular hardness (aka specular exponent in OBJ).
    * Bad usage of world color when exporting ambient color (though it seems to make sense
      on first look, this is bad because impossible to 'undo' on import - merging
      data external to object itself).
    * Bad default values for diff/spec intensity in imported materials (OBJ does not
      have those, so we must assume they are 1.0).
    
    Thanks to Luke Brookes (propuke) for finding all those glitches! :)
    3430fbc7
    History
    Fix T45316: Obj loading/saving brightness inconsistency.
    Bastien Montagne authored
    Fixes:
    * Wrong (off-by-one) import of specular hardness (aka specular exponent in OBJ).
    * Bad usage of world color when exporting ambient color (though it seems to make sense
      on first look, this is bad because impossible to 'undo' on import - merging
      data external to object itself).
    * Bad default values for diff/spec intensity in imported materials (OBJ does not
      have those, so we must assume they are 1.0).
    
    Thanks to Luke Brookes (propuke) for finding all those glitches! :)