Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mweb

Pages: [1]
1
Python / Python,... bindings
« on: August 26, 2007, 01:31:46 pm »
Ok I got a first version working. It is not that well as i thought i can do. but since i won't have the time during the next three months to work on this anyway I'll give it free to you. Maybe you can use it for getting scripting support or you just forget about it. What ever you want.
No everything is working yet there is a TODO file that describes what is not working and what does. I have tested it against the SVN 206 version. There are some problem i got with the SVN version that did work with SFML 1.0. It is described in the TODO file.
I have written some of the examples from the tutorial as python scripts. The audio from stream does not work but the rest of the written examples should work.
Sorry that I don't have the time for finishing it. I will check the forum if you have any question or just send me an email. I till try to help as good as possible.

The link where you can find the binding. I will leave this file there for about a month. After that I will remove it.
http://iserver.hta.fhz.ch/~ibweber/swig_sfml.tar.gz


Still thanks for your lib. I will for sure use the audio part but not the rest since i already got this part fully working.

2
General discussions / why not using a namespace
« on: August 21, 2007, 02:28:49 pm »
yep your right, its widely used, but also widely hated for its API ;-).

3
General discussions / why not using a namespace
« on: August 21, 2007, 01:55:23 pm »
better don't start a war, I'm not sure if anyone wants to use DirectX as a good example how a lib should look like  :wink:

4
General discussions / why not using a namespace
« on: August 21, 2007, 01:06:28 pm »
Quote

I may not have used SDL for awhile but last I remembered there was no namespaces needed to be used on my side. When I last used DirectX I also don't remember a namespace required to be used, and from what OpenGL code I have seen there also is not a single namespace declaration required from the API.

Bad arguement.


Sorry SDL is C code the same goes for OpenGL. Namespaces are a C++ construct so do not mix up languages please. I can't talk about directX since i don't use it.

Quote

Hold on.....you call yourself a professional developer, yet you recommend people to do "using namespace namespace-name"? Shocked


whats wrong with using namespace?

5
Audio / I need a way to manually destroy the audio device
« on: August 21, 2007, 07:28:41 am »
May I ask how you build the bindings to ruby? I started to write bindings to python with SWIG this could be used for ruby as well. Do you write the bindings by hand or also by using some bindings language like swig?

6
Python / Python,... bindings
« on: August 17, 2007, 01:16:35 am »
Hi I'm working on getting SWIG files to work with sfml. Since it is possible to create bindings for several languages with SWIG it should be possible to build it for different ones. I will only test it for python at I try to avoid any specialties of python in the first version.
The audio part is fully working, the window and graphics part are partly working yet. There are some problems with the Event class and the Color class. I haven't yet tested the network part. On the system part the randomizer is working i haven't yet tested the Clock. I didn't wrap the Threading yet since this would need some more work and I don't now if this is necessary since most scripting languages will provide threading support them self.
I just send you this message that you know someone is working on this so no one has to do same work ;-)
I try to get the bindings work as good as possible and adding the examples translated to python.

7
Feature requests / More Joystick Axis/Buttons
« on: August 17, 2007, 12:36:00 am »
maybe you could have look at OIS http://sourceforge.net/projects/wgois. This is an input library that supports Windows/Linux and if I'm not wrong also Mac.
Since it is also under the zlib/libpng license there should not be any problem to use or integrate it. Why write everything your self ;-). Especially since the support of joysticks is quite good there and in the next version it will even support the Wii mote.
I don't know what had made with his webpage but he had one with some small tutorials how to use it. But there is still an example in the source code.

8
General discussions / why not using a namespace
« on: August 15, 2007, 03:07:51 pm »
I don't see a reason why it should get necessary, it is just more convenient and usually it is easier to change something if it is smaller and not bigger ;-)
We will see.

9
Python / short delays on playing wav/ogg
« on: August 15, 2007, 11:22:28 am »
I can create the first very basic bindings as described above but since my interested is only on the audio part. So I may help with creating more advanced bindings but won't do it through all parts.
But at least this would get you starting with the bindings.
I will rename each class since the prefix is something i don't like on the classes especially since i got a package in the scripting language anyway. This won't affect the C++ implementation.
I hope SWIG is ok for you.

10
Python / short delays on playing wav/ogg
« on: August 15, 2007, 01:49:37 am »
Quote
Do you mean you created a Python binding for SFML-Audio ? So you could create bindings for other SFML packages and other languages ?  


Yes, but it is not finished, i just did the fastest possible solution. I just added for each public header file a SWIG interface file. The disadvantage is that it is not a very pythonic implementation, but it works.
This way it should be quite easy to do it for the howl library and this would work for almost all the suportet languages from SWIG.

Quote
No idea, maybe your hardware or drivers ? The music class could have some issues, as it's using streaming, but wave sounds just use the basic OpenAL functions so it would be more surprising. By the way, OpenAL 0.8 looks a bit old, current version is 1.1 (or 1.2 ?).


I will check the drivers, but since i never got any problem with any other software i may have to see if i really got the errors with playing the wave sounds.
OpenAL 0.0.8 is the current version you get from the OpenAL site. The Version 1.1 is for ALUT.

Quote
Yes, I should really create an interface to expose the listener properties.

Sounds great, thanks.

11
General discussions / why not using a namespace
« on: August 15, 2007, 01:42:05 am »
Ok it is not necessary but the namespace was added to the c++ that the prefixes for classes are no more necessary. But since this is your project it is your decision. And as you said it is not that important. I just wanted to ask.

12
General discussions / why not using a namespace
« on: August 14, 2007, 11:14:43 pm »
Why did you choose to use prefixes in front of each class instead of using a namespace for the how SFML? I usualy prefer to use namespaces but maybe you got a good reason for it.

13
Python / short delays on playing wav/ogg
« on: August 14, 2007, 11:11:36 pm »
Hi first thanks for this lib. Im only using the audio part but it looks good.

I wrote a few swig files to use your audio lib with python. It works but i got a small problem that sometimes i get slowdown of the music it is playing. The same for wave effects. It will last usually for a second and then it will play normal again. Do you have any idea what this could be?
Here my sys specs:
I'm using Gentoo Linux with openal 0.8, libvorbis 1.1.2.
I also just get stereo even if i have a 5.1 setup. I got this problem with several linux programs but some can handle it (for example VLC). But shuldn't openal be able to use it?

My second question is would it not by nice to change the listener position i have seen that you set the camera position on the creation of the sfAudioDevice. I think it is easier to change the listener position than to change all the Sound objects.

Pages: [1]