Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 777
    • Issues 777
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 210
    • Merge requests 210
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #16988
Closed
Open
Created Feb 27, 2017 by xzfn@xzfn

Ambient color not working in VTK7.1.0, while fine in VTK6.3.0

The ambient color composition seems broken in VTK7.1.0, but OK in VTK6.3.0. The attached python script can demonstrate that.

An actor that has non-zero ambient, zero diffuse and zero specular is created. There's no light, but the renderer's ambient is set to green.

The result should be green, since global green ambient shine on white actor.

While in VTK6.3.0, it shows green, in VTK7.1.0, it shows grey.

I'm using Win7 x64, both versions of vtkpython are downloaded from the official release page.

Run this: vtkpython.exe test_light.py

test_light.py

Assignee
Assign to
Time tracking