He is going back to his cave.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: EgonOlsen on April 05, 2009, 12:15:22 AM
Something that will work for both (but is a bit ugly), is to render the World twice. Once in normal mode with all objects visible.
Then, iterate through all world objects, store their visibility,
set them to invisible except for the ones that you want to render in wireframe,
render the world again and draw it in wireframe,
reset all world objects to the correct visibility.
IRenderer.drawWireframe(VisList visList, int ind, int color, FrameBuffer buffer)
box = Primitives.getCube(1f);
box.rotateY(Util.PI / 4); // cancel jPCT's default rotation around Y
Matrix scaler = new Matrix();
scaler.setDump(new float[]{
halfExtents.x, 0, 0, 0,
0, halfExtents.y, 0, 0,
0, 0, halfExtents.z, 0,
0, 0, 0, 1 });
box.getRotationMatrix().matMul(scaler);
box.rotateMesh();
box.build();
// Reset rotation matrix so above scaling is not applied twice:
box.getRotationMatrix().setIdentity();
Page created in 0.020 seconds with 13 queries.