/** * @see #setCullHint(CullHint) * @return the cull mode of this spatial, or if set to INHERIT, the cullmode of its parent. */ public CullHint getCullHint() { if (_cullHint != CullHint.Inherit) { return _cullHint; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getCullHint(); } return CullHint.Dynamic; }
/** * @see #setCullHint(CullHint) * @return the cull mode of this spatial, or if set to INHERIT, the cullmode of its parent. */ public CullHint getCullHint() { if (_cullHint != CullHint.Inherit) { return _cullHint; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getCullHint(); } return CullHint.Dynamic; }
if (child != null && child.getSceneHints().getCullHint() != CullHint.Always && child.getWorldBound() != null && boundIsValid(child.getWorldBound())) { if (firstRun) { if (child != null && child.getSceneHints().getCullHint() != CullHint.Always && child.getWorldBound() != null && boundIsValid(child.getWorldBound())) { if (firstRun) {
final CullHint cm = _sceneHints.getCullHint(); if (cm == CullHint.Always) { setLastFrustumIntersection(Camera.FrustumIntersect.Outside);
/** * Finds a pick using the given ray starting at the scenegraph given as spatial. Results are stored in the given * results value. * * @param spatial * @param ray * @param results * @param ignoreCulled * if true, Spatials with CullHint ALWAYS will be skipped. */ public static void findPick(final Spatial spatial, final Ray3 ray, final PickResults results, final boolean ignoreCulled) { if (spatial == null || !spatial.getSceneHints().isPickingHintEnabled(PickingHint.Pickable) || (ignoreCulled && spatial.getSceneHints().getCullHint() == CullHint.Always) || spatial.getWorldBound() == null || !spatial.getWorldBound().intersects(ray)) { return; } if (spatial instanceof Pickable) { results.addPick(ray, (Pickable) spatial); } else if (spatial instanceof Node) { final Node node = (Node) spatial; for (int i = node.getNumberOfChildren() - 1; i >= 0; i--) { findPick(node.getChild(i), ray, results, ignoreCulled); } } }
final CullHint cm = _sceneHints.getCullHint(); if (cm == CullHint.Always) { setLastFrustumIntersection(Camera.FrustumIntersect.Outside);
/** * Finds a pick using the given ray starting at the scenegraph given as spatial. Results are stored in the given * results value. * * @param spatial * @param ray * @param results * @param ignoreCulled * if true, Spatials with CullHint ALWAYS will be skipped. */ public static void findPick(final Spatial spatial, final Ray3 ray, final PickResults results, final boolean ignoreCulled) { if (spatial == null || !spatial.getSceneHints().isPickingHintEnabled(PickingHint.Pickable) || (ignoreCulled && spatial.getSceneHints().getCullHint() == CullHint.Always) || spatial.getWorldBound() == null || !spatial.getWorldBound().intersects(ray)) { return; } if (spatial instanceof Pickable) { results.addPick(ray, (Pickable) spatial); } else if (spatial instanceof Node) { final Node node = (Node) spatial; for (int i = node.getNumberOfChildren() - 1; i >= 0; i--) { findPick(node.getChild(i), ray, results, ignoreCulled); } } }
cullMode = skyBox.getSceneHints().getCullHint(); skyBox.getSceneHints().setCullHint(CullHint.Always);
cullMode = skyBox.getSceneHints().getCullHint(); skyBox.getSceneHints().setCullHint(CullHint.Always);
if (element instanceof Mesh && element.getSceneHints().getCullHint() != CullHint.Always) { final Mesh mesh = (Mesh) element;
if (se.getWorldBound() != null && se.getSceneHints().getCullHint() != CullHint.Always) { final Camera cam = Camera.getCurrentCamera(); final int state = cam.getPlaneState();
if (se.getWorldBound() != null && se.getSceneHints().getCullHint() != CullHint.Always) { final Camera cam = Camera.getCurrentCamera(); final int state = cam.getPlaneState();
if (element instanceof Mesh && element.getSceneHints().getCullHint() != CullHint.Always) { final Mesh mesh = (Mesh) element;
if (element instanceof Mesh && element.getSceneHints().getCullHint() != CullHint.Always) { final Mesh mesh = (Mesh) element;
if (element instanceof Mesh && element.getSceneHints().getCullHint() != CullHint.Always) { final Mesh mesh = (Mesh) element;