Changeset 7948 for code/branches/kicklib
- Timestamp:
- Feb 21, 2011, 6:16:24 AM (14 years ago)
- Location:
- code/branches/kicklib
- Files:
-
- 2 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib/INSTALL
r7947 r7948 9 9 (for windows there are already precompiled packages on the website) 10 10 11 OGRE 3D Graphics Engine 1. 4- 1.711 OGRE 3D Graphics Engine 1.6 - 1.7 12 12 CEGUI (Crazy Eddie's GUI System) 0.6 13 13 Boost libraries 1.35 - -
code/branches/kicklib/cmake/LibraryConfig.cmake
r7947 r7948 93 93 # Performs the search and sets the variables # 94 94 95 FIND_PACKAGE(OGRE 1. 4REQUIRED)95 FIND_PACKAGE(OGRE 1.6 REQUIRED) 96 96 #FIND_PACKAGE(ENet 1.1 REQUIRED) 97 97 FIND_PACKAGE(Lua5.1 REQUIRED) -
code/branches/kicklib/src/external/ogreceguirenderer/OgreCEGUIRenderer.cpp
r5781 r7948 455 455 d_render_sys->_setTextureAddressingMode(0, d_uvwAddressMode); 456 456 d_render_sys->_setTextureMatrix(0, Matrix4::IDENTITY); 457 #if OGRE_VERSION >= 0x010600458 457 d_render_sys->_setAlphaRejectSettings(CMPF_ALWAYS_PASS, 0, false); 459 #else460 d_render_sys->_setAlphaRejectSettings(CMPF_ALWAYS_PASS, 0);461 #endif462 458 d_render_sys->_setTextureBlendMode(0, d_colourBlendMode); 463 459 d_render_sys->_setTextureBlendMode(0, d_alphaBlendMode); -
code/branches/kicklib/src/external/ogreceguirenderer/VERSION
r5781 r7948 1 This library is part of the OGRE v1.6. 1source.1 This library is part of the OGRE v1.6.5 source. 2 2 3 3 ----- -
code/branches/kicklib/src/external/ogreceguirenderer/changes_orxonox.diff
r7163 r7948 18 18 #include "OgreCEGUIRenderer.h" 19 19 #include "OgreCEGUITexture.h" 20 @@ -454,7 +454,11 @@21 d_render_sys->_setTextureUnitFiltering(0, FO_LINEAR, FO_LINEAR, FO_POINT);22 d_render_sys->_setTextureAddressingMode(0, d_uvwAddressMode);23 d_render_sys->_setTextureMatrix(0, Matrix4::IDENTITY);24 +#if OGRE_VERSION >= 0x01060025 + d_render_sys->_setAlphaRejectSettings(CMPF_ALWAYS_PASS, 0, false);26 +#else27 d_render_sys->_setAlphaRejectSettings(CMPF_ALWAYS_PASS, 0);28 +#endif29 d_render_sys->_setTextureBlendMode(0, d_colourBlendMode);30 d_render_sys->_setTextureBlendMode(0, d_alphaBlendMode);31 d_render_sys->_disableTextureUnitsFrom(1);32 20 --- OgreCEGUIRenderer.h Wed Jan 28 21:14:09 2009 33 21 +++ OgreCEGUIRenderer.h Wed Jan 28 21:06:46 2009 -
code/branches/kicklib/src/libraries/core/CMakeLists.txt
r7944 r7948 54 54 command/ArgumentCompletionFunctions.cc 55 55 ConfigFileManager.cc 56 MemoryArchive.cc57 56 PathConfig.cc 58 57 COMPILATION_END -
code/branches/kicklib/src/libraries/core/GraphicsManager.cc
r7874 r7948 35 35 #include <boost/shared_array.hpp> 36 36 37 #include <OgreArchiveFactory.h>38 #include <OgreArchiveManager.h>39 37 #include <OgreFrameListener.h> 40 38 #include <OgreRoot.h> … … 58 56 #include "GameMode.h" 59 57 #include "Loader.h" 60 #include "MemoryArchive.h"61 58 #include "PathConfig.h" 62 59 #include "WindowEventListener.h" … … 90 87 GraphicsManager::GraphicsManager(bool bLoadRenderer) 91 88 : ogreWindowEventListener_(new OgreWindowEventListener()) 92 #if OGRE_VERSION < 0x01060093 , memoryArchiveFactory_(new MemoryArchiveFactory())94 #endif95 89 , renderWindow_(0) 96 90 , viewport_(0) … … 178 172 179 173 this->loadRenderer(); 180 181 #if OGRE_VERSION < 0x010600182 // WORKAROUND: There is an incompatibility for particle scripts when trying183 // to support both Ogre 1.4 and 1.6. The hacky solution is to create184 // scripts for the 1.6 version and then remove the inserted "particle_system"185 // keyword. But we need to supply these new scripts as well, which is why186 // there is an extra Ogre::Archive dealing with it in the memory.187 using namespace Ogre;188 ArchiveManager::getSingleton().addArchiveFactory(memoryArchiveFactory_.get());189 const StringVector& groups = ResourceGroupManager::getSingleton().getResourceGroups();190 // Travers all groups191 for (StringVector::const_iterator itGroup = groups.begin(); itGroup != groups.end(); ++itGroup)192 {193 FileInfoListPtr files = ResourceGroupManager::getSingleton().findResourceFileInfo(*itGroup, "*.particle");194 for (FileInfoList::const_iterator itFile = files->begin(); itFile != files->end(); ++itFile)195 {196 // open file197 Ogre::DataStreamPtr input = ResourceGroupManager::getSingleton().openResource(itFile->filename, *itGroup, false);198 std::stringstream output;199 // Parse file and replace "particle_system" with nothing200 while (!input->eof())201 {202 std::string line = input->getLine();203 size_t pos = line.find("particle_system");204 if (pos != std::string::npos)205 {206 // 15 is the length of "particle_system"207 line.replace(pos, 15, "");208 }209 output << line << std::endl;210 }211 // Add file to the memory archive212 shared_array<char> data(new char[output.str().size()]);213 // Debug optimisations214 const std::string& outputStr = output.str();215 char* rawData = data.get();216 for (unsigned i = 0; i < outputStr.size(); ++i)217 rawData[i] = outputStr[i];218 MemoryArchive::addFile("particle_scripts_ogre_1.4_" + *itGroup, itFile->filename, data, output.str().size());219 }220 if (!files->empty())221 {222 // Declare the files, but using a new group223 ResourceGroupManager::getSingleton().addResourceLocation("particle_scripts_ogre_1.4_" + *itGroup,224 "Memory", "particle_scripts_ogre_1.4_" + *itGroup);225 }226 }227 #endif228 174 229 175 // Initialise all resources (do this AFTER the renderer has been loaded!) -
code/branches/kicklib/src/libraries/core/GraphicsManager.h
r7401 r7948 98 98 99 99 scoped_ptr<OgreWindowEventListener> ogreWindowEventListener_; //!< Pimpl to hide OgreWindowUtilities.h 100 #if OGRE_VERSION < 0x010600101 scoped_ptr<MemoryArchiveFactory> memoryArchiveFactory_; //!< Stores the modified particle scripts102 #endif103 100 scoped_ptr<Ogre::LogManager> ogreLogger_; 104 101 scoped_ptr<Ogre::Root> ogreRoot_; //!< Ogre's root -
code/branches/kicklib/src/libraries/tools/Mesh.cc
r6417 r7948 69 69 this->entity_ = this->scenemanager_->createEntity("Mesh" + multi_cast<std::string>(Mesh::meshCounter_s++), meshsource); 70 70 this->entity_->setCastShadows(this->bCastShadows_); 71 72 #if OGRE_VERSION < 0x01060073 this->entity_->setNormaliseNormals(true);74 /*75 Excerpt from Ogre forum:76 "Note that the above is only for the fixed function pipeline.77 If/when you get into shaders, you'll need to manually normalize() the normal inside the vertex or pixel shader."78 79 I don't know exactly what this means, but I put this here if there will be problems with shaders.80 */81 #endif82 71 } 83 72 catch (...)
Note: See TracChangeset
for help on using the changeset viewer.