An idea revised from the MDL.spec about constants
. Instead of the user having to enter like 9 digits per constant, I have pre-made ones, that the user need not define:
[black, white, red, green, blue, pink, yellow, cyan, coolyellow, coolblue, coolpink]
(The beginning 6 are just as you expect them to be, the cool
colors are special. They use some funky math to look... cool)
mesh <color>:skyscraper.obj
DISCLAIMER: The user can still create constants as outlined in the spec file, however, I do some crazy math so I can't gurantee it'll be even remotely as they hoped the color would turn out (most tend to become white actually. If one pushes to go on and do this, then I suggest they use a dark background). In addition, the user shouldn't try to make a new constant with the same name as in the array (so far, it doesn't break, but some weird color stuff happens)
As outlined in the MDL.spec file, user has to put the <object>.obj
file in the obj_files/
directory. They can then call the <object>.obj
in an .mdl
script as:
mesh <color>:<object>.obj