Codota Logo
Material.setCapability
Code IndexAdd Codota to your IDE (free)

How to use
setCapability
method
in
javax.media.j3d.Material

Best Java code snippets using javax.media.j3d.Material.setCapability (Showing top 5 results out of 315)

  • Common ways to obtain Material
private void myMethod () {
Material m =
  • Codota IconColor3f color3f;Color3f color3f2;Color3f color3f3;Color3f color3f4;new Material(color3f, color3f2, color3f3, color3f4, float1)
  • Codota IconAppearance appearance;appearance.getMaterial()
  • Smart code suggestions by Codota
}
origin: com.googlecode.princeton-java-introduction/stdlib

private static Appearance createCustomAppearance (boolean fill) {
  Appearance ap = createBlankAppearance();
  PolygonAttributes pa = new PolygonAttributes();
  if (!fill) pa.setPolygonMode(PolygonAttributes.POLYGON_LINE);
  pa.setCullFace(PolygonAttributes.CULL_NONE);
  LineAttributes la = new LineAttributes();
  la.setLineWidth(penRadius);
  la.setLineAntialiasingEnable(view.getSceneAntialiasingEnable());
  PointAttributes poa = new PointAttributes();
  poa.setPointAntialiasingEnable(view.getSceneAntialiasingEnable());
  ap.setPolygonAttributes(pa);
  ap.setLineAttributes(la);
  ap.setPointAttributes(poa);
  Color3f col = new Color3f(penColor);
  Color3f black = new Color3f(0, 0, 0);
  Color3f specular = new Color3f(GRAY);
  // Material properties
  Material material = new Material(col, black, col, specular, 64);
  material.setCapability(Material.ALLOW_COMPONENT_READ);
  material.setCapability(Material.ALLOW_COMPONENT_WRITE);
  material.setLightingEnable(true);
  ap.setMaterial(material);
  return ap;
}
origin: com.github.fracpete/princeton-java-stdlib

private static Appearance createCustomAppearance (boolean fill) {
  Appearance ap = createBlankAppearance();
  PolygonAttributes pa = new PolygonAttributes();
  if (!fill) pa.setPolygonMode(PolygonAttributes.POLYGON_LINE);
  pa.setCullFace(PolygonAttributes.CULL_NONE);
  LineAttributes la = new LineAttributes();
  la.setLineWidth(penRadius);
  la.setLineAntialiasingEnable(view.getSceneAntialiasingEnable());
  PointAttributes poa = new PointAttributes();
  poa.setPointAntialiasingEnable(view.getSceneAntialiasingEnable());
  ap.setPolygonAttributes(pa);
  ap.setLineAttributes(la);
  ap.setPointAttributes(poa);
  Color3f col = new Color3f(penColor);
  Color3f black = new Color3f(0, 0, 0);
  Color3f specular = new Color3f(GRAY);
  // Material properties
  Material material = new Material(col, black, col, specular, 64);
  material.setCapability(Material.ALLOW_COMPONENT_READ);
  material.setCapability(Material.ALLOW_COMPONENT_WRITE);
  material.setLightingEnable(true);
  ap.setMaterial(material);
  return ap;
}
origin: com.googlecode.princeton-java-introduction/stdlib

material.setCapability(Material.ALLOW_COMPONENT_READ);
material.setCapability(Material.ALLOW_COMPONENT_WRITE);
material.setLightingEnable(true);
ap.setMaterial(material);
origin: com.github.fracpete/princeton-java-stdlib

material.setCapability(Material.ALLOW_COMPONENT_READ);
material.setCapability(Material.ALLOW_COMPONENT_WRITE);
material.setLightingEnable(true);
ap.setMaterial(material);
origin: org.fudaa.framework.ebli/ebli-3d

pa.setBackFaceNormalFlip(true);
final Material m = new Material();
m.setCapability(Material.ALLOW_COMPONENT_READ);
m.setCapability(Material.ALLOW_COMPONENT_WRITE);
m.setShininess(2);
m.setLightingEnable(false);
javax.media.j3dMaterialsetCapability

Popular methods of Material

  • <init>
  • setLightingEnable
  • setDiffuseColor
  • getShininess
  • setAmbientColor
  • setShininess
  • getAmbientColor
  • getDiffuseColor
  • getEmissiveColor
  • getLightingEnable
  • getSpecularColor
  • setColorTarget
  • getSpecularColor,
  • setColorTarget,
  • setSpecularColor

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now