Jump to content

[SOLVED] Image 2D rendering support


photo

Recommended Posts

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

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
×
×
  • Create New...