joseph.howell Posted April 25, 2016 Posted April 25, 2016 Hi, For a demo, we want to remove the background sky, weather, etc, and render a full-screen 2D quad with a texture on it to the background, with any objects in our scene drawing over the top. Is it possible to draw a full-screen quad before the rest of the scene? Thanks
silent Posted April 26, 2016 Posted April 26, 2016 Hi Joseph, If possible, the recommended approach is to use ObjectSky with cubemap. You can check samples/objects/sky_02 sample (object_sky_01 material). You also can use the same cubemap for Environment texture. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
joseph.howell Posted April 28, 2016 Author Posted April 28, 2016 We really need to draw a single texture that fills the whole screen in the background. It doesn't seem like a cubemap would be the best fit. See my other forum post here: https://developer.unigine.com/forum/topic/3846-solved-cant-get-objectgui-widgespritevideo-to-work-in-c/ That's what we're trying to do. I have tried these things: Ffp: Doesn't allow you to texture map, but does allow you to draw 2D quads. Also, stuff I draw always appears on top, even if I set the depth in the vertex. Visualizer: I don't see how to texture map with this either. Seems like it's more for just drawing debug shapes. Gui: Always shows on top. Maybe there's a way to do it with the Render or Renderer classes, but I haven't figured out how to yet. What does work is this: I use an ObjectGui and a WidgetSprite. Every frame I take the ObjectGui and transform it such that it's position is relative to the camera and so it fills the whole screen. This seems to be working well...I just wish there was a way to do this with a 2D quad instead of a 3D object that I transform.
Recommended Posts