It doesn't hurt to ask...
6 posts • Page 1 of 1
L3DT does not support terrain mesh imports in any format. To load such terrain in L3DT, you first have to rasterise the mesh data into a heightfield. This can be done in various 3rd party programs such as Blender.
First off, big thanks for this great software.
Second, as you might have guessed your getting a lot of hits from ArmAII and VBS2 people (ie users of the basic "Visitor" terrain making editor) who are looking for easier ways to create interesting & realistic terrain in Visitor and hence into ArmAII or VBS2 (both simulators has same 3d engine heritage).
So, in our terrain creation pipeline is the step of "Importing XYZ" into L3DT;
If L3DT can export the simple format, is it so hard to import XYZ?
Are we talking different file formats?
The format is very simple
Starts with X and Y with 3rd parameter as height.
Sample Sequence of 1024x1024 heightmap.
ArmAII Terrain Maker & cat herder
Right you are. I confused the XYZ format as being a mesh rather than an arbitrary point list without faces.
The updated XYZ plugin is available here [EDIT: Now included in installer; see next post].
Please note that this update requires L3DT Pro v2.9 build 4 or later, which is currently only available in the Professional flavour, and is on the downloads page now. If you are using the Standard Edition, please let me know and I will compile an installer for L3DT Standard v2.9 build 4.
Please also note that for these changes to take effect, you must re-load the plugin using the extension manager. Merely copying the file over the old plugin isn't enough this time (reason: re-loading the plugin resets the flag that indicates the XYZ format can be loaded.)
I wouldn't say "so hard", but in general it is harder to load files than save them. In this case,the exporter is ~130 lines of code, whilst the the importer is ~300. The difference is due to the fact that XYZ files don't have a header that states the map size (in pixels) or the horizontal scale, and hence I had to write a two-pass loader to guess these values. The method of guessing is correct for any files exported from L3DT, but may be in error for files exported by other programs (depending on their formatting or other quirks). I've added ample sanity-checks on the inputs just to be safe.
If you have any trouble with the plugin, please let me know.
I've included the XYZ importer/exporter with the installer for L3DT as of v2.9 developmental build 5 (15th of Jan 2011), which is on the downloads page now in all flavours (Standard, Pro and Torque).
6 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests