Git Product home page Git Product logo

Comments (4)

leadedge avatar leadedge commented on July 29, 2024 1

As said, with update to NDI 4.0, shaders are now removed. Conversion from RGBA will be done by the NDI system.

from ofxndi.

leadedge avatar leadedge commented on July 29, 2024

You are right that the shader needs "#version 150". Unfortunately the "#" character interferes with the stringification. The only way around this really is to use shader source files. This can be done but not at the moment. Meanwhile you can bypass the problem by using RGBA instead of YUV when you create the sender. Then the shaders are not used.

ndiSender.CreateSender(senderName, senderWidth, senderHeight, NDIlib_FourCC_type_RGBA);

Then the NDI system does the conversion.

from ofxndi.

leadedge avatar leadedge commented on July 29, 2024

I looked into this further. Actually "#version 150\n" with the "\n" at the end is OK. I forgot about that. You will have found the stray "}" character at the end. Anyway, there seems to be a problem with the shader and I am not sure what. I don't think the coordinates are coming out right.

At the moment I am thinking of removing them. If we started with YUV without having to convert, it might be more efficient but because the conversion from RGBA has to be done sometime, it's probably just as efficient to let the NDI shaders do it.

I will look some more when I get a bit more time.

from ofxndi.

mimetikxs avatar mimetikxs commented on July 29, 2024

Yes, I remember having to remove the extra "}".

Thanks very much for your quick response, I'll use your workaround for now and see if the performance varies much with the NDI shaders.

from ofxndi.

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.