IsometricTile::IsometricTile() { rendTileObjects_[Orientation::North] = RenderableObject(); rendTileObjects_[Orientation::South] = RenderableObject(); rendTileObjects_[Orientation::West] = RenderableObject(); rendTileObjects_[Orientation::East] = RenderableObject(); rendCliffObjects_[Orientation::North] = RenderableObject(); rendCliffObjects_[Orientation::South] = RenderableObject(); rendCliffObjects_[Orientation::West] = RenderableObject(); rendCliffObjects_[Orientation::East] = RenderableObject(); }
void SetMeshes() { Cube cube; cube.CalculateNormals(); cube.CalculateTangents(); cube.CalculateBitangents(); cube.Build(XYZ_UV_TBN); cube.position = Vector3(-10, 20, 0); cubie = RenderableObject(cube, Diffuse, mtlBrickD); scene.AddObject(&cubie); Sphere sphere(1, 24, 16); sphere.CalculateNormals(); sphere.CalculateTangents(); sphere.CalculateBitangents(); sphere.Build(XYZ_UV_TBN); sphere.position = Vector3(-14, 20, 0); sphereRO = RenderableObject(sphere, BumpPOMSpecular, mtlBrickPOM); scene.AddObject(&sphereRO); /*Sphere sphere(1, 24, 16); sphere.CalculateNormals(); sphere.Build(XYZ_N); sphere.position = Vector3(4, 0, 0); sphereRO = RenderableObject(sphere, CubeEM, mtlCubeMap); scene.AddObject(&sphereRO);*/ Mesh teapot; teapot.LoadDataFromFile("./Models/teapot.obj", OBJ); teapot.CalculateUVs(SphereUV); teapot.CalculateNormals(); teapot.Build(XYZ_N); teapot.scale = Vector3(0.01f, 0.01f, 0.01f); teapot.position = Vector3(-18, 20, 0); teapotRO = RenderableObject(teapot, CubeEM, mtlCubeMap); scene.AddObject(&teapotRO); }