[Opensim-users] Blender Exporter for OpenSim
Justin Clark-Casey
jjustincc at googlemail.com
Sun Sep 21 15:15:55 UTC 2008
Shree Kumar wrote:
> Hi,
>
> I've been working for a couple of weeks, writing an exporter from
> Blender to OpenSim. I didn't find any (most uses of Blender with
> SL/OpenSim seem to be create sculpties, is that correct?), so decided to
> write my own.
>
> OpenSim does not support meshes yet, so I made a few simplifying
> assumptions for a start.
> - I export only meshes which are cuboids.
> - I set only the position, size & rotation of the prims in the
> opensim database
> - I only export to MySQL databases at the moment.
>
> The exporter writes directly to the MySQL database - specifically the
> "prims" and the "primshapes" tables. I have been able to export scenes
> with about 8k prims. Soon expect to use it to export a scene with about
> 18k prims.
Sounds like interesting work, Shree!
>
> A few questions
> - I am not able to export texturing information since I do not know how
> to decode the "Texture" field in the "primshapes" table. Any hints on
> how to decode that field ? (pointers to the source would save me a lot
> of work!)
The Texture field is a concatenation of the texture information needed for each face of a prim. In OpenSim we rely
pretty much on the libsecondlife/libomv code to parse and manipulate this. A good initial starting point to look at
this might be in
OpenSim.Region.Environment.Modules.World.Archiver.ArchiveWriteRequestPreparation.GetSceneObjectAssetUuuids()
at about line 211 where texture asset ids are extracted for particular prims. This will let you see the relevant bits
of libomv code to look at.
> - Anybody else interested in the exporter ?
It sounds interesting to me, though my interest is a little more academic at the moment since I'm virtually never on the
content creation side of things (being completely useless in that respect). Perhaps you'd care to stick your code up on
a page somewhere and post a link / put something in the wiki?
>
> Thanks in advance
> -- Shree
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>
--
justincc
Justin Clark-Casey
http://justincc.wordpress.com
More information about the Opensim-users
mailing list