Changeset 1384 for GTP


Ignore:
Timestamp:
09/16/06 02:03:22 (18 years ago)
Author:
giegl
Message:

<cubemapsize>GTPD - Jungle Rumble - <cubemapsize> config setting

Location:
GTP/trunk/App/Games/Jungle_Rumble
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Games/Jungle_Rumble/bin/config.xml

    r1383 r1384  
    44        <height>600</height> 
    55        <fullscreen>0</fullscreen> <!-- 1 = TRUE, 0 = FALSE --> 
     6        <cubemapsize>512</cubemapsize> <!-- 512, 1024, 2048, ... - current ATI cards have problems with size above 512 --> 
    67        <physxdebug>0</physxdebug>   <!-- 1 = TRUE, 0 = FALSE --> 
    78        <challenge><name>Alien Planet</name><location>./media/challenges/moon.xml</location><loadingScreen>./media/textures/moonLoading.jpg</loadingScreen></challenge> 
  • GTP/trunk/App/Games/Jungle_Rumble/src/RaytraceRenderer.cpp

    r1383 r1384  
    1313        #define CUBEMAP_SIZE            1024                            // Size of CubeMaps (MG) 
    1414#elif(1) 
    15         const int CUBEMAP_SIZE = 1024; 
     15        int CUBEMAP_SIZE = 512; 
    1616#endif 
    1717 
  • GTP/trunk/App/Games/Jungle_Rumble/src/WuermerDX9.cpp

    r1378 r1384  
    228228// Initialize everything and go into a render loop 
    229229//-------------------------------------------------------------------------------------- 
     230 
     231extern int CUBEMAP_SIZE;  
     232 
    230233INT WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR, int ) 
    231234{ 
     
    285288        _bstr_t tmpChallengeScreen("loadingScreen"); 
    286289 
     290        _bstr_t tmpCubemapSize("cubemapsize"); // MG 
     291         
     292 
    287293        int fullscreen; 
    288294        for (MSXML::IXMLDOMNodePtr pChild = configDocRoot->firstChild;NULL != pChild;pChild = pChild->nextSibling) { 
     
    294300                        } else if(pChild->nodeName == tmpFullscreen) { 
    295301                                fullscreen = atoi(pChild->firstChild->text);    //Use Fullscreen? 
    296                         } else if(pChild->nodeName == tmpUsePhysX) { 
     302                        }  
     303                        else if(pChild->nodeName == tmpCubemapSize) { 
     304                                CUBEMAP_SIZE = atoi(pChild->firstChild->text); //Raytrace Effects Cubemap Size 
     305                        }  
     306                        else if(pChild->nodeName == tmpUsePhysX) { 
    297307                                usePhysXDebug = (atoi(pChild->firstChild->text)==1);//Use Shader? 
    298308                        } else if(pChild->nodeName == tmpChallenge) {           //A Challenge 
Note: See TracChangeset for help on using the changeset viewer.