Menu

Dynamic Texture demo

Help
Daniel
2019-10-24
2021-03-01
  • Daniel

    Daniel - 2019-10-24

    Hi everyone!

    This may be a stupid question, but I simply don't understand.
    Why is the texture being drawn in a directOpenGL object render and not in a simple procedure?
    I don't really understand the TGLDirectOpenGL object. Why is it needed in this demo?

    Thanks in advance!!
    Daniel

     
  • Jerome.D (BeanzMaster)

    Hi Daniel

    It's just a trick DirectOpenGL is directly synchronizing with the TGLCadencer of the scene so on each frame the image is changed. Instead tou can try to do the same directly in TGLCadencer.Progress event like in the TexAnim sample and see the difference with the performance ;)

     
  • Daniel

    Daniel - 2019-10-25

    Hi Jerome!
    I see! Thank you for the answer!

     
  • João Santos

    João Santos - 2021-03-01

    Hi!

    I'm having some problems when applying dynamic textures in my project. I'm getting an External SIGSEGV on FPBO.Bind. So I tried Jerome's idea that instead of using DirectOpenGL to update the texture, to use TGLCadencer.Progress. Wen I run this I get a SIGSEGV on CurrentGLContext.GLStates.TextureBinding[0, LTarget] := TGLTexture(OwnerTexture).Handle;
    called by img.BeginUpdate;

    I'm pretty sure I'm missing something like setting a context, but I'm not sure exactly what or how to correct it. Any idea? Did you guys Daniel or Jerome tried to avoid DirectOpenGL?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.