steve3d Posted October 29, 2012 Share Posted October 29, 2012 currently GUI_ALIGN_BACKGROUND only makes this widgets a background for all other gui widgets, but what if I want to make this WidgetSpriteVideo a real background to all other 3d objects? What I want is make this Video total background and display some objects before it, and How can I do this? Link to comment
ulf.schroeter Posted October 29, 2012 Share Posted October 29, 2012 Use WidgetSpriteNode with transparency for rendering your 3D objects in front of your WidgetSpriteVideo. Link to comment
steve3d Posted October 30, 2012 Author Share Posted October 30, 2012 Well this is one solution for simple objects, what if I need a little more complex scene? Link to comment
ulf.schroeter Posted October 30, 2012 Share Posted October 30, 2012 Isn't it possible to place arbitrary complex node tree containing your more complex scene under some dummy node ? Link to comment
steve3d Posted November 1, 2012 Author Share Posted November 1, 2012 I'm afraid this is not the best way to do. Because many of these objects are created dynamically, and need intersection test... Why unigine don't support this? it's extremely usefull when creating AR applications, and have this feature is not so complex for a engine. Link to comment
ulf.schroeter Posted November 1, 2012 Share Posted November 1, 2012 Then try using ObjectGui with WidgetSpriteVideo (see UNIGINE samples_objects \ gui_00) and place it behind your other 3D objects. For constant camera-relative ObjectGui positioning the new WorldExpression::setPostUpdate() attachment functionality might be usefull (see UNIGINE samples_worlds \ expression_04) If this doesn't work for you, than I think you have to solve the problem on your own Link to comment
steve3d Posted November 2, 2012 Author Share Posted November 2, 2012 yes, I've already thought of this solution, but it still needs more tests. but it should be more easier for an engine to have this function, even stone age virtools have this.. :) Link to comment
manguste Posted November 7, 2012 Share Posted November 7, 2012 Just like Ulf advised, It's actually easier to create ObjectGui (with WidgetSpriteVideo) in the disatnce via scripts given you scene and a set of postprocesses you use. As you know, GUI is rendered after the scene. It cannot be rendered before it since any postprocess will simply overwrite the rendred image. So I'm afraid there won't be out-of-the box solution for that. Link to comment
Recommended Posts