Original Authors: | -NVidia | -
Website: | -http://developer.nvidia.com | -
Licensed Under: | -Custom free license (binary only) | -
Needed By: | -Plugin_CgProgramManager | -
Art credits for demos
- -Matt Anderson at - www.The3dStudio.com who - kindly gave permission for the use of some textures. These textures are used with permission of - www.The3dStudio.com and may - not be re-distributed, sold, or given away except in the form of - rendered images, animations, or real time 3D applications when credit - is given to www.The3dStudio.com.
-Jonathan Clark at - http://www.jonathanclark.com - for some Golgotha textures thet were released to the public domain.
-The 'Raptor Assault Gunboat' mesh - & texture are © 2002 by Adrian 'cearny' Cearnau.
-The robot andn ninja mesh and - animation are by Psionic, - kindly made available from the CharacterFX - site
-The 'Razor 2' mesh is by Dennis - Verbeek
-Skyboxes in cubemapJS.zip are - ©Johannes Schlorb, used - with permission. -
-Grass texture is courtesy of Mathias 'freezer' Walc
-The 'Cuckoo' TrueType font is provided by http://www.grsites.com.
-The Sibenik Cathedral model by Marko Dabrovic - marko@3lhd.com.
-Copyright © 2013 by The OGRE Team
--- a/Samples/BSP/include/BSP.h 1989-12-31 19:00:00.000000000 -0500 +++ b/Samples/BSP/include/BSP.h 2018-01-17 14:34:43.165692607 -0500 @@ -19,7 +19,6 @@ { mInfo["Title"] = "BSP"; mInfo["Description"] = "A demo of the indoor, or BSP (Binary Space Partition) scene manager. " - "Also demonstrates how to load BSP maps from Quake 3."; mInfo["Thumbnail"] = "thumb_bsp.png"; mInfo["Category"] = "Geometry"; } @@ -42,41 +41,6 @@ protected: - void locateResources() - { - // Pick a new resource group so Q3Shader parser is correctly registered - ResourceGroupManager::getSingleton().setWorldResourceGroupName("BSPWorld"); - - // load the Quake archive location and map name from a config file - ConfigFile cf; - cf.load(mFSLayer->getConfigFilePath("quakemap.cfg")); - mArchive = cf.getSetting("Archive"); - mMap = cf.getSetting("Map"); - -#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE || OGRE_PLATFORM == OGRE_PLATFORM_APPLE_IOS - Ogre::String bundle = Ogre::macBundlePath(); -#elif OGRE_PLATFORM == OGRE_PLATFORM_LINUX - char* env_SNAP = getenv("SNAP"); - Ogre::String bundle(env_SNAP ? env_SNAP : ""); -#endif - -#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE || OGRE_PLATFORM == OGRE_PLATFORM_APPLE_IOS - // OS X does not set the working directory relative to the app, - // In order to make things portable on OS X we need to provide - // the loading with it's own bundle path location - if (!Ogre::StringUtil::startsWith(mArchive, "/", false)) // only adjust relative dirs - mArchive = bundle + "/" + mArchive; -#elif OGRE_PLATFORM == OGRE_PLATFORM_LINUX - // With Ubuntu Snappy changes absolute paths are relative to the snap package. - if (Ogre::StringUtil::startsWith(mArchive, "/", false)) // only adjust absolute dirs - mArchive = bundle + mArchive; -#endif - - // add the Quake archive to the world resource group - ResourceGroupManager::getSingleton().addResourceLocation(mArchive, "Zip", - ResourceGroupManager::getSingleton().getWorldResourceGroupName(), true); - } - void createSceneManager() { mSceneMgr = mRoot->createSceneManager("BspSceneManager"); // the BSP scene manager is required for this sample @@ -122,10 +86,6 @@ // set a random player starting point ViewPoint vp = mSceneMgr->getSuggestedViewpoint(true); - // Quake uses the Z axis as the up axis, so make necessary adjustments - mCameraNode->setFixedYawAxis(true, Vector3::UNIT_Z); - mCameraNode->pitch(Degree(90)); - mCameraNode->setPosition(vp.position); mCameraNode->rotate(vp.orientation); --- a/Samples/Browser/CMakeLists.txt 1989-12-31 19:00:00.000000000 -0500 +++ b/Samples/Browser/CMakeLists.txt 2018-01-17 14:36:27.887753660 -0500 @@ -118,13 +118,11 @@ ${OGRE_BINARY_DIR}/inst/bin/debug/resources_d.cfg ${OGRE_BINARY_DIR}/inst/bin/debug/plugins_d.cfg - ${OGRE_BINARY_DIR}/inst/bin/debug/quakemap_d.cfg ${OGRE_BINARY_DIR}/inst/bin/debug/samples_d.cfg ${OGRE_BINARY_DIR}/inst/bin/debug/tests_d.cfg ${OGRE_BINARY_DIR}/inst/bin/release/resources.cfg ${OGRE_BINARY_DIR}/inst/bin/release/plugins.cfg - ${OGRE_BINARY_DIR}/inst/bin/release/quakemap.cfg ${OGRE_BINARY_DIR}/inst/bin/release/samples.cfg ${OGRE_BINARY_DIR}/inst/bin/release/tests.cfg @@ -149,14 +147,12 @@ set(DEBUG_CONTENT_FILES ${DEBUG_CONTENT_FILES} ${CMAKE_CURRENT_BINARY_DIR}/resources_d.cfg ${CMAKE_CURRENT_BINARY_DIR}/plugins_d.cfg - ${CMAKE_CURRENT_BINARY_DIR}/quakemap_d.cfg ${CMAKE_CURRENT_BINARY_DIR}/samples_d.cfg ${CMAKE_CURRENT_BINARY_DIR}/tests_d.cfg ) set(RELEASE_CONTENT_FILES ${RELEASE_CONTENT_FILES} ${CMAKE_CURRENT_BINARY_DIR}/resources.cfg ${CMAKE_CURRENT_BINARY_DIR}/plugins.cfg - ${CMAKE_CURRENT_BINARY_DIR}/quakemap.cfg ${CMAKE_CURRENT_BINARY_DIR}/samples.cfg ${CMAKE_CURRENT_BINARY_DIR}/tests.cfg ) @@ -305,7 +301,6 @@ COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/macosx/plugins.cfg ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/macosx/resources.cfg ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/macosx/samples.cfg ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ - COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/macosx/quakemap.cfg ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ COMMAND ln ARGS -s -f ${OGRE_SOURCE_DIR}/Media ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ COMMAND ditto ${OGRE_SOURCE_DIR}/Samples/Common/misc/SampleBrowser_OSX.icns ${OGRE_SAMPLE_CONTENTS_PATH}/Resources ) @@ -315,7 +310,6 @@ COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/plugins.cfg ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/resources.cfg ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/samples.cfg ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ - COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/quakemap.cfg ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ COMMAND ln ARGS -s -f ${OGRE_SOURCE_DIR}/Samples/Media ${OGRE_SAMPLE_CONTENTS_PATH}/Resources/ COMMAND ditto ${OGRE_SOURCE_DIR}/Samples/Common/misc/SampleBrowser_OSX.icns ${OGRE_SAMPLE_CONTENTS_PATH}/Resources ) --- a/Samples/CMakeLists.txt 1989-12-31 19:00:00.000000000 -0500 +++ b/Samples/CMakeLists.txt 2018-01-17 14:37:21.222074714 -0500 @@ -251,7 +251,6 @@ set(OGRE_MEDIA_DIR_TMP ${OGRE_MEDIA_DIR_REL}) set(OGRE_MEDIA_DIR_REL "Media") configure_file(${OGRE_TEMPLATES_DIR}/resources.cfg.in ${CMAKE_CURRENT_BINARY_DIR}/resources.cfg @ONLY) - configure_file(${OGRE_TEMPLATES_DIR}/quakemap.cfg.in ${CMAKE_CURRENT_BINARY_DIR}/quakemap.cfg @ONLY) # restore set(OGRE_MEDIA_DIR_REL ${OGRE_MEDIA_DIR_TMP}) add_custom_target(demo_installer --- a/Samples/EndlessWorld/include/EndlessWorld.h 1989-12-31 19:00:00.000000000 -0500 +++ b/Samples/EndlessWorld/include/EndlessWorld.h 2018-01-17 14:38:18.842873919 -0500 @@ -312,17 +312,6 @@ defaultimp.inputScale = 600; defaultimp.minBatchSize = 33; defaultimp.maxBatchSize = 65; - // textures - defaultimp.layerList.resize(3); - defaultimp.layerList[0].worldSize = 100; - defaultimp.layerList[0].textureNames.push_back("dirt_grayrocky_diffusespecular.dds"); - defaultimp.layerList[0].textureNames.push_back("dirt_grayrocky_normalheight.dds"); - defaultimp.layerList[1].worldSize = 30; - defaultimp.layerList[1].textureNames.push_back("grass_green-01_diffusespecular.dds"); - defaultimp.layerList[1].textureNames.push_back("grass_green-01_normalheight.dds"); - defaultimp.layerList[2].worldSize = 200; - defaultimp.layerList[2].textureNames.push_back("growth_weirdfungus-03_diffusespecular.dds"); - defaultimp.layerList[2].textureNames.push_back("growth_weirdfungus-03_normalheight.dds"); } /*----------------------------------------------------------------------------- --- a/Samples/Media/volumeTerrain/triplanarReference.material 1989-12-31 19:00:00.000000000 -0500 +++ b/Samples/Media/volumeTerrain/triplanarReference.material 2018-01-17 14:39:19.330213722 -0500 @@ -9,9 +9,6 @@ rtshader_system { lighting_stage ffp - // Texturescale, Plateau-size (0 to 0.57, not bigger to avoid division by zero!), transition-speed - // Texture from x, from y, from z - triplanarTexturing 0.1 0.2 2.0 dirt_grayrocky_diffusespecular.dds grass_green-01_diffusespecular.dds growth_weirdfungus-03_diffusespecular.dds } } } --- a/Samples/Terrain/include/Terrain.h 1989-12-31 19:00:00.000000000 -0500 +++ b/Samples/Terrain/include/Terrain.h 2018-01-17 14:40:31.710363819 -0500 @@ -527,17 +527,6 @@ defaultimp.inputScale = 600; defaultimp.minBatchSize = 33; defaultimp.maxBatchSize = 65; - // textures - defaultimp.layerList.resize(3); - defaultimp.layerList[0].worldSize = 100; - defaultimp.layerList[0].textureNames.push_back("dirt_grayrocky_diffusespecular.dds"); - defaultimp.layerList[0].textureNames.push_back("dirt_grayrocky_normalheight.dds"); - defaultimp.layerList[1].worldSize = 30; - defaultimp.layerList[1].textureNames.push_back("grass_green-01_diffusespecular.dds"); - defaultimp.layerList[1].textureNames.push_back("grass_green-01_normalheight.dds"); - defaultimp.layerList[2].worldSize = 200; - defaultimp.layerList[2].textureNames.push_back("growth_weirdfungus-03_diffusespecular.dds"); - defaultimp.layerList[2].textureNames.push_back("growth_weirdfungus-03_normalheight.dds"); } void addTextureShadowDebugOverlay(TrayLocation loc, size_t num) --- a/Tests/CMakeLists.txt 1989-12-31 19:00:00.000000000 -0500 +++ b/Tests/CMakeLists.txt 2018-01-17 14:41:36.227526393 -0500 @@ -205,8 +205,6 @@ ${OGRE_TEST_CONTENTS_PATH}/Resources/ COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/samples.cfg ${OGRE_TEST_CONTENTS_PATH}/Resources/ - COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/quakemap.cfg - ${OGRE_TEST_CONTENTS_PATH}/Resources/ COMMAND ditto ${OGRE_SOURCE_DIR}/Samples/Media/ ${OGRE_TEST_CONTENTS_PATH}/Resources/Media/ COMMAND ditto --- a/Tests/VisualTests/Context/CMakeLists.txt 1989-12-31 19:00:00.000000000 -0500 +++ b/Tests/VisualTests/Context/CMakeLists.txt 2018-01-17 14:42:24.515402721 -0500 @@ -140,8 +140,6 @@ ${OGRE_TESTCONTEXT_CONTENTS_PATH}/Resources/ COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/resources.cfg ${OGRE_TESTCONTEXT_CONTENTS_PATH}/Resources/ - COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/quakemap.cfg - ${OGRE_TESTCONTEXT_CONTENTS_PATH}/Resources/ COMMAND ln ARGS -s -f ${OGRE_BINARY_DIR}/bin/tests.cfg ${OGRE_TESTCONTEXT_CONTENTS_PATH}/Resources/ COMMAND ln ARGS -s -f ${OGRE_SOURCE_DIR}/Samples/Media --- a/Tests/VisualTests/PlayPen/src/PlayPenTests.cpp 1989-12-31 19:00:00.000000000 -0500 +++ b/Tests/VisualTests/PlayPen/src/PlayPenTests.cpp 2018-01-17 14:44:24.663452014 -0500 @@ -2078,47 +2078,6 @@ addScreenshotFrame(10); } //---------------------------------------------------------------------------- - -void PlayPen_Bsp::setupContent() -{ - // Load Quake3 locations from a file - ConfigFile cf; - - cf.load(mFSLayer->getConfigFilePath("quakemap.cfg")); - - String quakePk3 = cf.getSetting("Archive"); - String quakeLevel = cf.getSetting("Map"); - - //ResourceGroupManager::getSingleton().addResourceLocation(quakePk3, "Zip"); - - ResourceGroupManager::getSingleton().addResourceLocation( - quakePk3, "Zip", - ResourceGroupManager::getSingleton().getWorldResourceGroupName(), true); - - // Load world geometry - //mSceneMgr->setWorldGeometry(quakeLevel); - - ResourceGroupManager& rgm = ResourceGroupManager::getSingleton(); - rgm.linkWorldGeometryToResourceGroup(rgm.getWorldResourceGroupName(), quakeLevel, mSceneMgr); - rgm.initialiseResourceGroup(rgm.getWorldResourceGroupName()); - rgm.loadResourceGroup(rgm.getWorldResourceGroupName(), false); - - // modify camera for close work - mCamera->setNearClipDistance(4); - mCamera->setFarClipDistance(4000); - - // Also change position, and set Quake-type orientation - // Get random player start point - ViewPoint vp = mSceneMgr->getSuggestedViewpoint(true); - mCameraNode->setPosition(vp.position); - mCameraNode->pitch(Degree(90)); // Quake uses X/Y horizon, Z up - mCameraNode->rotate(vp.orientation); - // Don't yaw along variable axis, causes leaning - mCameraNode->setFixedYawAxis(true, Vector3::UNIT_Z); - - mCameraNode->yaw(Ogre::Degree(-90.f)); -} -//---------------------------------------------------------------------------- //---------------------------------------------------------------------------- PlayPen_BuildTangentOnAnimatedMesh::PlayPen_BuildTangentOnAnimatedMesh()