Hi guys,
i am starting developping using the LTE
and actually i am lost, the tutorials are insuffisants
Anyone can help me?
I need, at first, a map editor since the engine can load maps
Thanks
map editor for games with LTE game engine
Okay, you probably just don't understand how LTE works. Let's look at pieces of the Q3 sample to make sure you understand what it's doing.
This loads the pk3, making it part of a virtual filesystem. The files inside the pk3 will now be accessible to the app. Note that most maps refer to data in other pk3's! The map chosen for the demo is self-contained - it has everything it needs in the one pk3. For most maps, you will need to add several other pk3 files. If you are missing some things like textures, the map may load, but you get blank space anywhere the texture would be. If you see grey with a box saying "FPS: 59" or something similar, the level loaded.
Also note that the PSP has limited memory. make sure not to load levels that are too big. That includes the textures as well as the map itself. That is especially important on the Phat PSP.
Look in the maps directory inside the pk3 to make sure you have the name of the bsp correct.
If there is more than one mesh inside the map (probably not, but you never know), make sure to load the correct one.
The demo map is not centered at (0,0,0). This code sets the starting point for the demo level. If you load another map and don't know where it was centered around, use the analog stick to look around until you see the level (it'll be floating in a grey space).
I had no trouble loading other maps as long as I remembered the above. I usually had to use the analog stick to look around until I saw the level, and some/many textures were missing (map relies on base q3 pk3s), but they worked just fine. I only had one map that didn't load, and that was a HUGE map (14.7MB bsp + 6.7MB of textures).
Code: Select all
device->getFileSystem()->addZipFileArchive("ms0:/media/map-20kdm2.pk3");
Also note that the PSP has limited memory. make sure not to load levels that are too big. That includes the textures as well as the map itself. That is especially important on the Phat PSP.
Code: Select all
scene::IAnimatedMesh* mesh = smgr->getMesh("20kdm2.bsp");
Code: Select all
node = smgr->addOctTreeSceneNode(mesh->getMesh(0));
Code: Select all
node->setPosition(core::vector3df(-1300,-144,-1249));
I had no trouble loading other maps as long as I remembered the above. I usually had to use the analog stick to look around until I saw the level, and some/many textures were missing (map relies on base q3 pk3s), but they worked just fine. I only had one map that didn't load, and that was a HUGE map (14.7MB bsp + 6.7MB of textures).