help with water surface and audio

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

help with water surface and audio

Post by afecelis »

Hi guys!

Following the specialfx tut I got a water surface to work properly but I can't move it to place it somewhere else of my map. Adding "set position" to the node won't make it move. How do you change the location of water?

question2:
what's the simplest way to load and play an mp3 with my map? Checking the techdemo I noticed it's complicated. Is there an easier way (just like everything else in Irrlicht)?

cheers!
Image
Cleves
Posts: 224
Joined: Mon Sep 08, 2003 6:40 pm

Post by Cleves »

It's not that hard, since Irrlicht is a gfx engine and not a sound lib you will have to use external lib, like Audiere or OpenAL, both are very easy to use and in 30 min you can have a working sound system 8) :lol:

http://audiere.sourceforge.net/

http://www.openal.org/
LordNaikon
Posts: 164
Joined: Wed May 05, 2004 5:34 pm
Location: Germany Berlin
Contact:

Post by LordNaikon »

scene::ISceneNode* WaterNode =smgr->addWaterSurfaceSceneNode(mesh->getMesh(0), 3.0f, 300.0f, 30.0f);
WaterNode->setPosition(core::vector3df(0,7,0));
q|^.^|p beeing every time friendly to everyone
sys: 2500+Barton 512MB 6600GT WinXP
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

thnx Lord, but as I originally mentioned, assigning "set position" to the node didn't move it either.

I'm clueless
Image
Post Reply