I have an archviz project and need to render out multiple frames and each frame with a different combination of meshes/materials. Imagine a room with a white table and a floor.
Frame 1: White table, grey floor
Frame 2: White table, brown floor
Frame 3: White table, wooden floor
Then the table shall be changed
Frame 4: brown table, grey floor
Frame 5: brown table, brown floor
Frame 6: brown table, wooden floor
Imagine I have e.g. 20 different assets changing materials and or even meshes. A vast ammount of different combinations.
Now I wonder which mechanism might be the best to choose for this task.
Is it possible to catch an “OnBeforeRender”-Event within when the movie render queue is running, to adjust materials/meshes on the fly for each frame?
Or should I use a blueprint to switch materials/meshes and then render?
My first thought comes to lists-of-things combined against lists-of-things, which in materials-speak is Material Parameter Collections, or some jumbly blueprint array to set parameters exposed in a material instance. These would be things like scalars or 4vecs.
For textures, you can use a texture-array, and then control the 3rd UV coordinate with one of the above methods.
Just spitballing here, but I believe the above things are solid, so it then OUGHT to be just-trolling-through the various combinations. Assumedly, there are controls in BP, timelines, etc that can help facilitate this.
So, for example, you have brick, wood, and tile textures, and each is tinted 3 different ways. You can loop through the tints and in a subloop the tetures, either/or, but you get the point. Drop output at each step and you can iterate through all the combinations.
There is also an ArchViz tool that helps you do things like this. Look at TwinMotion.
Thanks a lot for your answers, I really appreciate that.
I don’t get it really until now. I wonder if you think I should use the Render Queue and then alter the scenes every frame that is being rendered or should I better go for blueprint iterating the different combinations.
My problem is NOT spawning the appropriate actors or changing textures materials. I wonder which architecture is the best for the task.
Being able to use the render queue would be great especially with regard to the new movie render graph and its possibilities.
So actually I am asking for your suggestions and guesses which way to choose might be possible and the best.