Page 1 of 1

Cross post - questions about MXED previews

Posted: Wed Mar 19, 2008 5:45 pm
by mtripoli
Hi JD,

THis is a cross post. I'm behind on a couple of renders and need this info. No one seems to know in the other forum...

http://www.maxwellrender.com/forum/view ... hp?t=27655

Thanks for your help!

Posted: Wed Mar 19, 2008 6:34 pm
by JDHill
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

Posted: Wed Mar 19, 2008 7:52 pm
by mtripoli
I'll do a "Pck and Go" (I think) and send it to you...

Thanks...

Posted: Thu Mar 20, 2008 8:16 pm
by JDHill
Here ( http://www.maxwellrender.com/forum/view ... hp?t=27678 ) is a somewhat-unrelated case of a preview malfunction, let me know if it helps here at all. If not, doing pack-and-go will not be enough, I'd need to look at the .mxs as-is.

JD

Posted: Wed Mar 26, 2008 4:27 pm
by mtripoli
Hi JD,

I've sent you an email with a zip attached. It's the MXS with the supporting components. I rebuilt the scene from scratch using new MXM's just to be certain. You'll see there is two emitters, the object (assigned preview.mxm) and a box around them. When I choose the the resulting MXS as my preview it crashes MXED.EXE.

Thanks for your help.