Search found 100 matches

by MareviQ
Sun Oct 29, 2006 6:42 pm
Forum: Programming
Topic: FMOD as new sound engine?
Replies: 68
Views: 11005

Okay, this is the moment we've been waiting for: a OpenAL implementation that should work in windows (and it does... at least on my virtual machine). It's a direct code copy from FO only after slight modifications (the FO code was nearly foolproof anyway). It needs to be linked to Openal32.lib alut....
by MareviQ
Fri Oct 27, 2006 7:53 pm
Forum: Programming
Topic: FMOD as new sound engine?
Replies: 68
Views: 11005

I'm away for the weekend but when I'm back I'll get to work on this. Still not by compiling FreeOrion (I believe that would be quite an overkill) but by clever copy&paste :) (namely: copy all the relevant code from FreeOrion, make it work as a standalone app and then re-merge the required changes in...
by MareviQ
Thu Oct 26, 2006 3:20 pm
Forum: Programming
Topic: FMOD as new sound engine?
Replies: 68
Views: 11005

What came after some testing on windows: - "hello world" works without problems - loading a .wav file and playing it works - loading a .ogg file all at once to the memory and playing it works with some code changes (otherwise crashes the app) - buffering a .ogg and playing it with buffer swapping do...
by MareviQ
Wed Oct 25, 2006 6:17 pm
Forum: Programming
Topic: FMOD as new sound engine?
Replies: 68
Views: 11005

Okay, I took this test-app I created during learning how OpenAL works and managed to get it running on a Windows 2k SP4 on a virtual machine (VMware Player): #include <AL/al.h> #include <AL/alc.h> #include <AL/alut.h> #include <stdio.h> #include <stdlib.h> int main (int argc, char** argv) { ALCdevic...
by MareviQ
Tue Oct 24, 2006 1:26 pm
Forum: General Discussion
Topic: (Another) Compile problem: Graphviz
Replies: 3
Views: 1498

regardles of what directories you pass to scons it apparently needs to find graphviz using pkg-config. To allow it to do so simply use

Code: Select all

locate libgraph.pc
to find where pkg-config data for graphviz is stored and then set the enviromental variable PKG_CONFIG_PATH to point to that directory
by MareviQ
Tue Oct 24, 2006 1:10 pm
Forum: Programming
Topic: FMOD as new sound engine?
Replies: 68
Views: 11005

nope, it shouldn't. I'll try to figure something out using my test programs (not FreeOrion itself, it would take ages for me to meet all the dependencies) and post my progress here. Note: it will be in an emulated enviroment (VMPlayer) but I hope it won't make a difference. Please point me to where ...
by MareviQ
Tue Oct 24, 2006 7:43 am
Forum: Programming
Topic: FMOD as new sound engine?
Replies: 68
Views: 11005

okay, I'm running out of ideas... try putting this somewhere in the init code (should be after alcMakeContextCurrent... or even better - after alutInitWithoutContext) alListenerf(AL_GAIN,1.0); This should work if the problem is caused by OpenAL initializing the default sound volume with something st...
by MareviQ
Mon Oct 23, 2006 1:45 pm
Forum: Programming
Topic: FMOD as new sound engine?
Replies: 68
Views: 11005

Well, it turns out that not much is needed to make OpenAL work without using alutInit(). Here is the affected part of the code: namespace { void InitOpenAL(int num_sources, ALuint *sources, ALuint *music_buffers) { ALCcontext *m_context; ALCdevice *m_device; log4cpp::Category& logger = HumanClientAp...
by MareviQ
Mon Oct 23, 2006 9:35 am
Forum: Strategy Games
Topic: FreeCraft Update
Replies: 22
Views: 8676

The one result I like from the Mix and Match is "Star Wars" ... but I have a feeling that might not be apropriate in the long run ;)
by MareviQ
Sat Oct 21, 2006 4:31 pm
Forum: Programming
Topic: FMOD as new sound engine?
Replies: 68
Views: 11005

I managed to get a hold of a net-aware PC, so I'm back (but sadly no code for the time being) I think I might have found a similar problem here: http://www.devmaster.net/forums/archive/index.php/t-3203.html The linux version is 0.0.8 while the windows is 1.1.0 I believe so it would be possible that ...
by MareviQ
Sat Oct 21, 2006 4:17 am
Forum: Programming
Topic: FMOD as new sound engine?
Replies: 68
Views: 11005

okay... I'm currently going back to my parrents place for the weekend so I won't be able to do anything untill monday but try adding this to OpenAL init/diagnostic code: const ALCchar *devices; const ALCchar *def_device; devices = alcGetString(NULL,ALC_DEVICE_SPECIFIER); def_device = alcGetString(NU...
by MareviQ
Fri Oct 20, 2006 4:19 pm
Forum: Programming
Topic: FMOD as new sound engine?
Replies: 68
Views: 11005

in void HumanClientAppSoundOpenAL::StopMusic() change m_music_name.clear(); // do this to avoid being re-started by other functions ov_clear(&m_ogg_file); // and unload the file for good measure. the file itself is still open, but PlayMusic is safeguarded against it. to if (m_music_name.size() > 0) ...
by MareviQ
Tue Oct 17, 2006 6:01 pm
Forum: Graphics
Topic: a low-poly fighter model
Replies: 6
Views: 3172

okay, here is the link: http://mareviq.w.interia.pl/fighter_01.zip It contains the 134 tris model in two versions: half: only half of the model (it's symmetrical so...) full: mirrored and merged duplicate vertices as I don't know which version would be more useful when unwrapping. (The .zip size is ...
by MareviQ
Mon Oct 16, 2006 10:20 pm
Forum: Graphics
Topic: a low-poly fighter model
Replies: 6
Views: 3172

eleazar: that can easily be done if you provide the color map as a .png with alpha map (32-bit RGBA) and possibly another alpha map (8-bit B/W) if the emprie colors included a primary and a secondary one. It would work like this: 1. read the size (x and y) of the color map. 2. Create a pixmap of the...
by MareviQ
Mon Oct 16, 2006 9:10 pm
Forum: Graphics
Topic: a low-poly fighter model
Replies: 6
Views: 3172

a low-poly fighter model

I got bored so I made this: http://img172.imageshack.us/img172/7443/01front.th.jpg http://img172.imageshack.us/img172/5340/01left.th.jpg http://img172.imageshack.us/img172/1240/01top.th.jpg http://img172.imageshack.us/img172/4456/01map_perspective.th.jpg It's supposed to be a one-man fighter craft (...