Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 655


Ignore:
Timestamp:
Dec 19, 2007, 1:10:23 PM (16 years ago)
Author:
nicolape
Message:

Fixed ambient sound and changed skybox

Location:
code/branches/FICN
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/bin/levels/sample.oxw

    r653 r655  
    1212
    1313
    14   <!-- <audio>
     14 <audio>
    1515                <ambient>
    1616                        <ogg src="allgorythm-lift_up" />
     
    2020                        <ogg src="tha_silent_partner_-_void" />
    2121                </ambient>
    22   </audio> -->
     22  </audio>
    2323
    2424  <!-- Keep a minimum distance of >100 to the object, otherwise the camara thinks it's in the object -->
     
    3030  <world>
    3131    <Ambient colourvalue="1,1,1" />
    32     <Skybox src="Orxonox/StarSkyBox" />
     32    <Skybox src="Orxonox/StarfieldSkyBox" />
    3333
    3434    <!--Fighter camera="true" position="0,0,0" scale="10" yaw="-90" pitch="-90" mesh="assf3.mesh"  forward="500" rotateupdown="200" rotaterightleft="200" looprightleft="200" /-->
     
    4141    <NPC position="100,0,400" scale="1" mesh="razor.mesh"/>
    4242
    43     <Model position="200,0,500" scale="10" mesh="starship.mesh" yaw="-90" pitch="-90" />
    44     <Model position="-200,0,500" scale="10" mesh="drone.mesh" yaw="-90" pitch="-90" />
     43<!--    <Model position="200,0,500" scale="10" mesh="starship.mesh" yaw="-90" pitch="-90" />
     44    <Model position="-200,0,500" scale="10" mesh="drone.mesh" yaw="-90" pitch="-90" />-->
    4545
    4646    <Model position="-200,1000,500" scale="10" mesh="hoover_body.mesh" yaw="-90" pitch="-90" />
  • code/branches/FICN/src/loader/LevelLoader.cc

    r625 r655  
    145145                        audio::AudioManager* auMan = orxonox::Orxonox::getSingleton()->getAudioManagerPointer();
    146146                        audioElem = rootElement->FirstChildElement("audio");
     147
    147148                        if (audioElem)
    148149                        {
     
    155156            if (tNode->Type() == TiXmlNode::ELEMENT)
    156157            {
     158
    157159                                                  tElem = tNode->ToElement();
    158160                                                  std::string elemVal = tElem->Value();
    159161                                                  if (elemVal == "ogg")
    160162                                                  {
     163                                COUT(0) << "Adding sound "<< tElem->Attribute("src") << "\n\n\n";
     164
    161165                                          auMan->ambientAdd(tElem->Attribute("src"));
    162166                                                  }
    163167            }
    164168                                        }
     169                                        auMan->ambientStart();
    165170                                }
    166171                        }
     
    194199                                 mLoadOverlay->hide();
    195200                        }
     201                       
     202                       
    196203                        COUT(0) << "Loading finished!\n\n\n\n\n";
    197204                }
Note: See TracChangeset for help on using the changeset viewer.