Including Map Files In Map Files
by Peter Wiley-Cordone · in Artist Corner · 01/07/2006 (8:01 pm) · 2 replies
I'm using Torque to create a 3d simulation of a cohousing community. I've been using a modified version of bmp2map to create scaled interrior structures for the buildings in the community. bmp2map is a utility that will take an indexed bitmap image and create a map file from it. A configuration file is used to specify what color index corresponds to different objects (walls, windows, etc) in the bitmap file.
I also have architectural drawings that locate the buildings on the land (I used this drawing to create a contour map). I've been using the book 3D Game Programming All IN One, but the book only shows creating interrior structures by manually editing the .mis file and hard coding the location of the structures. I can easily create a bitmap of the community where each dot specifies the location of each of the interrior buildings and use bmp2map to create a map file.
Is there a way to include other map files (the map file for the interrior) in map files (the map file that specifies the location of the buildings and all the other objects in the "outside" world)?
Thanks in advance.
I also have architectural drawings that locate the buildings on the land (I used this drawing to create a contour map). I've been using the book 3D Game Programming All IN One, but the book only shows creating interrior structures by manually editing the .mis file and hard coding the location of the structures. I can easily create a bitmap of the community where each dot specifies the location of each of the interrior buildings and use bmp2map to create a map file.
Is there a way to include other map files (the map file for the interrior) in map files (the map file that specifies the location of the buildings and all the other objects in the "outside" world)?
Thanks in advance.
About the author
#2
There is also another solution possible - if you are interested in that, please contact me.
02/16/2006 (12:44 pm)
Well, you could always write a pre-processor that packs the various maps into one map file, which would be not too much work to do.There is also another solution possible - if you are interested in that, please contact me.
Torque Owner Stefan Lundmark
MIS files are normal CS files in that they contain scripts which are executed when you run it.
DIF files are of a more binary-like structure, and won't mix well with a MIS.
Edit: So the answer is definatly no, unless you're planning a big rewrite. I would advise you to instead take a look at containers and zip files, to pack together all the files that you think belong to eachother.