On Thu, 2011-02-17 at 17:03 -0800, CecilBergwin wrote: > bit incomplete still" but we still managed to get our scene from > Taiga>Backup>PythonScript>Tundra in the method you said wohoo :). (...) > textures were there, I think most of our meshes were there, however > "position" "scale" "rotations" were all over the place for objects but > surely thats down to what you mentioned above in regards to "Is a bit > incomplete still".
I completed the conversion script (for now) by adding scale and rotation, which was the hard part as it needed the right kind of quaternion-to-euler conversion. I copied what the dotscene import in Tundra does. I'm not entirely sure the rotations all totally perfect, but must be pretty correct in some way at least 'cause this seems quite right: old nice realxtend demo scene, beneath the waves, in the new tundra server http://imagepaste.nullnetwork.net/viewimage.php?id=1872 i was mostly checking from how the fish statue is orientated relative to the dome. Jonne had earlier saved the Beneath the Waves scene with the 'opensim backup tool' in Naali with all the assets, and I put those to www.realxtend.org and this conversion too, so you can now say this to open it in your server: server.exe --file http://www.realxtend.org/world/BeneathTheWaves/BeneathTheWaves.txml It is also in the Naali git repo (tundra branch) scenes/TaigaExport/ directory so in later releases (was not in 1.0.3 yet) you can click the file there to open it. Only the scene file is there, with http refs to all the data. This conversion is far from perfect, but if someone wants, feel free to restore more of the actual scene by adding a waterplane, terrain etc. to the scene like it was in the original and send in patches :) I renamed the tool to taiga2tundra.py as that's what it can be used for now, is in tools/ directory in the git repo. Am trying a new naming strategy where don't try to say what something is, but communicate what it can be used for :) (even though the name could be technically incorrect some day, for example if opensim/taiga starts to support the pure EC model so that the same txmls work). There is one issue we encountered: old rex scenes authored with the Linden based client can use a feature called Scale To Prim for meshes, which fits the mesh geom to match the bounding box of the prim it is attached to. There is no way to know this size in that conversion script. I now tag those object by adding a DynamicComponent called ScaleToPrim, so if necessary at some point, we can use some script in Tundra to do the scaling for those objects when importing a scene. 33 of the 454 objects in Beneath the Waves use that feature. One thing I noticed was that the ship from the end of the game didn't seem to be there, probably it uses that scaling trick so was so small that I didn't see it. I don't know if there are any other relevant scenes made with the old rexviewer for which this conversion would be useful, do tell if you'd need this and if it already works for you etc. Didn't take that many hours to write to this point, so I'm already happy that it gives this much of Beneath the Waves, can be used for some TOY things, and hopefully rescues Cecil's friend too :) .. Having scenes as txmls is just so nice somehow, can so easily launch a server to view and work on them (though OARs with opensim are nice too and even support the same open-from-url feature btw). ~Toni -- http://groups.google.com/group/realxtend http://www.realxtend.org
