News:

Come Chat with us live! Learn how HERE!

Main Menu

linux 3d sound [SOLVED]

Started by dr_Fell, October 08, 2007, 08:16:20 AM

dr_Fell

Hello. I am playing tremulous on windows and linux. Since I am using linux for the most of time I'd prefer to play tremulous on my linux box. But there's one feature that I miss very much - positional sound.
I always hear the same sounds in my left and right headphone - it doesn't matter if source of the sound is on the left or right. I can't find friend or enemy using sounds.
Since positional sound is important for me during playing, this makes my linux really unuseful as a tremulous gaming machine.

thanks for any help.
Michael.


EDIT:// my distro is gentoo, tremulous is compiled with openal support or it is precompiled binary that has openal option in menu (don't have 3d sound in both cases). Openal is installed. Problem isn't restricted to tremulous only - in savage game I also don't have positional sound.

next_ghost

If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Odin

Your OpenAL libs might be broken. Are they the latest versions?

Caveman

It could also mean that your SDL-Libs are too recent .)
sdl-1.2.11 will work 100%, where as sdl-1.2.12 has some quirks with some soundcards.

@Odin
OpenAL can only be out of date, when the machine was set up a year ago, as the version has not changed for at least that long. And since he uses Linux most of the time, I think we can rule that out.

dr_Fell

Hello, thanks for so many replies.

I tried, but I don't know how to enable sdl -

1. if You are saying about compiling tremulous with sdl support, then I guess tremulous-bin should (?) be compiled with it. Sources that are in portage are compiled on my box with all possible "flags" turned on (dedicated openal opengl vorbis). Also I have "sdl" flag turned on in my make.conf

2. I didn't found any control in game to turn sdl on.

3. I have openal-0.0.8-r2 and libsdl-1.2.11-r2 installed (can upgrade sdl to 1.2.12 if it matters).

My soundcard is Soundblaster Live Digital 5.1.


Michael

dr_Fell

Hello, thanks for so many replies.

I tried, but I don't know how to enable sdl -

1. if You are saying about compiling tremulous with sdl support, then I guess tremulous-bin should (?) be compiled with it. Sources that are in portage are compiled on my box with all possible "flags" turned on (dedicated openal opengl vorbis). Also I have "sdl" flag turned on in my make.conf

2. I didn't found any control in game to turn sdl on.

3. I have openal-0.0.8-r2 and libsdl-1.2.11-r2 installed (can upgrade sdl to 1.2.12 if it matters).

My soundcard is Soundblaster Live Digital 5.1.


Michael

next_ghost

/s_useOpenAL 0
/snd_restart
^^ That goes into game console, if s_useOpenAL is 0 already, change it to 1 instead. Also don't install tremulous source package but install tremulous-bin, download new client executable from TJW's site and use that one instead.

Tremulous in Portage is horribly outdated and compiling it makes no sense. 3 out 5 files you compile are never used, the other two are horribly outdated, buggy, both have security issues (buffer overflow in client, multiple DoS vulnerabilities in server), lack some features and custom CFLAGS forced by ebuild creator usually break things (eg. it's not safe to compile ioq3 for i686). I've submitted a bug report, simple patch and new ebuild to Gentoo Bugzilla more than a year ago but it was rejected it because "it was too compilcated" (I wonder how complicated it is compared to say kdelibs) and "they'll wait for next release". That was a year ago. 1.2.0 isn't out and I'm pretty sure it'll take another year before it gets released.

So please go and bump this bugreport.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

dr_Fell

Hello, sorry that I write after so much time but I had cpu problems.

I downloaded updated binary (tremulous.x86) and put it in the /usr/games/bin/ folder. Binary didn't run because of lack of "defaulf.cfg" file. I copied my autogen.cfg in my ~/tremulous/base folder and named the copy "default.cfg"

Now I got this:

Quote
GL_MAX_TEXTURE_SIZE: 4096
GL_MAX_ACTIVE_TEXTURES_ARB: 4

PIXELFORMAT: color(32-bits) Z(24-bit) stencil(0-bits)
MODE: 6, 1024 x 768 fullscreen hz:N/A
GAMMA: hardware w/ 0 overbright bits
CPU:
rendering primitives: single glDrawElements
texturemode: GL_LINEAR_MIPMAP_LINEAR
picmip: 0
texture bits: 32
multitexture: enabled
compiled vertex arrays: enabled
texenv add: disabled
compressed textures: disabled
HACK: using vertex lightmap approximation
Initializing Shaders
^3WARNING: no shader files found
Received signal 11, exiting...
----- CL_Shutdown -----
RE_Shutdown( 1 )
-----------------------

and I don't know what should I do, where are shader files.

this is my /base folder with game (not home directory) files:

Quote
home tremulous # ls -al base/
total 99912
drwxr-x--- 2 root games      496 2007-11-04 11:01 .
drwxr-x--- 3 root games      232 2007-11-04 11:01 ..
-rw-r----- 1 root games 44925864 2007-11-04 11:01 data-1.1.0.pk3
-rw-r----- 1 root games  8105026 2007-11-04 11:01 map-arachnid2-1.1.0.pk3
-rw-r----- 1 root games  3678004 2007-11-04 11:01 map-atcs-1.1.0.pk3
-rw-r----- 1 root games  9928757 2007-11-04 11:01 map-karith-1.1.0.pk3
-rw-r----- 1 root games 10382317 2007-11-04 11:01 map-nexus6-1.1.0.pk3
-rw-r----- 1 root games  6403257 2007-11-04 11:01 map-niveus-1.1.0.pk3
-rw-r----- 1 root games       92 2007-11-04 11:01 maprotation.cfg
-rw-r----- 1 root games 10423326 2007-11-04 11:01 map-transit-1.1.0.pk3
-rw-r----- 1 root games  1961298 2007-11-04 11:01 map-tremor-1.1.0.pk3
-rw-r----- 1 root games  6016927 2007-11-04 11:01 map-uncreation-1.1.0.pk3
-rw-r----- 1 root games      907 2007-11-04 11:01 server.cfg
-rw-r----- 1 root games   362322 2007-11-04 11:01 vms-1.1.0.pk3


benmachine

Quote from: dr_FellI downloaded updated binary (tremulous.x86) and put it in the /usr/games/bin/ folder. Binary didn't run because of lack of "defaulf.cfg" file.
This is an error caused by running the binary from the wrong place, so it can't find data-1.1.0.pk3. You need to run it from the same directory that contains your base folder.
benmachine

next_ghost

Or use +set fs_basepath path command line argument where path points to your main Tremulous directory (eg. tremulous +set fs_basepath /usr/share/games/tremulous/).
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

dr_Fell

Thank You (all) very much ! Problem solved, I event didn't need to change anything - new client started with 3d sound working. I thing I can even tell if the source of the sound is at the front or at the back, what is a very good result.

P.S. are You sure I have to write +set ? I accidentally missed "+" but tremulous.x86 set fs_basepath /opt/tremulous/ is also working for me ;)