Skip to content

Commit 99ce932

Browse files
WIP: set location of RTShaders
1 parent 5f48109 commit 99ce932

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/rviz/ogre_helpers/render_system.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,12 @@ void RenderSystem::setupRenderSystem()
261261

262262
void RenderSystem::setupResources()
263263
{
264+
auto& rgm = Ogre::ResourceGroupManager::getSingleton();
265+
// todo: need to get from CMake/pkgconfig: const auto& mediaDir = Ogre::FileSystemLayer::resolveBundlePath(OGRE_MEDIA_DIR);
266+
// add default locations
267+
// todo: set in OGREBites but does not exist rgm.addResourceLocation(mediaDir + "/usr/share/OGRE-1.12.13/Media/Main", "FileSystem", Ogre::RGN_INTERNAL);
268+
rgm.addResourceLocation(/*mediaDir +*/ "/usr/share/OGRE-1.12.13/Media/RTShaderLib/GLSL", "FileSystem", Ogre::RGN_INTERNAL);
269+
264270
std::string rviz_path = ros::package::getPath(ROS_PACKAGE_NAME);
265271
Ogre::ResourceGroupManager::getSingleton().addResourceLocation(
266272
rviz_path + "/ogre_media", "FileSystem", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);

0 commit comments

Comments
 (0)