Comments (4)
As said, with update to NDI 4.0, shaders are now removed. Conversion from RGBA will be done by the NDI system.
from ofxndi.
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.
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.
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)
- Issues when compiling for macOs and Linux HOT 8
- EXC_BAD_ACCESS when building for macOS (Release only, Debug works) HOT 19
- Proper way to handle multiple receivers HOT 3
- Issues with CopyMemory and unsigned __int32 on macOs HOT 10
- Memory leak on mac osx HOT 12
- macOs - freezing for about 10 seconds when NDI sender is disconnected HOT 5
- RPI 4 support (OpenGL ES 2.0) HOT 2
- ofxNDIutils, rgba_bgra and rgba_bgra_sse2 don't compile in macOS HOT 6
- README could be commented... HOT 11
- macOS errors HOT 10
- ndiSender.GetNDIversion() crashes in macOS HOT 5
- ofmain.h HOT 4
- timecode HOT 7
- should it be possible to send two NDI streams from the same openframeworks app ? HOT 2
- reference to 'byte' is ambiguous when compiling example using msys2 HOT 10
- Failing to compile latest commit on macOS HOT 9
- not working in macOS HOT 14
- error when compiling example on raspberry pi 4: undefined reference to ofxNDIutils::CopyImage HOT 8
- not working in macOS 2 HOT 2
- Trouble building example sender with MSYS2 MINGW64 on Windows 11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxndi.