diff options
author | rodri <rgl@antares-labs.eu> | 2024-09-30 15:10:57 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-09-30 15:10:57 +0000 |
commit | 470b40da76046fdd1ea0de2c0f020aac99d9a9d4 (patch) | |
tree | a7deba563c5da4047017c1fccfd890f941505a79 | |
parent | dc22333ad0e9995852ffdabf3f2bc8bfe914e241 (diff) | |
download | 3dee-470b40da76046fdd1ea0de2c0f020aac99d9a9d4.tar.gz 3dee-470b40da76046fdd1ea0de2c0f020aac99d9a9d4.tar.bz2 3dee-470b40da76046fdd1ea0de2c0f020aac99d9a9d4.zip |
readme: add an obj to model(6) conversion guide.
-rw-r--r-- | readme | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -110,3 +110,30 @@ CUBEMAPS helper script (conv) available in each of them. % for(d in cubemap/*)@{ cd $d && conv } + +MODEL CONVERSION GUIDE + + Some of the models that come with the repo (mdl/) were already converted + from OBJ to model(6), but many remain untouched. To convert an OBJ model + into its model(6) counterpart run the following: + + % $O.obj mdl/goku/goku.obj mdl/goku + + You can also create a temporary folder to hold them while you work with them: + + % ramfs -p + % mkdir /tmp/goku + % $O.obj mdl/goku/goku.obj /tmp/goku + + If the model is made out of multiple files, like in mdl/vivi/, you have to + convert the different .obj files one by one. Each will create a main.mdl + that you need to rename; here's an example script to automate the process: + + % for(o in mdl/vivi/*.obj){ + $O.obj $o /tmp/vivi + mv /tmp/vivi/main.mdl /tmp/vivi/`{basename $o .obj}^.mdl + } + + Then you should be able to visualize them as usual: + + % $O.vis /tmp/vivi/*.mdl |