Re: [Soya-user] Problems with Soya tutorial (mandriva 2008)

2007-11-04 Thread Jiba
On Mon, 22 Oct 2007 01:30:55 +0200
Jacques Rebourcier [EMAIL PROTECTED] wrote:

 Le Monday 22 October 2007 01:24:58 Jacques Rebourcier, vous avez écrit :
  python sound-1.py
  * Soya * Using 8 bits stencil buffer
 
  * Soya * version 0.13.2
  * Using OpenGL 1.4 (2.1 Mesa 7.0.1)
  *   - renderer : Mesa GLX Indirect
  *   - vendor   : Mesa project: www.mesa3d.org
  *   - maximum number of lights        : 8
  *   - maximum number of clip planes   : 6
  *   - maximum number of texture units : 8
  *   - maximum texture size            : 2048 pixels
  open /dev/[sound/]dsp: Device or resource busy
  Could not open SDL library: libSDL.so: cannot open shared object file: No
  such file or directory
  Could not open ESoundD library: libesd.so: cannot open shared object file:
  No such file or directory
  Could not open aRts library: libartsc.so: cannot open shared object file:
  No such file or directory
  * Using OpenAL 1.1
  *   - renderer  : Software
  *   - vendor    : OpenAL Community
 
 = Actually works when I disable KDE sound.

I think the problem is artsd (KDE sound server) ; artsd prevents any non-artsd 
application to use sound. There are only two solutions : kill artsd, or try to 
set-up openAL so as it plays sounds through artsd (I think it can, but it may 
not be configurated for that by default).

Jiba


signature.asc
Description: PGP signature
___
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user


Re: [Soya-user] Problems with Soya tutorial (mandriva 2008)

2007-11-04 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jiba wrote:
 On Mon, 22 Oct 2007 01:30:55 +0200 Jacques Rebourcier
 [EMAIL PROTECTED] wrote:
 
 Le Monday 22 October 2007 01:24:58 Jacques Rebourcier, vous avez
 écrit :
 python sound-1.py * Soya * Using 8 bits stencil buffer
 
 * Soya * version 0.13.2 * Using OpenGL 1.4 (2.1 Mesa 7.0.1) *   -
 renderer : Mesa GLX Indirect *   - vendor   : Mesa project:
 www.mesa3d.org *   - maximum number of lights: 8 *   -
 maximum number of clip planes   : 6 *   - maximum number of
 texture units : 8 *   - maximum texture size: 2048
 pixels open /dev/[sound/]dsp: Device or resource busy Could not
 open SDL library: libSDL.so: cannot open shared object file: No 
 such file or directory Could not open ESoundD library: libesd.so:
 cannot open shared object file: No such file or directory Could
 not open aRts library: libartsc.so: cannot open shared object
 file: No such file or directory * Using OpenAL 1.1 *   - renderer
 : Software *   - vendor: OpenAL Community
 = Actually works when I disable KDE sound.
 
 I think the problem is artsd (KDE sound server) ; artsd prevents any
 non-artsd application to use sound. There are only two solutions :
 kill artsd, or try to set-up openAL so as it plays sounds through
 artsd (I think it can, but it may not be configurated for that by
 default).
 

Mandriva is using ALSA with dmix plugin for a long time. This error
wouldn't occur if OpenAL was setup to use ALSA properly instead of using
the old OSS API which blocks everything else.

Put this into your ~/.openalrc:

(define devices '(alsa))
(define alsa-out-device default)
(define speaker-num 2)


That should fix it.

Regards,

Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFHLgsVn11XseNj94gRAl3zAKDVN+zP15JQC4EjjxiKYS9kX4O3MQCg3Ob9
5BhsjxBZMiRyou5Hacl4PlE=
=JQAd
-END PGP SIGNATURE-

___
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user


Re: [Soya-user] Problems with Soya tutorial (mandriva 2008)

2007-11-04 Thread Jacques Rebourcier
Le Sunday 04 November 2007 11:59:54 Jiba, vous avez écrit :
 I think the problem is artsd (KDE sound server) ; artsd prevents any
 non-artsd application to use sound. There are only two solutions : kill
 artsd, or try to set-up openAL so as it plays sounds through artsd (I think
 it can, but it may not be configurated for that by default).

 Jiba

Ok, Jan Ciger just explained me how to set up OpenAL to use ALSA. It works 
fine now.
Jacques



___
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user


Re: [Soya-user] Problems with Soya tutorial (mandriva 2008)

2007-11-04 Thread Jacques Rebourcier
Le Sunday 04 November 2007 19:10:31 Jan Ciger, vous avez écrit :
 Mandriva is using ALSA with dmix plugin for a long time. This error
 wouldn't occur if OpenAL was setup to use ALSA properly instead of using
 the old OSS API which blocks everything else.

 Put this into your ~/.openalrc:

 (define devices '(alsa))
 (define alsa-out-device default)
 (define speaker-num 2)


 That should fix it.

 Regards,

 Jan

Yes, it fixes the pb.
Thanks Jan.
Jacques

___
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user


Re: [Soya-user] Problems with Soya tutorial (mandriva 2008)

2007-10-26 Thread Jacques Rebourcier
Le Friday 26 October 2007 21:57:21 Souvarine, vous avez écrit :
 Hello.

 - renderer : Mesa GLX Indirect no good ! This mean 3D acceleration is not
 working, no wonder why soya is so slow for you ! First check the folowing
 command.
 glxinfo |grep direct rendering

Ah, yes ! I prbably lost my proprietary driver in recent kernel tests 
thanks... No doubt It will work better with, confused I didn't notice... :-D


 If you get No here then you have to install (or configure driver for your
 graphic card. If you get Yes then 3D acceleration is OK but soya don't get
 it. This problem happened to me once because of an old and buggy version of
 libSDL, try upgrade to newer version.

Will test but will be offline one week.

 Also know that several bugs have been corrected in soya latly but those
 corrections have not been packaged yet. I advise you to install soya from
 SVN sources. Install the lastest version of Pyrex (from the sources on
 their web site) and compile soya yourself.

Ok, i will..

Thanks.

 Souvarine.



 ___
 Soya-user mailing list
 Soya-user@gna.org
 https://mail.gna.org/listinfo/soya-user



___
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user


[Soya-user] Problems with Soya tutorial (mandriva 2008)

2007-10-21 Thread Jacques Rebourcier

1) speed
---

python speed-1.py
* Soya * Using 8 bits stencil buffer

* Soya * version 0.13.2
* Using OpenGL 1.4 (2.1 Mesa 7.0.1)
*   - renderer : Mesa GLX Indirect
*   - vendor   : Mesa project: www.mesa3d.org
*   - maximum number of lights: 8
*   - maximum number of clip planes   : 6
*   - maximum number of texture units : 8
*   - maximum texture size: 2048 pixels

Traceback (most recent call last):
  File speed-1.py, line 61, in module
body = InterpolatingBody(scene, soya.cube.Cube(None).to_model())
  File speed-1.py, line 43, in __init__
self.speed  = soya.CoordSystSpeed(self)
  File coordsyst.pyx, line 1023, in _soya._CoordSystSpeed.__init__
  File coordsyst.pyx, line 152, in _soya.CoordSyst.added_into
TypeError: Argument 'new_parent' has incorrect type (expected _soya._World, 
got InterpolatingBody)
* Soya3D * Quit...

2) puding-meter
-

python pudding-meter-1.py
Traceback (most recent call last):
  File pudding-meter-1.py, line 10, in module
import pudding.ext.meter
ImportError: No module named pudding.ext.meter


python sound-1.py
* Soya * Using 8 bits stencil buffer

* Soya * version 0.13.2
* Using OpenGL 1.4 (2.1 Mesa 7.0.1)
*   - renderer : Mesa GLX Indirect
*   - vendor   : Mesa project: www.mesa3d.org
*   - maximum number of lights: 8
*   - maximum number of clip planes   : 6
*   - maximum number of texture units : 8
*   - maximum texture size: 2048 pixels
open /dev/[sound/]dsp: Device or resource busy
Could not open SDL library: libSDL.so: cannot open shared object file: No such 
file or directory
Could not open ESoundD library: libesd.so: cannot open shared object file: No 
such file or directory
Could not open aRts library: libartsc.so: cannot open shared object file: No 
such file or directory
* Using OpenAL 1.1
*   - renderer  : Software
*   - vendor: OpenAL Community


3) sound 
---

Traceback (most recent call last):
  File sound-1.py, line 102, in module
soya.MainLoop(scene).main_loop()
  File main_loop.pyx, line 150, in _soya.MainLoop.main_loop
  File main_loop.pyx, line 247, in _soya.MainLoop.advance_time
  File /usr/lib/python2.5/weakref.py, line 308, in __iter__
def __iter__(self):
KeyboardInterrupt
* Soya3D * Quit...

= I see the rotating cube, but without sound. My installed libs are :
/usr/lib/libSDL-1.2.so.0
/usr/lib/libesd.so.0
/usr/lib/libartsc.so.0

4) pudding-svgelements-1.py
--

python pudding-svgelements-1.py
/usr/lib/python2.5/site-packages/soya/pudding/ext/svgelements.py:25: 
DeprecationWarning: raising a string exception is deprecated
  raise You need elementtree from http://effbot.org/zone/element-index.htm;
Traceback (most recent call last):
  File pudding-svgelements-1.py, line 8, in module
import soya.pudding.ext.svgelements as svgelements
  File /usr/lib/python2.5/site-packages/soya/pudding/ext/svgelements.py, 
line 25, in module
raise You need elementtree from http://effbot.org/zone/element-index.htm;
You need elementtree from http://effbot.org/zone/element-index.htm

= I have python 2.5 which embeds elementtree as standard module.

___
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user


Re: [Soya-user] Problems with Soya tutorial (mandriva 2008)

2007-10-21 Thread Jacques Rebourcier
Le Monday 22 October 2007 01:24:58 Jacques Rebourcier, vous avez écrit :
 python sound-1.py
 * Soya * Using 8 bits stencil buffer

 * Soya * version 0.13.2
 * Using OpenGL 1.4 (2.1 Mesa 7.0.1)
 *   - renderer : Mesa GLX Indirect
 *   - vendor   : Mesa project: www.mesa3d.org
 *   - maximum number of lights        : 8
 *   - maximum number of clip planes   : 6
 *   - maximum number of texture units : 8
 *   - maximum texture size            : 2048 pixels
 open /dev/[sound/]dsp: Device or resource busy
 Could not open SDL library: libSDL.so: cannot open shared object file: No
 such file or directory
 Could not open ESoundD library: libesd.so: cannot open shared object file:
 No such file or directory
 Could not open aRts library: libartsc.so: cannot open shared object file:
 No such file or directory
 * Using OpenAL 1.1
 *   - renderer  : Software
 *   - vendor    : OpenAL Community

= Actually works when I disable KDE sound.

___
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user