Announcement

Collapse
No announcement yet.

maxscript & VFB problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • maxscript & VFB problem

    I'd like to make a little script to generate fast preview of a scene, and I'd like to compute/display it in a VRay frame buffer, but I can't find where max saves the bitmap it computes when I do that, for example:

    Code:
    vr = renderers.current --vray
    
    vr.output_on = true -- uses vray buffer
    
    b = render() -- renders with vray buffer
    
    display b  --gives me nuthin'
    
    vr.showLastVFB() --gives me nuthin' either...
    so where did my bitmap go??
    thanks,

    Paul.

  • #2
    try using the command "max quick render" instead of the render() function.
    Marc Lorenz
    ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
    www.marclorenz.com
    www.facebook.com/marclorenzvisualization

    Comment


    • #3
      great!
      thanks,

      Paul.

      Comment


      • #4
        There are issues with the vray FB itself.
        Using the max quick render doesn't allow for bitmap storing or retrieval, and it's dependent upon a number of settings within max (gamma and such).
        Ideally, one would use the
        Code:
        bitmap
        construct, which would allow for bit-depth and display gamma setup, and then the
        Code:
         render to:bitmap
        .
        That though seems not to work with the VRay Fb due to a max sdk limitation, if i recall right.
        Also, extra channel display has issue with the standard bitmap construct, and would need extra, tedious work, to display the rendered channels properly.
        What i did for a previewer of my own has been to try and mimick the vray FB settings, by allowing an option to change display gamma in the rendered max FB.
        Any clever trick here would be appreciated, as i lost countless hours trying to solve it more elegantly, to no avail.
        Lele
        Trouble Stirrer in RnD @ Chaos
        ----------------------
        emanuele.lecchi@chaos.com

        Disclaimer:
        The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

        Comment

        Working...
        X