RenderingAttributes ra=new RenderingAttributes(); ra.setIgnoreVertexColors(true); app.setRenderingAttributes(ra);
mat.setSpecularColor(new Color3f(0.6f,0.3f,0.2f)); mat.setLightingEnable(true); RenderingAttributes ra=new RenderingAttributes(); ra.setIgnoreVertexColors(true); ColoringAttributes ca=new ColoringAttributes();
mat.setSpecularColor(new Color3f(0.6f,0.3f,0.2f)); mat.setLightingEnable(true); RenderingAttributes ra=new RenderingAttributes(); ra.setIgnoreVertexColors(true); ColoringAttributes ca=new ColoringAttributes();
@Override protected org.scijava.java3d.SceneGraphObject createNode() { return new RenderingAttributes(); }
/** * @deprecated replaced with cloneNodeComponent(boolean forceDuplicate) */ @Override public NodeComponent cloneNodeComponent() { RenderingAttributes ra = new RenderingAttributes(); ra.duplicateNodeComponent(this); return ra; }
final TransparencyAttributes transAtts = new TransparencyAttributes( TransparencyAttributes.BLENDED, 0.2f ); appearance.setTransparencyAttributes( transAtts ); final RenderingAttributes renderingAtts = new RenderingAttributes(); renderingAtts.setAlphaTestFunction( RenderingAttributes.GREATER_OR_EQUAL ); renderingAtts.setAlphaTestValue( 0.3f );
final TransparencyAttributes transAtts = new TransparencyAttributes( TransparencyAttributes.BLENDED, 0.2f ); appearance.setTransparencyAttributes( transAtts ); final RenderingAttributes renderingAtts = new RenderingAttributes(); renderingAtts.setAlphaTestFunction( RenderingAttributes.GREATER_OR_EQUAL ); renderingAtts.setAlphaTestValue( 0.3f );
/** * @see PointList.PointListListener#renamed(BenesNamedPoint) */ @Override public void renamed(final BenesNamedPoint p) { final int i = points.indexOf(p); getChild(i).setName(points.get(i).getName()); Group bg = (Group) getChild(i); bg = (Group) bg.getChild(0); bg = (Group) bg.getChild(2); final OrientedShape3D os = (OrientedShape3D) bg.getChild(0); final Text2D t2d = new Text2D(p.getName(), color, "Helvetica", 24, Font.PLAIN); t2d.setRectangleScaleFactor(0.03f); final Geometry g = t2d.getGeometry(); final Appearance a = t2d.getAppearance(); final RenderingAttributes ra = new RenderingAttributes(); ra.setDepthTestFunction(RenderingAttributes.ALWAYS); a.setRenderingAttributes(ra); g.setCapability(Geometry.ALLOW_INTERSECT); os.setGeometry(g); os.setAppearance(a); }
rendAttr = new RenderingAttributes(); rendAttr.setCapability(RenderingAttributes.ALLOW_ALPHA_TEST_VALUE_WRITE); rendAttr.setAlphaTestValue(0.1f);
final Geometry g = t2d.getGeometry(); final Appearance a = t2d.getAppearance(); final RenderingAttributes ra = new RenderingAttributes(); ra.setDepthTestFunction(RenderingAttributes.ALWAYS); a.setRenderingAttributes(ra);
rendAttr = new RenderingAttributes(); rendAttr.setDepthTestFunction(RenderingAttributes.ALWAYS); rendAttr.setCapability(RenderingAttributes.ALLOW_ALPHA_TEST_VALUE_WRITE);
private void addText(final Group bg, final String s, final Point3f pos, final Color3f c) { final Transform3D translation = new Transform3D(); translation.setTranslation(new Vector3f(-radius, -radius, 0)); final TransformGroup tg = new TransformGroup(translation); final Text2D t2d = new Text2D(s, c, "Helvetica", 24, Font.PLAIN); t2d.setRectangleScaleFactor(0.03f); final Geometry g = t2d.getGeometry(); final Appearance a = t2d.getAppearance(); final RenderingAttributes ra = new RenderingAttributes(); ra.setDepthTestFunction(RenderingAttributes.ALWAYS); a.setRenderingAttributes(ra); g.setCapability(Geometry.ALLOW_INTERSECT); final OrientedShape3D textShape = new OrientedShape3D(); textShape.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE); textShape.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE); textShape.setAlignmentMode(OrientedShape3D.ROTATE_ABOUT_POINT); textShape.setAlignmentAxis(0.0f, 1.0f, 0.0f); textShape.setRotationPoint(new Point3f()); textShape.setConstantScaleEnable(true); textShape.setGeometry(g); textShape.setAppearance(a); tg.setCapability(ENABLE_PICK_REPORTING); tg.setPickable(true); tg.addChild(textShape); bg.addChild(tg); }
RenderingAttributes rendAttr = new RenderingAttributes(); rendAttr.setCapability( RenderingAttributes.ALLOW_ALPHA_TEST_VALUE_WRITE);
RenderingAttributes rendAttr = new RenderingAttributes(); rendAttr.setCapability( RenderingAttributes.ALLOW_ALPHA_TEST_VALUE_WRITE);