• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

.sm creation

Pat Pattle

SOH-CM-2025
.sm model creation. (These are what the game used for the autogen scenery - trees, houses etc)

Does anyone remember/know how to do this? I have the sdk tools but can't get it to work. :(

Thanks

Pat

These are the words from the SDK docs;

mksm tool


Converting an M3D to a scenery model is done using the mksm tool, located in the Tools subfolder. The usage for this tool is as follows:

usage: mksm out.sm model.m3d texture_path sheet.dds [fReverseWinding 0/1]

out.sm – the output file; the extension is SM.

model.m3d – the input file.

texture_path – the path to textures referenced by the model. Textures are loaded during the conversion process to retrieve some data. This path ensures they can be loaded.

Sheet.dds – The name of the texture sheet to which the textures will be added. All of the textures used by all scenery models are placed on one or more texture sheets.

fReverseWinding – A flag to reverse the triangle winding order. This should be unspecified (false).
 
Hi

I've asked Pat about this but he hasn't been able to convert any sm models yet.

Is there anyone that knows how to do it? :confused:

Is it possible to copy a SM model to use it as another model and changing its skin to get some more variety in the landscape?

If it is, how is that done?

:ernae:
Cheers

vonOben
 
Clive

Check out the team forum. If you like, send me the files and I will try some different variations of the batch file command line. It is either the reverse winding entry or the path to the textures which is not right.
 
Back
Top