Tabnine Logo
DirectionalLight.setCapability
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.fudaa.framework.ebli/ebli-3d

public BLumiereDirectionnelle(final Vector3f _vecteur, final Color _couleur) {
 couleur_ = _couleur;
 direction_ = _vecteur;
 l_ = new DirectionalLight(new Color3f(_couleur), _vecteur);
 l_.setCapability(Light.ALLOW_STATE_WRITE);
 l_.setCapability(Light.ALLOW_STATE_READ);
 l_.setCapability(Light.ALLOW_COLOR_WRITE);
 l_.setCapability(Light.ALLOW_COLOR_READ);
 l_.setCapability(DirectionalLight.ALLOW_DIRECTION_WRITE);
 l_.setCapability(DirectionalLight.ALLOW_DIRECTION_READ);
 l_.setCapability(Node.ALLOW_BOUNDS_READ);
 l_.setCapability(Node.ALLOW_BOUNDS_WRITE);
 l_.setCapability(Light.ALLOW_INFLUENCING_BOUNDS_READ);
 l_.setCapability(Light.ALLOW_INFLUENCING_BOUNDS_WRITE);
 setCapability(ALLOW_AUTO_COMPUTE_BOUNDS_READ);
 setCapability(ALLOW_AUTO_COMPUTE_BOUNDS_READ);
 l_.setInfluencingBounds(new BoundingSphere(new Point3d(), 100));
 for (int i = 18; i < 20; i++) {
  l_.setCapability(i);
 }
 addChild(l_);
 setName("Direction");
}
origin: com.github.fracpete/princeton-java-stdlib

/**
 * Adds a directional light of color col which shines in the direction vector (x, y, z)
 */
public static Light directionalLight (double x, double y, double z, Color col) {
  DirectionalLight light = new DirectionalLight();
  light.setColor(new Color3f(col));
  light.setInfluencingBounds(INFINITE_BOUNDS);
  light.setCapability(DirectionalLight.ALLOW_STATE_WRITE);
  light.setCapability(DirectionalLight.ALLOW_COLOR_WRITE);
  light.setEnable(true);
  BranchGroup bg = createBranchGroup();
  TransformGroup tg = createTransformGroup();
  tg.addChild(light);
  bg.addChild(tg);
  lightGroup.addChild(bg);
  Light l = new Light(bg, tg, light);
  l.setDirection(new Vector3D(x, y, z));
  return l;
}
origin: com.googlecode.princeton-java-introduction/stdlib

/**
 * Adds a directional light of color col which shines in the direction vector (x, y, z)
 */
public static Light directionalLight (double x, double y, double z, Color col) {
  DirectionalLight light = new DirectionalLight();
  light.setColor(new Color3f(col));
  light.setInfluencingBounds(INFINITE_BOUNDS);
  light.setCapability(DirectionalLight.ALLOW_STATE_WRITE);
  light.setCapability(DirectionalLight.ALLOW_COLOR_WRITE);
  light.setEnable(true);
  BranchGroup bg = createBranchGroup();
  TransformGroup tg = createTransformGroup();
  tg.addChild(light);
  bg.addChild(tg);
  lightGroup.addChild(bg);
  Light l = new Light(bg, tg, light);
  l.setDirection(new Vector3D(x, y, z));
  return l;
}
javax.media.j3dDirectionalLightsetCapability

Popular methods of DirectionalLight

  • <init>
  • setInfluencingBounds
  • setColor
  • setEnable
  • getInfluencingBounds
  • setDirection

Popular in Java

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now