Hello,
I searched the forum and looked at the tutorials, but either my problem is too trivial or I am just plain blind
I want to create a simple box simmilar to one used in all the examples but without the inner diagonal edges shown that result from being derived from TriMesh. In the forum I read something about shadows, but I started using jME just a few days ago. My solution in jogl was to do this by defining quads with all the edges by hand but I am sure there is a simpler solution.
This is what I have so far (since the wireframe shows also the diagonal edges I assume this is the wrong approach :|)
Node boundingNode = new Node("Bounding Node");
WireframeState wireState = display.getRenderer().createWireframeState();
// minVec and maxVec defined at runtime
Box box1 = new Box("Box 1", minVec, maxVec);
box1.setModelBound(new BoundingBox());
box1.updateModelBound();
rootNode.attachChild(boundingNode);
wireState.setEnabled(true);
boundingNode.setRenderState(wireState);
Can somebody help me by posting a little piece of code, showing how this is done or pointing out a tutorial (there are many) and indicating where to find it?
Thanks in advance