Load Irradiance Map

It’d be nice if one could upload an existing IRmap file without hit the render button…I know if not critical and difficult to do it but it’d be nice!!!

this doesnt make sence; upload irmap file? where?

what he likely means is this: Say you have a saved irradiance map you want to add to. The only way to truly load it into memory is to choose from file, then render a frame from it, then you can choose ‘add to current map’ and add irradiance map info to it if you like. I also always thought it was a rather dodgy workflow.

There is a MaxScript command to do this:

renderers.current.loadIrradianceMap <fileName>

Best regards,
Vlado

good to know thanks.

O.k, I wish I knew more maxscript~

How then would I take this script and have it load an irr map from file (in to memory?) so I could 'incrementally add" to it as a netrender (so that I can make the final render dependent upon it) ?

Thanks,

Eric.

f = getOpenFileName caption:"Open Irradiance Map:" \

types:"imap(*.vrmap)|*.vrmap|All|*.*|"

renderers.current.loadIrradianceMap f

to make it usable in a net render you actually have to write the above as a .ms script file with your correct paths, and attach the script at the time of sending in the render dialog ‘Scripts’ rollout (below where you set filename.)

edit: Erics version is to select the file with a browse dialog, to use in the net render you would include in the .ms file vlado’s version

hmm, yeah, sorry missed that heu wanted to netrender

Thanks~ this will definately help in a pinch, but it would be great to have an “incremental add to saved map” drop down choice in the future, don’t you think?

Eric.