﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	notify_on_close	platform	project
3628	Add command to turn off all directional lighting for a model	Tristan Croll	Tom Goddard	"{{{
The following bug report has been submitted:
Platform:        Linux-3.10.0-1127.13.1.el7.x86_64-x86_64-with-centos-7.8.2003-Core
ChimeraX Version: 1.0 (2020-06-04 23:15:07 UTC)
Description
It seems that ""lighting model #2 shadows false multi false"" doesn't turn off directional shadows - model #2 comes out looking flat only in ""soft"" or ""flat"" lighting modes, not in ""simple"", ""full"" or ""shadow"".

Log:
UCSF ChimeraX version: 1.0 (2020-06-04)  
© 2016-2020 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open 3io0 format mmcif fromDatabase pdb

3io0 title:  
Crystal structure of EtuB from Clostridium kluyveri [more info...]  
  
Chain information for 3io0 #1  
---  
Chain | Description  
A | EtuB protein  
  
3io0 mmCIF Assemblies  
---  
1| author_and_software_defined_assembly  
  

> usage draw

""draw"" is not a command name  

> show

> ui mousemode right label

> ui mousemode right ""mark point""

> marker #2 position 77,75.38,63.37 color yellow radius 1

> ui mousemode right ""resize markers""

> marker change #2:1 radius 3.421

> usage lighting

lighting [preset] [direction direction] [intensity a number] [color a color]
[fillDirection fillDirection] [fillIntensity a number] [fillColor a color]
[ambientIntensity a number] [ambientColor a color] [depthCue true or false]
[depthCueStart a number] [depthCueEnd a number] [depthCueColor a color]
[moveWithCamera true or false] [shadows true or false] [qualityOfShadows a
text string] [depthBias a number] [multiShadow an integer] [msMapSize an
integer] [msDepthBias a number]  
— report or alter lighting parameters  
preset: one of default, flat, full, gentle, simple, or soft  
direction: some numbers  
fillDirection: some numbers

lighting model models [depthCue true or false] [shadows true or false]
[multiShadow true or false]  
— Turn off depth cue or shadows for individual models even when globally they
are enabled.  

> lighting #2 shadows false

Expected one of 'default', 'flat', 'full', 'gentle', 'simple', or 'soft' or a
keyword  

> lighting #2 shadows flat

Expected one of 'default', 'flat', 'full', 'gentle', 'simple', or 'soft' or a
keyword  

> lighting #2 flat

Expected one of 'default', 'flat', 'full', 'gentle', 'simple', or 'soft' or a
keyword  

> lighting flat #2

Expected a keyword  

> lighting model #2 shadows false

> lighting model #2 flat

Expected a keyword  

> lighting model #2 multiShadow false

> lighting model #2 multiShadow false shadows false

> lighting shadows false

> lighting shadows false multiShadow false

Invalid ""multiShadow"" argument: Expected an integer  

> lighting model #2 multiShadow false

> lighting flat

> lighting simple

> lighting model #2

Model #2: depth_cue: True, shadows: False, multi_shadow: False  

> lighting model #2 depthCue false

> lighting model #2 depthCue false multiShadow false shadows false

> lighting model #2 depthCue false multiShadow false

> lighting flat

> lighting #1 shadows t

Expected one of 'default', 'flat', 'full', 'gentle', 'simple', or 'soft' or a
keyword  

> lighting model #1 shadows true

> lighting model #1 shadows true multiShadow true

> lighting multiShadow

Missing ""multiShadow"" keyword's argument  

> lighting multiShadow 5

> lighting multiShadow 1

> lighting multiShadow 0

> lighting simple

> ui tool show Shell

/opt/UCSF/ChimeraX/lib/python3.7/site-packages/IPython/core/history.py:226:
UserWarning: IPython History requires SQLite, your history will not be saved  
warn(""IPython History requires SQLite, your history will not be saved"")  

> hide #2 models

> show #2 models

> lighting simple

> lighting flat

> usage light model

lighting model models [depthCue true or false] [shadows true or false]
[multiShadow true or false]  
— Turn off depth cue or shadows for individual models even when globally they
are enabled.  

> lighting soft

> select clear

> lighting simple

> lighting soft

> lighting shadows true intensity 0.5

> lighting simple

> lighting soft

> lighting full

> lighting flat

> lighting full

> lighting model #2 shadows false multiShadow false

> lighting soft

> lighting simple

> lighting full

> lighting shadows false

> lighting full




OpenGL version: 3.3.0 NVIDIA 450.51.05
OpenGL renderer: TITAN Xp/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation
Manufacturer: Dell Inc.
Model: Precision T5600
OS: CentOS Linux 7 Core
Architecture: 64bit ELF
CPU: 32 Intel(R) Xeon(R) CPU E5-2687W 0 @ 3.10GHz
Cache Size: 20480 KB
Memory:
	              total        used        free      shared  buff/cache   available
	Mem:            62G        3.8G         42G        161M         16G         58G
	Swap:          4.9G          0B        4.9G

Graphics:
	03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP102 [TITAN Xp] [10de:1b02] (rev a1)	
	Subsystem: NVIDIA Corporation Device [10de:11df]	
	Kernel driver in use: nvidia
PyQt version: 5.12.3
Compiled Qt version: 5.12.4
Runtime Qt version: 5.12.8

}}}
"	enhancement	closed	normal		Graphics		fixed		Elaine Meng				all	ChimeraX
