Hi, I'm trying to make a simple applet based on the FPS code. The world so far consists only of a floor and a wall. I try to apply a brick like texture to the wall but it renders bad.
This is the texture I'm using:
And this is a screenshot of the result:
Here is the code of how the wall is initialized:
wall = Primitives.getBox(150f, 0.01f);
wall.rotateY((float) Math.PI / 4);
wall.rotateX((float) Math.PI / 2);
wall.setOrigin(new SimpleVector(800, -75, -300));
wall.setCollisionOptimization(Object3D.COLLISION_DETECTION_OPTIMIZED);
wall.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS);
wall.setTexture("wall");
wall.setEnvmapped(Object3D.ENVMAP_ENABLED);
wall.setEnvmapMode(Object3D.ENVMAP_CAMERASPACE);
theWorld.addObject(wall);
And here is the initialization of the FrameBuffer:
buffer = new FrameBuffer(width, height, FrameBuffer.SAMPLINGMODE_NORMAL);
buffer.enableRenderer(IRenderer.RENDERER_SOFTWARE,
IRenderer.MODE_OPENGL);
buffer.setBoundingBoxMode(FrameBuffer.BOUNDINGBOX_NOT_USED);
buffer.optimizeBufferAccess();
Any ideas why is this happening?
Thanks a lot