Notifications
Clear all

[Closed] Putting an image in the regular VFB

So I can use this call:

display <bitmap>

to open a vfb with my bitmap. But I want to add the bitmap to a vfb that has all of the extra features of the vfb you get when you press the “Render Frame Window” button on the toolbar.

I feel the answer is somewhere in C:\Program Files\Autodesk\3ds Max 2014\stdplugs\stdscripts\VFB_methods.ms

but that code is a little over my head. Anyone know how to accomplish this? Thanks.

  • Neil
6 Replies

Why not use the render() method and render it to your bitmap? you can turn VFB on.

render camera:(yourCamera) to:(yourBMP) vfb:on

Because I don’t want to render the camera, the bitmap I want to place in the vfb is a bitmap I previously saved to disk.

  • Neil
 lo1

If that API existed maybe my life would have been easier.
VFB_Methods.ms deals entirely with updating and managing the VFB extension rollouts, like the MR quality controls or view/region/etc. selection.

You can load an image programmatically into VFB+ if that helps.

Thanks, if you couldn’t figure it out, then I am probably doomed

  • Neil
 lo1

The annoying thing is that IMaxBitmapViewer has a SetImage method, but there’s no way I can find to get a reference to the main VFB as an IMaxBitmapViewer, only to create a new one.

In Vray FB, you can open only *.vrimg files.
In order to get such type of files, you have to save such files at every render.
to turn it on, you should enable “Render to V-ray Raw Image File” in Vray::Frame Buffer tab and show a path where they will be saved

.output_saveRawFile – true or false in maxscript
.output_rawFileName