Search code examples
flashactionscript-3papervision3d

Flash Texture Mapped Triangles look horrible


I have a 3D cube made with PaperVision3D.

Each "side" is made of 2 triangles.

I have a different texture "material" mapped to each side.

When I rotate the cube the texture is skewed like '/\' an upside down v between both triangles. When looking at a face straight on it looks ok but start to rotate and it starts to skew the textures.

How do you make texture mapping in Flash look like DirectX?


Solution

  • PaperVision3D doesn't use "real" 3d texturing, it uses something called affine mapping which is a hack.
    In order to achieve better results you need to partition your cube to as many triangles as possible instead of using just two triangles per face.