Rendering MoI Models

 From:  RobertH
7145.27 
Hi guyver (DAVGIAN)

re: Toolbag2 looks great, it would be great to have a MOI AppLink or something else.

Marmoset Toolbag2 makes excellent renders, it's fast (like instantaneous, though I've not tried it on large models), relatively cheap, and easy to use. You can render out in lots of different sizes. The turntable animation display feature is great, with object, sky and camera automated rotation at different speeds, plus it can generate a series of captures, so you can create a video. There are 25 materials included and you can make your own using Photoshop, Substance Painter, etc.

It's really easy to move a model from Moi to Toolbag2, just same your model once as a regular Moi file, save out as an OBJ file, and import the mesh into Toolbag2. You can then make changes in Moi, delete the item in the Toolbag2 scene tree and re-import the mesh. To make this process faster I save the OBJ file from Moi in a single keystroke with no dialog box, see below. Also when importing a mesh, if you keep the import mesh dialog box sorted by date, your Moi model will always be the first item in the file list. It takes like 3-5 seconds to do.

A couple of downsides to Marmoset. It does not support a 3D mouse. On large monitors the UI is tiny.

Note that if you want different materials on separate parts of your model don't union/join them together in Moi, and give them a different name in the Object list, or don't name them at all. Applying a material to a model is just drag and drop.

====================

Michael put together a keyboard shortcut script to save out an OBJ file in a single key stroke with no user dialog (make sure to save your model once because it needs a current file name to work):

script: /* SaveAs OBJ no dialog */ var name = moi.geometryDatabase.currentFileName; if ( name != '' ) { moi.geometryDatabase.saveAs( name.substr(0, name.length-3) + 'obj', 'NoUI=true' ); }

Look at this discussion for setting the various SaveAs parameters: "File Scripts" 7119.1

I've used the following settings with great results and assign it to a function key:

function DoSaveAsObj() {
var name = moi.geometryDatabase.currentFileName;
if ( name != '' ) {
moi.geometryDatabase.saveAs( name.substr(0, name.length-3) + 'obj',
'NoUI=true;Output=quads;Display=shadedwithedges;Weld=false;Angle=3;MaxLength=3;MaxLengthApplyTo=curved' );
}
}
DoSaveAsObj();


Here is that function as a single line script:

script: /* SaveAsObj no dialog */ var name = moi.geometryDatabase.currentFileName; if ( name != '' ) { moi.geometryDatabase.saveAs( name.substr(0, name.length-3) + 'obj', 'NoUI=true;Output=quads;Display=shadedwithedges;Weld=false;Angle=3;MaxLength=3;MaxLengthApplyTo=curved' ); }


HTH

EDITED: 30 Dec 2014 by ROBERTH

Image Attachments:
Size: 224.5 KB, Downloaded: 147 times, Dimensions: 684x716px
Size: 126 KB, Downloaded: 36 times, Dimensions: 816x1025px