diff options
author | gspencer@google.com <gspencer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-27 23:15:42 +0000 |
---|---|---|
committer | gspencer@google.com <gspencer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-27 23:15:42 +0000 |
commit | 05b47f7a8c5451f858dc220df0e3a97542edace6 (patch) | |
tree | a2273d619f0625c9d44d40842845ccce2eac1045 /o3d/converter/README.converter | |
parent | 5cdc8bdb4c847cefe7f4542bd10c9880c2c557a0 (diff) | |
download | chromium_src-05b47f7a8c5451f858dc220df0e3a97542edace6.zip chromium_src-05b47f7a8c5451f858dc220df0e3a97542edace6.tar.gz chromium_src-05b47f7a8c5451f858dc220df0e3a97542edace6.tar.bz2 |
This is the O3D source tree's initial commit to the Chromium tree. It
is not built or referenced at all by the chrome build yet, and doesn't
yet build in it's new home. We'll change that shortly.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17035 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/converter/README.converter')
-rw-r--r-- | o3d/converter/README.converter | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/o3d/converter/README.converter b/o3d/converter/README.converter new file mode 100644 index 0000000..77fdd0a --- /dev/null +++ b/o3d/converter/README.converter @@ -0,0 +1,51 @@ +The converter is a command line utility that will convert from COLLADA +to the form that the sample JavaScript scene loader (in +samples/o3djs/serialization.js) can read. + +It is able to read COLLADA files as either DAE text files (and +associated asset files in subdirectories), or as part of a ZIP archive +(or KMZ file). It outputs a gzip-compressed tar archive (.tgz) which +contains a JSON file and any associated assets (textures, shaders, +etc.) from the source COLLADA model. By default we don't use the .tgz +extension, as it can cause problems with some webservers; we put .o3dtgz on +instead. + +In order to run the converter on Windows, you need the DirectX SDK installed. +Installing it requires administrator privileges. You can get it here: +http://msdn.microsoft.com/en-us/library/bb219737(VS.85).aspx. + +The command line arguments are as follows: + +Usage: o3dConverter.exe [--base-path=<path>] + [--up-axis=x,y,z] + [--no-condition] + [--pretty-print] + <infile.dae> [ <outfile> ] + +--base-path=<path>: This specifies the path elements to remove from + the beginning of the filenames placed into the + .o3dtgz file (to avoid including sensitive paths in + the .o3dtgz file). + +--up-axis=x,y,z: This specifies the up-axis for the resulting model, + if you wish it to be different from the axis in the + COLLADA file. + +--pretty-print: This simply formats the JSON file in the resulting + .o3dtgz file to be human readable, instead of compacted + into one line. + +--no-condition: This will prevent conditioning of the shaders from + COLLADA form to the form expected by O3D. [This is + useful only for pre-release data conditioned before + the converter existed.] + +<infile.dae|infile.zip|infile.kmz>: This is the input file in one of + ZIP, KMZ, or DAE formats. The + DAE format expects to find assets + relative to the .dae file. + +<outfile>: An optional argument giving the name of the + gzip-compressed tar archive output file. By default + this has the same basename as the input file, and has the extension + .o3dtgz. |