cinetec_tech Posted September 11, 2014 Posted September 11, 2014 hi: in the Render::renderImage2D function there is a bug . need change to renderViewport(projection,modelview,materials,player->getViewportMask(),player->getReflectionMask(),1); otherwise the viewport mask won't work thanks
silent Posted September 12, 2014 Posted September 12, 2014 Hi, I'm afraid this is not a bug. There is no player in Render and there is no possibility to pass player parameters inside renderImage2D. Could you please describe more precise what you want to achieve? Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
cinetec_tech Posted September 12, 2014 Author Posted September 12, 2014 we need using the renderimage2d with all viewport mask and reflection mask feature.
unclebob Posted September 15, 2014 Posted September 15, 2014 Hi there! engine.render.renderImage2D function is supposed to render all visible objects, so there're no such things as player and viewport/reflection masks. If you want to use that features, use WidgetSpriteViewport instead: https://developer.unigine.com/en/docs/1.0/scripting/library/gui/class.widgetspriteviewport
yang.zhang Posted September 17, 2014 Posted September 17, 2014 Hi does the widgetspriteviewport support customize viewpoer size like the way renderimage2d does?
unclebob Posted September 17, 2014 Posted September 17, 2014 Hello! Yup, use setTextureWidth and setTextureHeight for texture resolution. Also, you're able to pass physical width and height of viewport in its constructor.
Recommended Posts