VRay RT for Animations

We have a big animation coming up and was wondering whether anyone has used RT successfully for the preview aspect of animations with moving objects ?

I should probably do a bit more research on this but, can RT render over a network ?

It can render via DR but not backburner, as far as I know. I used to make previews with fprime. They were grainy as hell but blew any viewport preview out of the water in terms of motion and lighting evaluation. Combine that with a properly rendered every 10th (or so) frame and you have yourself a good preview :slight_smile:

But to answer your question, I don’t know how you achieve this in VRayRT.

I think a “time” feature is going to be added to VRayRT in the near future to make animations possible (dont quote me on that though :slight_smile: )

It is possible to set something like this manually through a MaxScript that waits for a while, writes the ActiveShade output and then advances the time slider.

Best regards,
Vlado

Is this script available now?

Vlado, do you have a sample script to do this?

Nope; I don’t have a script ready - I just know people that have done it.

We will definitely include something like that for the next update though.

Best regards,
Vlado

Those how had done that script, if you have a heart, could you please share those scripts, would be wonderful :slight_smile:

Re script for animation…?

Is it available for use please?

Help would be appreciated.

Thank you

phil

Here is the script that I used; you will probably want to modify it for your needs:```
rollout test “RT Animation” (
timer clock “rtClock” interval:5000 --tick once every 5 seconds

local cframe=animationRange.start

label Frame “—”

on clock tick do (
b=vrayGetRTBitmap()
b.filename=“c:/temp/test” + (formattedPrint ((cframe as integer)/160) format:“04i”) + “.png”
save b
cframe = cframe+1f
Frame.text = cframe as string

if (cframe>animationRange.end) then DestroyDialog test

sliderTime=cframe
)
)

fn rtAnimation=(
sliderTime=animationRange.start
createDialog test
)


Best regards,
Vlado

Vlado

Thank you , but I am thick, so…

I have copies the script into a new script file, saved it to my Script in the root autodesk folder.

Under scripts in the rt dropdown, I have tried it in both pre and post render, and nothing appears in the folder I created on my C drive under temp and test.

I have run the short animation I have and don’t see anything appearing ?

I presume i will have to compile the .png files in another programme or max video post, when I get it to work.
Can you tell me what i am doing wrong please.

If this works it will be great, thank you again.

phil

Just paste this into a new script; press Ctrl+E to evaluate it, start the V-Ray RT render and wait until it has loaded the scene and is rendering; then open the MaxScript listener and type rtAnimation()This will cycle through your animation and wait for 5 seconds for each frame (the 5000 number in the script) and will create .png files in the c:\temp folder. You can reassemble these files either with a compositing application, 3ds Max Video Post, or simply the 3ds Max RAM Player.

Best regards,
Vlado

Thank you again.

It would not work untill I removed the space between the RT Animation on the top line of the Main script.
It works very well, thank you very much.

many thanks, and from the one of the people who programme the software, it is an excellent service.

phil

Hi Vlado,
Thanks for posting that script. I was trying to test it out but I get an error on this line

b=vrayGetRTBitmap()

I have tried the script with a windowed activeshade aswell as in viewport. Is there anything I might be doing wrong ?

thanks
p.

You will need V-Ray RT SP1 for this to work; the original build does not have this command.

Best regards,
Vlado

Thanks, I had a feeling that might have been the case… am upgrading now :slight_smile:
joys.

Thanks again.
p.

That’s a great script!!! :slight_smile:

But when I tried it, every 6th frame was left out.
At first, I thought it was because the computer had no chance to save the renderings to disc within 5 seconds. But the same thing happed with a 10 second rendertime setup. :-/

What is your frame rate? The script is written for 30 fps, if you use anything else, it might break (you will need to adjust the “160” number, which is used to get the current frame).

Best regards,
Vlado

Aha. I am using 25 fps. So I need to tweak that “160”, right?

Ok, I’ll try that tomorrow. Thank you Vlado! :slight_smile:

The “160” number is calculated by 4800/fps, so if you use 25 fps, it should be 4800/25=192.

Best regards,
Vlado