View Full Version : .max ---> .vrml

06-27-2003, 09:43 AM
We model our geometry in 3DS Max 5.0 and export to VRML.

However, the VRML objects end up being about a hundred times bigger - i.e., what is modeled as being 1 meter tall in Max ends up as 100-something meters from with Vizard.

Obviously, there's some sort of disparity in the coordinates -- while we could shrink everything we make before presenting it in Vizard, it would be nice if we could achieve a WYSIWYG (what-you-see-is-what-you-get) relationship.

Anyone else know of a workaround? :confused:

06-27-2003, 11:38 AM

I think you might have the wrong unit scale set in 3DS Max. Go to the preferences and make sure 1 Unit = 1 Meter. Try creating a simple box and set its length,width, and height to 1. I just tried that using 3DS Max 4 and it works fine.

-- Farshid

06-27-2003, 01:06 PM
OK, I made a cube.

I set its parameters to 1 meter in all dimensions. I double-checked our unit and grid settings (they are indeed in meters), and also measured the size of the box from within MAX in various other ways (don't ask - heh).

I did a File --> Export ---> VRML97, and leave all of the default settings in the dialog box that comes up.

When I load this object from within Vizard, I get the "it's way too big" problem again.

Really, this isn't surprising, because if you look at the .VRML file in a text editor, the coordinates listed are all way bigger than 1.0 (indeed, the box is mysteriously specified as exactly 39.37 meters in all three dimensions). This is about the scale we see it as when we get the "it's way too big" effect.

I'm wondering if it's something funky in Max 5's VRML conversion.

If you take the BLUECUBE.MAX file (attached) and export it to vrml from 3ds Max 4, is your resulting file the same as BLUECUBE.VRML (also attached)?

(I hate to ask you to do this, but it might help dissociate where the problem lies.)

06-27-2003, 01:22 PM
Oops. In the journey to detailing my problem, I figured it out. (Thanks for your helpfulness, though, farshid-- !)

Reading my own post, I realized that the myterious number of the cube (39.37) is special in that it is the number of inches in a meter.

Changing the cube from 1-m square to 1-inch square makes it show up as 1-m square in both the VRML and Vizard.

The bottom line:
Seems like there is a bug in Max 5.

If using 3ds Max 5, make sure the default unit in the program is set up as inches.

Treat this word "inches" as if it said "meters," and model your geometry as such.

07-08-2003, 11:31 AM
The recommended solution is to simply set your units (under the customize menu) to "generic". This prevents Max from ever trying to perform unit conversion. Its internal units appear to be inches, as you discovered, and I believe this is for historical reasons owing from its relationship to a predecessor product, Autocad.