[Flightgear-devel] Re: Nasal in scenery object XML files
* Melchior FRANZ -- Wednesday 01 March 2006 15:04: > FYI: I've now added Nasal support for scenery objects to my copy of > sg & fg. [...] > The required changes for sg & fg are minimal, but because of the > nearing release I better send the patches for review after the > release. Curt has given permission to commit that now. It's comparatively trivial and well tested. I don't expect problems. If you run into one, please tell me. The Nasal scripts are now and . They are executed for all OBJECT_STATIC and OBJECT_SHARED. But note that only OBJECT_STATIC are removed from the scene graph when they are "out of sight", so better use no or very short and inexpensive Nasal code in OBJECT_SHARED objects. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Nasal in scenery object XML files
* Josh Babcock -- Wednesday 01 March 2006 15:39: > Can you make a patch available for those of us that want to experiment > with this? http://members.aon.at/mfranz/nasal-scenery.tar.gz [3.7 kB] How it works - the model loader has another arg: a pointer to an ssgBase derived SGModelData class - if !0 then its load() method is called - only the caller of scenery models sets such a class: an SGModelData derived FGNasalModelData class - the tileloader sets a bool for OBJECT_STATIC for the modellib loader, so that those can be excluded from the cache map I've changed the behavior a bit after Andy's suggestion. I'm currently using two properies and (could be changed to and -- I just found "on-unload" hard to pronounce. ;-) New example: helipad.ac loaded = 1; print("Hello, I'm the helipad!"); var f = func { if (!loaded) { return } print("I'm still there!"); settimer(f, 5); } f(); loaded = 0; print("Bye, bye!") noshadow helipad --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Nasal in scenery object XML files
* Andy Ross -- Wednesday 01 March 2006 18:44: > Which can do it all from Nasal with just a single line. And defining > it as the "second
[Flightgear-devel] Re: Nasal in scenery object XML files
* Roberto Inzerillo -- Wednesday 01 March 2006 16:52: > Is there any chance we can get a nasal-modified binary for Win platform to > play with as soon as something works in an acceptable stable way? It is stable. It's just the pending release that keeps me from submitting. But if it'll take a while to fix the remaining JSBSim aircraft configs, then we can as well apply it now. :-) Don't know about Win binaries. I'm not releasing any builds, and if I would, then they'd be for Linux. To Josh: I'll offer a patch later today. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel