View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015904 | VTK | (No Category) | public | 2015-12-23 14:14 | 2016-08-12 09:55 | ||||
Reporter | Chris White | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | low | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | 6.3.0 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015904: SetAmbient no effect on multi component volume render. | ||||||||
Description | If you are doing a single component volume render SetAmbient(0.9) of vtkVolumeProperty correctly adjust the ambient of that volume. However if the volume is 2 components SetAmbient(0, 0.9) SetAmbient(1, 0.9); has no effect. Looking at the code; the default values for lightAmbientColor in vtkEncodedGradientShader.cxx, line 324 are zero, and thus no ambient lighting effects. Work around is to add a light which defines the ambient color vtkSmartPointer<vtkLight> light = vtkSmartPointer<vtkLight>::New(); light->SetAmbientColor(1, 1, 1); (probably don't need SetAmbientColor) Applies to both opengl2 and opengl modules. If no lighting has been specified defaults should be 1 and not 0. Volume is generated using vtkSmartVolumeMapper (fixed point ray cast because of 2 components). GPURenderDemo.cpp is working base code. | ||||||||
Tags | No tags attached. | ||||||||
Project | TBD | ||||||||
Type | incorrect functionality | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0037441) Kitware Robot (administrator) 2016-08-12 09:55 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2015-12-23 14:14 | Chris White | New Issue | |
2016-08-12 09:55 | Kitware Robot | Note Added: 0037441 | |
2016-08-12 09:55 | Kitware Robot | Status | backlog => closed |
2016-08-12 09:55 | Kitware Robot | Resolution | open => moved |
2016-08-12 09:55 | Kitware Robot | Assigned To | => Kitware Robot |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |