m_puiVbo = 0;
m_puiIndexVbo = 0;
m_puiMaterialTex = 0;
// Get and set the read path for content files
// Load the scene
PVRShellSet(prefExitMessage, "ERROR: Couldn't load the .pod filen");
// The cameras are stored in the file. We check it contains at least one.
if (m_Scene.nNumCamera == 0)
PVRShellSet(prefExitMessage, "ERROR: The scene does not contain a cameran");
// We also check that the scene contains at least one light
if (m_Scene.nNumLight == 0)
PVRShellSet(prefExitMessage, "ERROR: The scene does not contain a lightn");
Lights and cameras need to be added in the 3D modelling program (e.g. 3DS Max) that you’re using to export your POD file.
Note: the IntroducingPOD training course is designed as an example of how to display a very specific POD file. As such, it’s unlikely to display another POD file successfully without some alteration to the code. It’s a good place to start for this, but you will probably have to deal with various differences such as different shader attributes and constants or kinds of lights etc. in order to correctly display your scene.
Thanks ! Gordon