Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Software Render to Texture  (Read 2453 times)

0 Members and 1 Guest are viewing this topic.

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Software Render to Texture
« on: July 12, 2012, 04:22:07 pm »
Currently there are problems with hardware render to texture, does anyone tried to implement a software renderer ?
It's is important to support old cards. Something like prerender text on textures (localization), or else. Perfomance is not important.
Any ideas ?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Software Render to Texture
« Reply #1 on: July 12, 2012, 04:27:46 pm »
Old cards don't need software rendering to support render-to-texture. SFML has a fallback which uses hardware acceleration in case the optimized technique is not supported, and which is supposed to work for any card that supports OpenGL 1.1.

The problem is that some cards pretend to support the optimized technique, but all we get is a buggy behaviour. The solution might be to force them to use the fallback.
Laurent Gomila - SFML developer

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: Software Render to Texture
« Reply #2 on: July 12, 2012, 04:31:58 pm »
is it possible to force the old technique ?

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: Software Render to Texture
« Reply #3 on: July 12, 2012, 04:40:55 pm »
this is what we need to change ?
    if (priv::RenderTextureImplFBO::isAvailable())
    {
        // Use frame-buffer object (FBO)
        m_impl = new priv::RenderTextureImplFBO;
    }
    else
    {
        // Use default implementation
        m_impl = new priv::RenderTextureImplDefault;
    }
 

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Software Render to Texture
« Reply #4 on: July 12, 2012, 07:27:47 pm »
Yes, you can test the fallback quickly by forcing the code to use the RenderTextureImplDefault class.
Laurent Gomila - SFML developer

 

anything