Changeset 3009 for branches/nanovis2


Ignore:
Timestamp:
May 17, 2012 11:42:25 AM (12 years ago)
Author:
ldelgass
Message:

Fix clients to use new protocol for specular shading and opacity scaling.

Location:
branches/nanovis2/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/nanovis2/gui/scripts/flowvisviewer.tcl

    r3004 r3009  
    16521652                set specularLevel 0.3
    16531653                set specularExp 90.0
    1654                 SendCmd "$tag configure -ambient $ambient -diffuse $diffuse -specular {$specularLevel $specularExp}"
     1654                SendCmd "$tag configure -ambient $ambient -diffuse $diffuse -specularLevel $specularLevel -specularExp $specularExp"
    16551655            }
    16561656        }
     
    16591659                set comp [lindex [$_first components] 0]
    16601660                set tag $_first-$comp
    1661                 set opacity [expr {0.2*$_settings($this-transp)+1}]
     1661                set opacity [expr { 0.01 * double($_settings($this-transp)) }]
    16621662                SendCmd "$tag configure -opacity $opacity"
    16631663            }
  • branches/nanovis2/gui/scripts/nanovisviewer.tcl

    r3004 r3009  
    12171217                SendCmd "volume shading ambient $ambient"
    12181218                SendCmd "volume shading diffuse $diffuse"
    1219                 SendCmd "volume shading specular {$specularLevel $specularExp}"
     1219                SendCmd "volume shading specularLevel $specularLevel"
     1220                SendCmd "volume shading specularExp $specularExp"
    12201221            }
    12211222        }
     
    12231224            if {[isconnected]} {
    12241225                set val $_settings($this-transp)
    1225                 set sval [expr {0.2*$val+1}]
     1226                set sval [expr { 0.01 * double($val) }]
    12261227                SendCmd "volume shading opacity $sval"
    12271228            }
Note: See TracChangeset for help on using the changeset viewer.