View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015904VTK(No Category)public2015-12-23 14:142016-08-12 09:55
ReporterChris White 
Assigned ToKitware Robot 
PrioritylowSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version6.3.0 
Target VersionFixed in Version 
Summary0015904: SetAmbient no effect on multi component volume render.
DescriptionIf 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.
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 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.

 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


Copyright © 2000 - 2018 MantisBT Team