ulf.schroeter Posted October 2, 2012 Share Posted October 2, 2012 Proposal We have to render different mask texture images both during pre-processing and runtime. It would be very conveniant to have generic 2D geometry rendering support directly within Image class for simple CPU-side procedural mask rendering. Support for some basic blending would be perfect. Something like .... Image::renderCircle( int x, int y, int radius, vec4 color, int blend_src, int blend_dest ); Image::renderPolygon( int x[], int y[], vec4 color,,int blend_src, int blend_dest ); ..... While programming such low-level 2D rendering in Unigine script is of course possible it would be much more efficent and conveniant to have it as optimized Image methods. Simple anti-aliasing of rendered mask image could use existing Image::blur() method as post-processing step. Link to comment
manguste Posted October 4, 2012 Share Posted October 4, 2012 Ulf, sorry, it's not likely we implement this. Well, if we'd had enough resources, then gladly, that's not the case :( So I'm sure you know that, but still can only recommend to draw primitives and blend them into Image. Link to comment
ulf.schroeter Posted October 4, 2012 Author Share Posted October 4, 2012 ok, no problem, we can use a work-around Link to comment
Recommended Posts