On Sep 13, 2005, at 12:29 PM, Kris De Schutter wrote:
Anyway, I'm a Mac OS X (10.4, aka Tiger) user. It took me some time
to get Soya up and running on my platform, but it seems to work
fine now. Two points though:
I ran into trouble trying to do terrain stuff under MacOSX.
I'm not sure if I was initing everything right. But, my
guy would come up on the land. And, I could look in that
one direction from that one spot for as long as I liked.
But, if I did too much moving around or turning (less than
5seconds worth), there was a 90% chance that my machine
would panic/lock-up and a 10% chance that it would bus error
inside one of the trimesh second_pass rendering methods.
Another MacOSX Note... here's some code for finding fonts in
Darwin when using pudding. It's not very crafty. But, it got
me past my initial woes.
def initsysfonts_darwin():
""" read of the fonts on osx (fill me in!) """
paths = ['/Library/Fonts',
'~/Library/Fonts',
'/Local/Library/Fonts',
'/Network/Library/Fonts']
fonts = {}
for p in paths:
d = os.path.expanduser(p)
if os.path.isdir(d):
os.path.walk(d, _fontwalk_darwin, fonts)
return fonts
def _fontwalk_darwin(fonts, path, files):
""" walk the path directory trees """
for font in files:
if font[-4:].lower() != '.ttf':
continue
name = font[:-4]
font = os.path.join( path, font )
bold = 0
italic = 0
_addfont(name, bold, italic, font, fonts)
(1) I needed to modify one header file so that it pointed to the
right OpenGL headers. I've attached a patch that takes care of
this. Feel free to use it. It's only a small contribution, but it
should make the life of Mac users a bit more easy.
(2) When running Soya on the Mac I found that I also needed to
install PyObjc. Without it I got bus errors. I didn't find this
dependency in the README. I'm not sure if other Mac users have
reported this (I found no mention of it), so I thought I'd just let
you know.
Kind regards,
Kris
--- Soya-0.10.1/advanced_opengl.h 2005-08-19 23:05:26.000000000
+0200
+++ Soya-0.10.1-macosx/advanced_opengl.h 2005-09-12
20:12:07.000000000 +0200
@@ -16,8 +16,13 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
*/
-#include "GL/gl.h"
-#include "GL/glext.h"
+#if defined(__MACOSX__) || defined(__APPLE__)
+ #include "OpenGL/gl.h"
+ #include "OpenGL/glext.h"
+#else
+ #include "GL/gl.h"
+ #include "GL/glext.h"
+#endif
#ifdef __WIN32__
_______________________________________________
Soya-user mailing list
[email protected]
https://mail.gna.org/listinfo/soya-user