Hi, it's my first 60 minutes with jPCT and I'm trying to use the software renderer to create a cube where each face has a different shade, like this (without the text)
But when I use the HelloWorldSoftware, with this new initialization:
world = new World();
world.addLight( new SimpleVector( 30,30,30),Color.yellow );
TextureManager.getInstance().addTexture("box", new Texture(64,64, Color.red));
box = Primitives.getBox(13f, 2f);
box.setTexture("box");
box.setEnvmapped(Object3D.ENVMAP_ENABLED);
box.build();
world.addObject(box);
The object doesn't seem to have well defined edges, and comes out looking like this:
I also tried putting the light at (0,0,30), but that looked qualitatively similar. What's the easiest/best way to do this?
Also, is there a way to highlight the edges of a cube; for example, to have them appear with a dark outline?
Thanks,
Sam Reid