Animated Background

Is there any way to import an animated background for example a crowd in a theatre or arena cheering. I want to save resources. In Poser, I noticed you can import a .avi onto a plain one-sided square! Is this possible in DAZ Studio 4.21? If not is there any script or third-party content available that would do the job? Cheers

Comments

  • There are a few "animated texture" scripts floating about in the store.  They're all actually a bit rubbish compared to what a native implementation would do, but they do the job.

  • You can, however, render to an image sequence as PNG or Tiff and then composite the results on top of the animated background.

  • cain-xcain-x Posts: 186
    edited January 2023

    DAZ really could use more animation friendly features. However, with DAZ scripting, there is some help there.

    I found this https://www.daz3d.com/forums/discussion/249881/timer-and-time-changing and it helped provide the foundation to create this:
    https://imgur.com/a/VHDILUS

    // DAZ Studio version 4.20.0.17 filetype DAZ Scriptvar imgr = App.getImageMgr();var tick = Scene.getTimeStep();var fr = Scene.getTime() / tick;var index = fr;if(fr < 100) index = '0' + index;if(fr < 10) index = '0' + index;var img = imgr.getImage("X:/TEMP/TEST" + index + ".png");if (!img) print("FALSE"); print('This is index ' + index);Scene.getBackdrop().setTexture( img );

    The directory needs to be filled with sequential images that are properly numbered (i.e. TEST001.png. TEST002.png, etc...). Frame 0 is blank in my case but maybe you'll find a better solution.

    You can change the script to work on any surface map. Here is one where I change the Environment Map for every frame to create the lighting effect (the model and vehicle are 3D models. The environment map are sequential images from a dash cam):

    https://imgur.com/a/mpN8M9C

    Post edited by cain-x on
Sign In or Register to comment.