GithubHelp home page GithubHelp logo

GL 3 + 4 support about syphon-framework HOT 12 CLOSED

syphon avatar syphon commented on September 17, 2024
GL 3 + 4 support

from syphon-framework.

Comments (12)

bangnoise avatar bangnoise commented on September 17, 2024

Yo - no core profile support yet. 3rd-party forks include

https://github.com/insidMWM/Syphon-OpenGL-3.2-core/
https://github.com/GameClay/syphon-framework/

Obviously support is on our todo list...

from syphon-framework.

casey avatar casey commented on September 17, 2024

Gotcha, thanks a bunch for the links!

from syphon-framework.

bangnoise avatar bangnoise commented on September 17, 2024

What needs to be done:

  • Client - minimal changes
  • Server
    • split GL code into a separate class, of which a suitable subclass is created depending on the GL version of the context used to create the server
    • subclass for Legacy profile
    • subclass for Core profile (single for 3 + 4?)

from syphon-framework.

vade avatar vade commented on September 17, 2024

👍 !@!@#

We should also think heavily about we pass textures in / out. We might want to offer an FBO BLIT possibility for both Legacy and 3&4, so you can bind an already existing FBO that the app has, and blit it to Syphon (this is a faster mem copy and doesnt involve the actual rendering /rasterization pipeline to my knowledge), and possibly offer an FBO Blit for the client as well.

In theory those passes could improve performance as well as offer GL 2 Legacy and GL 3/4 Core Profile support in a single API.

Of course we leave the legacy API intact.

from syphon-framework.

bangnoise avatar bangnoise commented on September 17, 2024

Ya sure FBO blit, given it its own issue #14

from syphon-framework.

rsodre avatar rsodre commented on September 17, 2024

Hi guys! Any news on this? I finally took courage to delve into GL3.
Looks like GL_TEXTURE_RECTANGLE_ARB has limited support on GL3, and GL_TEXTURE_2D accepts NPOT textures. Do you see Syphon going for GL_TEXTURE_2D, at least client-wise?

from syphon-framework.

vade avatar vade commented on September 17, 2024

IOSurface only supports texture rectangle last I checked so internally rect support need - :)

://:; mbl.dev.

On May 16, 2015, at 12:43 PM, Roger Sodré [email protected] wrote:

Hi guys! Any news on this? I finally took courage to delve into GL3.
Looks like GL_TEXTURE_RECTANGLE_ARB has limited support on GL3, and GL_TEXTURE_2D accepts NPOT textures. Do you see Syphon going for GL_TEXTURE_2D, at least client-wise?


Reply to this email directly or view it on GitHub.

from syphon-framework.

pizthewiz avatar pizthewiz commented on September 17, 2024

@eromanc's fork is said to support both legacy and core profile too.

from syphon-framework.

vade avatar vade commented on September 17, 2024
  • - finish the state capture and restore code path
  • - performance analysis on the shared context
  • - performance analysis on state capture vs no capture

from syphon-framework.

bangnoise avatar bangnoise commented on September 17, 2024

work in progress in core-profile branch

from syphon-framework.

bangnoise avatar bangnoise commented on September 17, 2024

I cannot measure a performance penalty using a shared context and switching to it. I very much favour this as an approach as we needn't interfere with caller state. I would propose that all our GL work is done in the shared context with the exception of -bindToDrawFrameOfSize: and -unbindAndPublish - these would affect the caller's context, but only the FBO binding (which would be bound to the default 0 framebuffer on unbind). All preparatory work to build our FBO and attachments would be done in our private shared context. In the case of -publishFrameTexture:... we would switch to our private context prior to the bind/unbind, so no changes would be made in the caller's context.

Unless @vade or anyone has objections I will go with this and perhaps feedback from testers will affect the final decision on this.

from syphon-framework.

bangnoise avatar bangnoise commented on September 17, 2024

Closing this as it's merged to master - alpha release is available, will move to final release soon unless any issues pop up.

from syphon-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.