Code: Select all
inside the custom scenenode
array<S3DVertex> m_Vertices;
for (int z = 0; z < m_TempSize.Height; z++)
for (int x = 0; x < m_TempSize.Width; x++)
{
m_Vertices.push_back(S3DVertex(x, 0, z, 0, 1, 0, SColor(255, 255, 255, 255), float(x/m_TempSize.Width), float(z/m_Size.Height)));
}
Material.Wireframe = false;
Material.Lighting = false;
Material.BackfaceCulling = false;
Material.MaterialType = EMT_SOLID;
Code: Select all
Node->setMaterialTexture(0, getDriver()->getTexture(MEDIAPATH("_Assets\\GUI\\physx.bmp")));
any help is appreciated.
Seven