Search in sources :

Example 1 with SceneHints

use of com.ardor3d.scenegraph.hint.SceneHints in project energy3d by concord-consortium.

the class Foundation method setMovePointsVisible.

public void setMovePointsVisible(final boolean visible) {
    final int n = points.size();
    for (int i = n - 4; i < n; i++) {
        final Spatial editPoint = pointsRoot.getChild(i);
        ((Mesh) editPoint).setVisible(visible);
        final SceneHints sceneHints = editPoint.getSceneHints();
        sceneHints.setAllPickingHints(visible);
    }
}
Also used : Spatial(com.ardor3d.scenegraph.Spatial) Mesh(com.ardor3d.scenegraph.Mesh) SceneHints(com.ardor3d.scenegraph.hint.SceneHints) CullHint(com.ardor3d.scenegraph.hint.CullHint)

Example 2 with SceneHints

use of com.ardor3d.scenegraph.hint.SceneHints in project energy3d by concord-consortium.

the class Blinker method update.

public void update(ReadOnlyTimer timer) {
    final double t = timer.getTimeInSeconds();
    if (target != null && t > lastTime + 0.3) {
        lastTime = t;
        final SceneHints sceneHints = target.getSceneHints();
        sceneHints.setCullHint(sceneHints.getCullHint() == CullHint.Always ? CullHint.Inherit : CullHint.Always);
    }
}
Also used : SceneHints(com.ardor3d.scenegraph.hint.SceneHints)

Aggregations

SceneHints (com.ardor3d.scenegraph.hint.SceneHints)2 Mesh (com.ardor3d.scenegraph.Mesh)1 Spatial (com.ardor3d.scenegraph.Spatial)1 CullHint (com.ardor3d.scenegraph.hint.CullHint)1