Alright, so I’m using a 256x512 pixel texture but when I place it on my object, it spreads out the image and looks really ugly (see image below).
My code:
//mapheight = 80
//mapwidth = 80
Scene.view.scene.addChild(floor);
floor.geometry = new CubeGeometry();
floor.material = new TextureMaterial(new BitmapTexture(getFloorTexture()));
floor.scaleX = mapWidth;
floor.scaleZ = mapHeight;
floor.scaleY = .1;
It probably has something to do with the scaling. If so, how can I fix this?
Also, away3d only takes about half the texture image. :/