descala
Topic Author
Posts: 15
Joined: 19 Sep 2013, 20:11

Best practices for grayscale live video?

10 Jul 2014, 04:05

Hi, we have a live video feed we'd like to render in our GUI. The frame size is 640x480 and the pixel format is L8. While searching around on the forums, I saw a reference to a dynamic texture capability, but am not sure about the state of its implementation. Currently, what is the fastest and computationally cheapest way to get my video rendered in a noesis control?

This is Noesis + Ogre, C++.

Thanks!
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: Best practices for grayscale live video?

11 Jul 2014, 00:33

Hi Diego,

The best way for this is that you handle the texture (creation, updating) on your side and wrap it on a noesisGUI texture by using the following constructor where you can pass the low level GL handle:
GLTexture2D::GLTexture2D(NsSize width, NsSize height, NsSize levels, GLuint handle);
This texture can be inserted in a Image element by using a TextureSource.

Please tell me if you need more information about these steps.
 
descala
Topic Author
Posts: 15
Joined: 19 Sep 2013, 20:11

Re: Best practices for grayscale live video?

23 Jul 2014, 22:17

This worked great; thanks!

Who is online

Users browsing this forum: Bing [Bot] and 38 guests