Results 1 to 10 of 10

Thread: Render into Texture

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Correct rendering into texture

    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:


    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:


    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:
    Last edited by Andru; 21-02-2011 at 01:09 PM.

  2. #2
    Sorry but I can't stand and not to post in this thread.
    This interesting bug, Andru mentioned above, is really like second picture. Gray penguin (OMFG). I add from myself, that if rendertarget will be transparent and non black (green for example), then penguin will be green too(ZOMGF)!
    So Andru knew, but I anyway post my result after modification of sourcecode to avoid this "effect" (thanks Andru for idea):
    Theory is - when you know everything but nothing works.
    Practice is - when all works, but you don't know why.
    We combine theory and practice - nothing works and nobody knows why

  3. #3
    You propably mean of what happens when rendering a transparent image to uninitialized rendertarget?

    Haven't added FBO or RenderBuffer to Next3D yet but *note to self*: Use this when time comes http://www.songho.ca/opengl/gl_fbo.html

  4. #4
    Quote Originally Posted by User137
    You propably mean of what happens when rendering a transparent image to uninitialized rendertarget?
    Nope... this "problem" with uninitialized rendertarget is for children

    Quote Originally Posted by User137
    Here is no solution for problem above.

  5. #5
    Quote Originally Posted by Andru View Post
    Here is no solution for problem above.
    No but maybe solution to problem of how to render into texture

  6. #6
    Looks perfectly fine here (Gen2)
    Attached Images Attached Images

  7. #7
    Could it potentially a lighting issue? In other words, "neutral" illumination vs "full bright"?

    Just venturing a guess...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •