[vos-d] Terangreal OSX again

2006-03-14 Thread Karsten Otto

Hello everybody,

Good news from the Ter'angreal on MacOSX front! Well, sort of...

By accident I found the reason why terangreal (and assumedly  
wxterangreal) just get stuck when I run them on my Mac. Terangreal  
uses its own main event loop (main.cc), which emulates the functions  
of the default CrystalSpace run loop. However, on the Mac CS needs to  
use a *different* run loop, as the code in csutil/generic/runloop.cpp  
clearly states. And sure enough, there is a different one in csutil/ 
macosx/OSXAssistant.cpp.


So I changed the code of apps/terangreal/main.cc like this:

  if (terangreal->Initialize ())
  {
  /*
  while (!terangreal->wantToQuit) {
  terangreal->DoFrame();
  }
  */
  csDefaultRunLoop(object_reg);
  }

and sure enough, when starting it the "busy" spinner disappears!
I can even rotate the view by dragging the mouse!

Apart from that however, I cannot move around or anything. I assume  
Terangreal handles keyboard input etc. by itself in its custom run loop?


Still, it is a step in the right direction... But since I know next  
to nothing about CrystalSpace, and even less about WX, could someone  
more versed in these arcane arts please fix (wx)terangreal to use  
csDefaultRunLoop() ?


Thanks,
Karsten Otto (kao)

...Cross-platform development is such wonderful and fun thing to do...



___
vos-d mailing list
vos-d@interreality.org
http://www.interreality.org/cgi-bin/mailman/listinfo/vos-d


Re: [vos-d] Re: [OFF] typing

2006-03-14 Thread Reed Hedges
On Tue, Mar 14, 2006 at 03:26:28PM +0800, Lalo Martins wrote:
> Not really... you can *emulate* dynamic typing on a more static language
> like C++, but you only get dynamic typing between subclasses of a given
> root point (RefCounted in the case of VOS, IIRC).  In fact, vRef is one
> of the best implementations of dynamic typing for static languages I
> remember seeing.

This has less to do with dynamic typing than memory management... in C++ you can
dynamic_cast any object. MetaObject and meta_cast are partly ways to add more 
structure
to dynamic_cast and C++ polymorphism.

The only thing is, you have to actually cast *to* something, it's not like some
languages where you can just call a method and the object either responds or
fails to (silently or not).

Reed

___
vos-d mailing list
vos-d@interreality.org
http://www.interreality.org/cgi-bin/mailman/listinfo/vos-d


Re: [vos-d] Re: [OFF] typing

2006-03-14 Thread Reed Hedges

Well, all you'd need in a Python errorchecker like that, is to (a) make it
mandatory for the programmer "declare" member variables, then (b) parse the code
and print a warning if you use an undeclared variable. (There are other kinds of
programming errors too, of course.) Maybe such a thing exists?

On Tue, Mar 14, 2006 at 03:59:41PM +0800, Hugh Perkins wrote:
> I guess there is one other thing I like about C# compared with using Python,
> which is that once you've compiled it you know you're not going to wait for
> the application to load, start trying some command, and Boom! you mistyped a
> variable name, and the program dies...  Is there some way to force Python to
> compile everything right at the start?

___
vos-d mailing list
vos-d@interreality.org
http://www.interreality.org/cgi-bin/mailman/listinfo/vos-d


[vos-d] makehuman

2006-03-14 Thread Peter Amstutz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I had heard about this as a plugin to Blender, but in fact it is a 
standalone GPL'd C library for constructing humanoid characters:


http://www.dedalo-3d.com/index.php?filename=SXCOL/makehuman/abstract.html

This is absolutely something we want to incorporate into VOS for a future 
avatar construction kit...


[   Peter Amstutz   ][ [EMAIL PROTECTED] ][ [EMAIL PROTECTED]  ]
[Lead Programmer][Interreality Project][Virtual Reality for the Internet]
[ VOS: Next Generation Internet Communication][ http://interreality.org ]
[ http://interreality.org/~tetron ][ pgpkey:  pgpkeys.mit.edu  18C21DF7 ]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD4DBQFEFy42aeHUyhjCHfcRAhCzAJjTPsTw7N+r5aVBWvTOMtMijhgtAKCaJfXh
hLjuzYFe6v0KgGCrqswEvA==
=Wpac
-END PGP SIGNATURE-


___
vos-d mailing list
vos-d@interreality.org
http://www.interreality.org/cgi-bin/mailman/listinfo/vos-d


Re: [vos-d] Terangreal OSX again

2006-03-14 Thread Peter Amstutz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Oh good, on-topic discussion :-)

On Tue, 14 Mar 2006, Karsten Otto wrote:


Hello everybody,

Good news from the Ter'angreal on MacOSX front! Well, sort of...

By accident I found the reason why terangreal (and assumedly wxterangreal) 
just get stuck when I run them on my Mac. Terangreal uses its own main event 
loop (main.cc), which emulates the functions of the default CrystalSpace run 
loop. However, on the Mac CS needs to use a *different* run loop, as the code 
in csutil/generic/runloop.cpp clearly states. And sure enough, there is a 
different one in csutil/macosx/OSXAssistant.cpp.


Oh man.  I forgot that Cocoa was annoying like that and didn't provide a 
GetEvents() type function.  Which means Cocoa absolutely, positively must 
control the toplevel run loop and makes cooperative run loops impossible. 
I guess you should expect this kind of control freak behavior from a 
company run by Steve Jobs :-)



So I changed the code of apps/terangreal/main.cc like this:

 if (terangreal->Initialize ())
 {
 /*
 while (!terangreal->wantToQuit) {
 terangreal->DoFrame();
 }
 */
 csDefaultRunLoop(object_reg);
 }


Okay, this is probably a valid fix, provided we still have a way to quit 
:-)



and sure enough, when starting it the "busy" spinner disappears!
I can even rotate the view by dragging the mouse!


Does the entire scene load correctly?  You mentioned you were having 
problems with that before?  Also, for mouse navigation, you use the right 
mouse button (command-click in OS X I think?) to toggle between mouselook 
mode and browsing mode, and in mouselook mode the left mouse button makes 
you walk forward.  So if the mouse works, you should be able to move 
around.


Apart from that however, I cannot move around or anything. I assume 
Terangreal handles keyboard input etc. by itself in its custom run loop?


Perhaps it is failing to get keyboard focus in some way?  Does walktest in 
Crystal Space work?  All the keyboard handling in terangreal is with the 
event system provided with CS, we arn't doing anything strange.


Still, it is a step in the right direction... But since I know next to 
nothing about CrystalSpace, and even less about WX, could someone more 
versed in these arcane arts please fix (wx)terangreal to use 
csDefaultRunLoop() ?


WxTerangreal uses the Wx runloop, which should itself be implemented using 
the Cocoa runloop.  The wxgl plugin takes wx events and translates them 
into CS events.  I don't think there should be any problem there...  The 
place to start is really with the "wxtest" program in CS, which I think 
you mentioned does not work either (it should be displaying a room which 
you can move around in)?  You might want to bring this issue to the 
Crystal Space mailing list.


[   Peter Amstutz   ][ [EMAIL PROTECTED] ][ [EMAIL PROTECTED]  ]
[Lead Programmer][Interreality Project][Virtual Reality for the Internet]
[ VOS: Next Generation Internet Communication][ http://interreality.org ]
[ http://interreality.org/~tetron ][ pgpkey:  pgpkeys.mit.edu  18C21DF7 ]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEFy7JaeHUyhjCHfcRAv9mAKCTDaB+bvugUoVJ5/5DrDOjGcmG4wCbBIcp
Tendj3aXrGr9A9+I5b8Jx4k=
=2OY4
-END PGP SIGNATURE-


___
vos-d mailing list
vos-d@interreality.org
http://www.interreality.org/cgi-bin/mailman/listinfo/vos-d


Re: [vos-d] makehuman

2006-03-14 Thread Hugh Perkins
Peter,
 
This is incredibly cool. 
On 3/15/06, Peter Amstutz <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-Hash: SHA1I had heard about this as a plugin to Blender, but in fact it is a
standalone GPL'd C library for constructing humanoid characters:http://www.dedalo-3d.com/index.php?filename=SXCOL/makehuman/abstract.html
This is absolutely something we want to incorporate into VOS for a futureavatar construction kit...[   Peter Amstutz   ][ [EMAIL PROTECTED] ][ 
[EMAIL PROTECTED]  ][Lead Programmer][Interreality Project][Virtual Reality for the Internet][ VOS: Next Generation Internet Communication][ http://interreality.org ]
[ http://interreality.org/~tetron ][ pgpkey:  pgpkeys.mit.edu  18C21DF7 ]-BEGIN PGP SIGNATURE-Version: GnuPG v1.4.1 (GNU/Linux)
iD4DBQFEFy42aeHUyhjCHfcRAhCzAJjTPsTw7N+r5aVBWvTOMtMijhgtAKCaJfXhhLjuzYFe6v0KgGCrqswEvA===Wpac-END PGP SIGNATURE-___vos-d mailing list
vos-d@interreality.orghttp://www.interreality.org/cgi-bin/mailman/listinfo/vos-d

___
vos-d mailing list
vos-d@interreality.org
http://www.interreality.org/cgi-bin/mailman/listinfo/vos-d