- January 14, 2009 at 8:52 am #29672
hi,wo use the E:Imagination TechnologiesPowerVR_SDKOGLES2_WINDOWS_PCEMULATION_2TrainingCourse 7_IntroducingPOD desplay a terrain ,but failed .I turn terrain.3ds to terrain.pod with 3dsmax8 ,then get the terrain.cpp file with Filewrap.the terrain.pvr i also added in the project .but when i run it ,there is a problem show bellow: ERROR :The Scene does not contain a camera.Please help me .thanks!!!!January 14, 2009 at 9:25 am #32595
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”);
//==============================the code that showed up , showed int the m_Scene,there is no camera and light .why?? how can i add the camera and light? helpme!thank you!January 14, 2009 at 10:11 am #32596
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.