PLY import vertex colour scaling #40069

Closed
opened 2014-05-07 18:16:43 +02:00 by don_reba@inbox.ru · 6 comments

Blender Version
2.70a

Short description of error
When the PLY import plugin encounters integer vertex colour values, it scales them from the [0,255] range to [0,1] by dividing by 256. This makes colours darker than they should be and excludes white. The values should be divided by 255.

scripts/addons/io_mesh_ply/import_ply.py(242)

**Blender Version** 2.70a **Short description of error** When the PLY import plugin encounters integer vertex colour values, it scales them from the [0,255] range to [0,1] by dividing by 256. This makes colours darker than they should be and excludes white. The values should be divided by 255. scripts/addons/io_mesh_ply/import_ply.py(242)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @don-reba

Added subscriber: @don-reba

To be exact, it should divide by 255, not multiply by 1/255, because the latter does not have an exact floating point representation.

To be exact, it should divide by 255, not multiply by 1/255, because the latter does not have an exact floating point representation.

This issue was referenced by 3e19e7145f

This issue was referenced by 3e19e7145fcf53d8331cf9c3e940e8aa866575d1
Bastien Montagne self-assigned this 2014-05-07 19:12:03 +02:00

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit 3e19e7145f.

Closed by commit 3e19e7145f.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#40069
No description provided.