XXX_HOME
environment variables manually? I'm currently browsing through the CMake code and up to now don't see another way how Ogre could find it.
$OGRE_HOME/include/OGRE/Hlms/Common
is not in my include paths, although I've added OGRE_INCLUDE_DIRS
, OGRE_HlmsPbs_INCLUDE_DIRS
and OGRE_HlmsUnlit_INCLUDE_DIRS
.
file
is a std::string
which contains full path (like /home/user/.rigsofrods/mods/mod.zip
)
Ogre::Archive* arc = nullptr;
try
{
arc = Ogre::ArchiveManager::getSingleton().load(file, "Zip", true);
}
catch (...) {}
if (arc != nullptr)
{
Ogre::ArchiveManager::getSingleton().unload(file);
}
Ogre::FileSystemLayer::removeFile(file);
I'm afraid I need advice how to deal with pre-existing material manipulation code.
In Rigs of Rods, we allow content creators to just specify texture files and we fill them in pre-made materials.
doc: https://docs.rigsofrods.org/vehicle-creation/fileformat-truck/#managedmaterials
materials: https://github.com/RigsOfRods/rigs-of-rods/tree/master/resources/managed_materials
code (snippet to illustrate): https://github.com/RigsOfRods/rigs-of-rods/blob/master/source/main/physics/ActorSpawner.cpp#L2238-L2241
It completely relied on texture_unit names which are gone in OGRE13 - the name is now set to texture_alias and even that is deprecated.
The logged warning suggests using variables, but I can't find any API to define them in code - is there such option?
I realize I have resarch of RTSS to do, but if I can get some beginner tips it would be great.
findResourceFileInfo()
https://github.com/RigsOfRods/rigs-of-rods/blob/master/source/main/resources/CacheSystem.cpp#L992
zzip_dir_open_ext_io
vs zip_open_stream
another issue came around while loading a terrain
InvalidParametersException: Closer detail levels must be added before farther ones in _addDetailLevel at /home/babis/Downloads/ogre13/ror-dependencies/Source/paged-geometry/source/PagedGeometry.cpp (line 376)
but we do it that way no? https://github.com/RigsOfRods/rigs-of-rods/blob/master/source/main/terrain/TerrainObjectManager.cpp#L306-L313