Andru
21-02-2011, 12:30 PM
I want to share with you some interesting fact about rendering into texture in different engines/libraries/etc., and I want to test some of them, which are you using(Andorra2D, Asphyre, Phoenix, whatever else, except ZenGL and quad-engine, because I know how they works :)).
So, here the only needed resource:
http://zengl.org/tmp/test01_render_target/tux_stand.png
Here the step-by-step operations for reproducing "interesting" effect:
- create window with size 256x256
- create and set current Render Target, which must be absolutely transparent(color - 0, alpha - 0)
- render white rectangle with size 256x256 and alpha equal to 255
- render penguin(size - 64x64) in coordinates 96, 96(or just in center - 128,128 ) with normal blending
- switch to scene
- render content of Render Target using normal blending mode
At the end you must get something like this:
http://zengl.org/tmp/test01_render_target/result.png
Attach your screen here and describe which engine did you use. Most of engines(I think so) will show you little bit grey penguin instead of "cute and white" :) Like this:
http://zengl.org/tmp/test01_render_target/result_bad.png
So, here the only needed resource:
http://zengl.org/tmp/test01_render_target/tux_stand.png
Here the step-by-step operations for reproducing "interesting" effect:
- create window with size 256x256
- create and set current Render Target, which must be absolutely transparent(color - 0, alpha - 0)
- render white rectangle with size 256x256 and alpha equal to 255
- render penguin(size - 64x64) in coordinates 96, 96(or just in center - 128,128 ) with normal blending
- switch to scene
- render content of Render Target using normal blending mode
At the end you must get something like this:
http://zengl.org/tmp/test01_render_target/result.png
Attach your screen here and describe which engine did you use. Most of engines(I think so) will show you little bit grey penguin instead of "cute and white" :) Like this:
http://zengl.org/tmp/test01_render_target/result_bad.png