Game Development Community

Map2Dif plus questions

by Neil Marshall · in Torque Game Engine · 08/09/2005 (6:28 am) · 3 replies

I'm trying to use map2dif_plus.exe (v1.0 that was released in the foums on july 26th). I'm going from 3dsmax->glib3->map2dif and I'm having a scale problem.

I can get it to work (mostly) but my buildings come in huge. My character is 5'8" tall (~1.7m). My building, which is also done to scale is also in max. If I set the units in max to meters it says it's 15m wide which is correct. When I set the max units to "General" then it labels it as 15000 units which means it's working in mm. But if I recall the torque engine treats the general units as meters, so I have to scale the building down by setting the scale offset: world to 0.1% and that gets the general units to read 15.0 again.

But when I try to export from max it says 271 of the 300 someodd objects have their vertices too close together. What is the closest distance they can be together?

If I use a larger scale, say 10% instead of 0.1% then the building exports all the shapes, but when it imports into the world, it's like your a normal sized person in a giants house.

What scale should I be using to get this thing to export properly?

#1
08/09/2005 (3:31 pm)
If you look at the top of the .map file that GLB3 exports (it is a text file) you should see something like:

{
[b]"classname" "worldspawn"[/b]
"geometry_scale" "32.0"
"light_geometry_scale" "32.0"

The line "geometry_scale" "32.0" controls what value the geometry gets divided by before it is exported to a .dif. If this line isn't there then it will default to 1.0 which means the geometry will be larger than if it is set to 32.0. I don't have a copy of GLB3 so I can't tell if this line is there or not. You may have to add it manually before running map2dif plus on it.
#2
08/10/2005 (5:44 am)
This is the start of the file. That line isn't there and it's defaulting to 32, not 1.

// This Map file was created using Map Exporter 1.0 Full for 3ds max.
// For more information go to www.maple3d.com
{ 
"classname" "worldspawn" 
"wad" "\Sierra\Half-Life\valve\halflife.wad" 
{
( 15996 7488.03 281.507 ) ( 16015.5 7488.03 281.507 ) ( 15996 7488.03 277.443 ) defaultWhite 0 0 0 1 1
#3
08/10/2005 (6:24 am)
If I add the line, then I can get the model down to 4 max units = 1 torque meter but it didn't seem to like 2 and 1 even though it accepted them. I can't find the object in the world at all. Not even a dot with a number, it's in the side list though.

The error message for anything else is quite humerous (well I found). "Scale not a power of 2? Something wrong." <- Thats from map2dif_plus

Any other ideas as to how to get 1:1 scale?