On Mon, 23 Apr 2007 15:55:07 +0000 (GMT) Alistair Clarkson <[EMAIL PROTECTED]> wrote:
> Hi, if anyone can help with this I would be extremely grateful. > Currently I am trying to code a small 3D enviornment where I can control the > central body from an external source. > I have been trying to write a COM server so that I can automate Soya3D (and > it works). > The problem is that when I call mainloop my com client is locked up, I think > I can poll mainloop.update but this seems messy and It could be quite messy. > I therefore want to run Soya3D in a seperate thread which is how I get the > error below: The problem is that Soya is not designed for being ran in a separated thread, for 2 reasons : * Soya's functions are not thread safe, which will cause trouble if 2 different threads call Soya function simultaneously, * OpenGL context cannot be shared between 2 threads without a specific initialization that Soya doesn't support currently. However, it might work if ALL Soya and OpenGL calls are done by the same thread (in particular, soya.init() must be called by the thread that will perform all Soya and OpenGL calls). Jiba
signature.asc
Description: PGP signature
_______________________________________________ Soya-user mailing list [email protected] https://mail.gna.org/listinfo/soya-user
