NeuTu
  • About NeuTu
  • Overview
  • Get Started
    • Eager to try something COOL?
  • Main Windows
    • Home Window
    • Main Proofreading Window
      • Menu bars and drop-down
    • 3D Windows
  • Visualization
    • 2D Visualization
      • grayscale and segmentation
        • Change Body Color Arbitrarily
      • Synapses
      • Copy Information
    • 3D Visualization
      • Synapses
    • Orthogonal View
  • Body Proofreading
    • Body Lock
    • Correcting False Splits
    • Correcting False Merges
  • Annotation
    • Body Annotations
    • Bookmarks
    • Todo Annotation
    • Synapse Annotation
  • ROI
    • Create ROIs from Scratch
  • Hot Keys
  • Sequencer
    • Body Coloring
  • Protocols
    • Connection Validation
  • Measuring tool
  • Settings
    • Local Configuration
    • Meta Configuration in DVID
    • Command Line Options
  • Miscellaneous
    • DVID Data
  • Neuroglancer
    • Refresh
    • Annotations
      • Update Controls for Annotation Rendering
      • Import local annotations
Powered by GitBook
On this page
  • 1. Go to the rendering panel in the annotation layer
  • 2. Replace the text in the Annotation shader box with new code
  • 3. Click outside of the box

Was this helpful?

  1. Neuroglancer
  2. Annotations

Update Controls for Annotation Rendering

PreviousAnnotationsNextImport local annotations

Last updated 4 years ago

Was this helpful?

1. Go to the rendering panel in the annotation layer

2. Replace the text in the Annotation shader box with new code

#uicontrol vec3 falseSplitColor color(default="#F08040")
#uicontrol vec3 falseMergeColor color(default="#F040F0")
#uicontrol vec3 checkedColor color(default="green")
#uicontrol vec3 borderColor color(default="black")
#uicontrol float pointRadius slider(min=3, max=20, step=1, default=10)
#uicontrol float lineEndRadius slider(min=3, max=20, step=1, default=10)
#uicontrol float lineWidth slider(min=1, max=10, step=1, default=1)
#uicontrol float opacity slider(min=0, max=1, step=0.1, default=1)
#uicontrol float opacity3D slider(min=0, max=1, step=0.1, default=0.2)
#uicontrol vec3 defaultPointColor color(default="#FF0000")
#uicontrol vec3 lineColor color(default="#FF0000")
#uicontrol vec3 sphereColor color(default="red")
#uicontrol float sphereAnnotationOpacity slider(min=0, max=1, step=0.1, default=1)
void main() {
  setPointMarkerSize(pointRadius);
  setEndpointMarkerSize(lineEndRadius);
  setLineWidth(lineWidth);
  float finalOpacity = PROJECTION_VIEW ? opacity3D : opacity;
  setPointMarkerBorderColor(vec4(borderColor, finalOpacity));
  if (prop_rendering_attribute() == 1) {
    setColor(vec4(checkedColor, finalOpacity));
  } else if (prop_rendering_attribute() == 2) {    
    setColor(vec4(falseSplitColor, finalOpacity));
  } else if (prop_rendering_attribute() == 3)  {
    setColor(vec4(falseMergeColor, finalOpacity));
  } else {
 	setColor(vec4(defaultPointColor, finalOpacity));
  }
  setLineColor(lineColor, lineColor);
  setEndpointMarkerColor(lineColor);
  float finalSphereAnnotationOpacity = sphereAnnotationOpacity;
  if (prop_rendering_attribute() != 11) {
    finalSphereAnnotationOpacity = 1.0;
  }
  setSphereColor(vec4(sphereColor, finalSphereAnnotationOpacity));
  setAxisColor(vec4(sphereColor, finalSphereAnnotationOpacity));
  setAxisEndpointMarkerColor(vec4(sphereColor, finalSphereAnnotationOpacity));
}

3. Click outside of the box