mtripoli wrote:I'm making a preview window of my own... A couple of questions...
1.) Currently, if I have one object only (with a preview.mxm). I render to the "mypreview.mxs" and it works fine; I can choose it in MXED and the test MXM applied and everything is fine. However, if I have more than one object (a back wall with a checkerboard pattern) and try, it crashes MXED.exe. I don't understand this as the other previews have a "scene" as well as emitters. Is there something about creating a preview scene? Paths? ??
2.) When creating a preview do emitters "work". If I have an object, say a sphere with an emitter in it (with a small "gap" between the sphere and the emitter so the normals are correct) does the emitter in the sphere effect the MXM being created?
3.) When creating a preview MXS can you use all the same settings as a "normal" render i.e. use Multilight?
1. seems curious, I would need this .mxs to try to figure out what's happening there
2. how it works is simple: preview scenes are just .mxs files with a material named 'preview'. When one is used by MXED or a plugin, all that happens is that it is opened, and the material named 'preview' is overwritten with the target material, then it is saved again. After swapping in the new material, the file is rendered (the plugin uses mxcl.exe), no differently than if you did so yourself. So, if your scene has a pre-existing emitter, as long as it's not named 'preview', it will still be there and active when you use this .mxs as a preview scene
3. I suppose so, but I don't see how you'd control it while rendering a preview. As I indicated above, there is nothing special about a preview .mxs, except for the carefully-named 'preview' material