Package de.venjinx.jme3.scenegraph

Examples of de.venjinx.jme3.scenegraph.ScenegraphNode.attachChild()


        vertId.setSize(.1f);
        vertId.setText("x0, y0, z0");
        vertId.setName("Gridlabel - x0, y0, z0");
        vertId.setLocalTranslation(pos);
        vertId.addControl(bc.cloneForSpatial(vertId));
        labelNode.attachChild(vertId);

        for (int x = 1; x < offset; x++) {
            pos.set(x, 0, 0);
            vertId = new BitmapText(guiFont);
            vertId.setSize(.2f);
View Full Code Here


            vertId.setSize(.2f);
            vertId.setText("x" + x);
            vertId.setName("Gridlabel - x" + x);
            vertId.setLocalTranslation(pos);
            vertId.addControl(bc.cloneForSpatial(vertId));
            labelNode.attachChild(vertId);
        }
        for (int y = 1; y < offset; y++) {
            pos.set(0, y, 0);
            vertId = new BitmapText(guiFont);
            vertId.setSize(.2f);
View Full Code Here

            vertId.setSize(.2f);
            vertId.setText("y" + y);
            vertId.setName("Gridlabel - y" + y);
            vertId.setLocalTranslation(pos);
            vertId.addControl(bc.cloneForSpatial(vertId));
            labelNode.attachChild(vertId);
        }
        for (int z = 1; z < offset; z++) {
            pos.set(0, 0, z);
            vertId = new BitmapText(guiFont);
            vertId.setSize(.2f);
View Full Code Here

            vertId.setSize(.2f);
            vertId.setText("z" + z);
            vertId.setName("Gridlabel - z" + z);
            vertId.setLocalTranslation(pos);
            vertId.addControl(bc.cloneForSpatial(vertId));
            labelNode.attachChild(vertId);
        }
        return coordNode;
    }

    private TreeItem<String> createTreeItem(Spatial spatial) {
View Full Code Here

            a.setLineWidth(3f);
            g = new Geometry("Normal" + dir, a);
            g.scale(.1f);
            g.setLocalTranslation(vB.get(i), vB.get(i + 1), vB.get(i + 2));
            g.setMaterial(DebugMaterials.normalMat);
            normals.attachChild(g);
        }

        // GeometryBatchFactory.optimize(normals);
        return normals;
    }
View Full Code Here

            g = new Geometry("Tangent" + dir, a);
            g.scale(.1f);
            g.setLocalTranslation(vB.get(i - posFix), vB.get((i - posFix) + 1),
                                  vB.get((i - posFix) + 2));
            g.setMaterial(DebugMaterials.tangentMat);
            tangents.attachChild(g);
            posFix++;
        }

        // GeometryBatchFactory.optimize(tangents);
        return tangents;
View Full Code Here

            a = new Arrow(dir);
            g = new Geometry("Binormal" + dir, a);
            g.scale(.1f);
            g.setLocalTranslation(vB.get(i), vB.get(i + 1), vB.get(i + 2));
            g.setMaterial(DebugMaterials.binormalMat);
            binormals.attachChild(g);
        }

        // GeometryBatchFactory.optimize(binormals);
        return binormals;
    }
View Full Code Here

            // myApp.getRootNode().attachChild(helloText);

            line = new Line(tri.get1(), tri.get2());
            g = new Geometry("Line" + tri.get1() + "->" + tri.get2(), line);
            g.setMaterial(DebugMaterials.wireMat);
            tris.attachChild(g);

            line = new Line(tri.get2(), tri.get3());
            g = new Geometry("Line" + tri.get2() + "->" + tri.get3(), line);
            g.setMaterial(DebugMaterials.wireMat);
            tris.attachChild(g);
View Full Code Here

            tris.attachChild(g);

            line = new Line(tri.get2(), tri.get3());
            g = new Geometry("Line" + tri.get2() + "->" + tri.get3(), line);
            g.setMaterial(DebugMaterials.wireMat);
            tris.attachChild(g);

            line = new Line(tri.get3(), tri.get1());
            g = new Geometry("Line" + tri.get3() + "->" + tri.get1(), line);
            g.setMaterial(DebugMaterials.wireMat);
            tris.attachChild(g);
View Full Code Here

            tris.attachChild(g);

            line = new Line(tri.get3(), tri.get1());
            g = new Geometry("Line" + tri.get3() + "->" + tri.get1(), line);
            g.setMaterial(DebugMaterials.wireMat);
            tris.attachChild(g);
        }
        GeometryBatchFactory.optimize(tris);
        return tris;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.