Hello,
I am using 2 RenderView shader materials inside of a scene with a 3d object to map dynamic pages onto a 3d book. The individual page scenes have DataLinq'd materials and text, and they are each in their own 720x720 scenes. The final scene uses 2 Materials that use those page scenes are render views, and it works fine when taking the scene. All the DataLinq'd materials change.
However, when previewing this final scene, it does not reflect any changes made to the original pages unless those pages are individually previewed or taken. Due to this, I am unable to preview the final scene properly.
I tried a script like this in the OnPreviewRender tag, and it worked on another project with smaller render views, but it did not work in this case, and the preview lagged when selecting it on the sequencer.
dim VS_Left_Page as xpScene
dim VS_Right_Page as xpScene
dim Image as xpImage
Engine.GetSceneByName("VS Left Page", VS_Left_Page)
Engine.GetSceneByName("VS Right Page", VS_Right_Page)
VS_Left_Page.RefreshDatalinqs
VS_Left_Page.Prepare
VS_Left_Page.GetRenderedFrame(0,720,720,Image)
VS_Right_Page.RefreshDatalinqs
VS_Right_Page.Prepare
VS_Right_Page.GetRenderedFrame(0,720,720,Image)
Does anyone have any thoughts on how to properly get previews from RenderView materials without actually taking/previewing the source scene?
Thanks a lot