View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004157 | Slicer4 | Module Models | public | 2016-02-24 07:58 | 2016-10-13 02:00 |
Reporter | fepegar | Assigned To | pieper | ||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu | OS Version | 14.04 |
Product Version | Slicer 4.5.0-1 | ||||
Target Version | Fixed in Version | Slicer 4.6.0 | |||
Summary | 0004157: Models turn black when applying a transform | ||||
Description | Models darken when applying some transforms. I've observed that it happens when one or three scale parameters in the matrix are negative, for example: | ||||
Steps To Reproduce | I've written some code to reproduce this: Create a yellow sphere and add it to the scenescene = slicer.mrmlScene Create the transform and apply it to the modelt = slicer.vtkMRMLTransformNode() | ||||
Tags | models | ||||
Yes, that's what happens when you turn the model inside out. You can harden the transform in the context menu of the Data module and you can flip the normals in Surface Toolbox module. https://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/SurfaceToolbox |
|
Shouldn't it be enough to just apply my transformation to the model? Anyway, if I do harden the transform and then I flip the normals with the Surface Toolbox, I can see the interior of the model (backface culling enabled). So this didn't help me. Do you have any other ideas? |
|
Did you try just selecting the Normals option of the SurfaceToolbox without the Flip option? That should recalculate them for you. |
|
That did solve the visualization trouble. However I still don't understand why just applying the transform should not be enough. I'm not sure that hardening a transform and recalculating the model's normals is the best solution here. |
|
It's a pretty common thing in computer graphics - when you turn the object inside out the normals need to be recalculated. |
|
Ok thanks Steve. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2016-02-24 07:58 | fepegar | New Issue | |
2016-02-24 07:58 | fepegar | File Added: Screenshot.png | |
2016-03-04 10:42 | fepegar | Tag Attached: models | |
2016-03-04 10:42 | fepegar | Priority | normal => high |
2016-03-04 10:42 | fepegar | Severity | minor => major |
2016-03-18 16:58 | pieper | Note Added: 0013842 | |
2016-03-18 16:58 | pieper | Assigned To | => pieper |
2016-03-18 16:58 | pieper | Status | new => feedback |
2016-03-23 12:49 | fepegar | Note Added: 0013843 | |
2016-03-23 12:49 | fepegar | Status | feedback => assigned |
2016-03-23 13:17 | pieper | Note Added: 0013844 | |
2016-03-23 13:22 | fepegar | Note Added: 0013845 | |
2016-03-23 13:23 | fepegar | Note Edited: 0013845 | View Revisions |
2016-03-23 13:34 | pieper | Note Added: 0013846 | |
2016-03-23 13:34 | pieper | Status | assigned => closed |
2016-03-23 13:34 | pieper | Resolution | open => fixed |
2016-03-23 13:34 | pieper | Fixed in Version | => Slicer 4.5.1 |
2016-03-23 13:45 | fepegar | Note Added: 0013847 | |
2016-10-13 02:00 | jcfr | Fixed in Version | Slicer 4.5.1 => Slicer 4.6.0 |