Stretching OpenGL Base?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • i am trying to use the new opengl pack and i was hoping to have the base stretch if the window were maximized. this could be achieved with the standard abandoned opengl extension by enabling transparency, but i am unsure how to do it with the new extensions. stretching the size of the extension does nothing, so i am unsure what to do.

  • You have to update the viewport as well, you have to use luagl for this:

    gl.Viewport( x, y, width, height )

    You want to set x and y to zero and set width and height to the new window size.

  • Hi brawltaunts22
    Forum: Please login to see this link.

    Thread: Please login to see this link.

    I ask the same question and have tried different methods. Nothing worked. I also tried other ideas presented by fellow forum members.

    Marv

    458 TGF to CTF 2.5+ Examples and games
    Please login to see this link.

  • Again, use luagl, it is not hard to make a hud using it.

    After you are done rendering your 3d scene switch to orthogonal projection:

    Code
    gl.MatrixMode( gl.PROJECTION )
    gl.LoadIdentity()
    gl.Ortho( 0, width, height, 0, 0, 1 ) -- Width and height of the OpenGL window
    
    
    gl.MatrixMode( gl.MODELVIEW )
    gl.LoadIdentity()


    Then render your hud using quads.

    If you have trouble you could ask someone to make an example for you. ( I can't make one though, I don't have MMF2 on my computer. )

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!