[FIXED] NV_video_capture

Started by Kai, May 20, 2011, 16:37:24

Previous topic - Next topic

Kai

Hi,

first of all, let me say that I'm now using LWJGL for almost 2 years and it has been a real pleasure so far!
Following the active development of LWJGL and seeing the very helpful answers in the forum of the community members of LWJGL showed me that using this library is a good decision to make!

Okay, now for my request:

Currently, I am evaluating possibilities to stream video data using OpenGL and I found the extension NV_video_capture that seems to achieve this.
The problem is that LWJGL does not support this extension. Probably because it also envolves window system dependent extensions.

It would be really nice if this extension could be supported by LWJGL!

spasi

Indeed, I have avoided adding support for OS/vendor-specific extensions that only a minority of LWJGL users would use. Until someone asks for it of course. I'll try to add NV_video_capture (and NV_present_video on which it depends) this weekend.

Kai

Thank you very much for your quick answer!

QuoteI'll try to add NV_video_capture (and NV_present_video on which it depends) this weekend.
This would be awesome!

spasi

I implemented both extensions but committed in the OpenGL ES branch, since I don't have access to NV hardware right now and they're completely untested. Feel free to checkout /branches/opengles and build to try it out. If you aren't able to build, let me know and I'll upload a binary somewhere.

Kai

Thanks again for implementing the requested extension in such short time!

I wanted to build LWJGL for my own, but I have two questions:
1. Which MSVC-Version do you use?
2. What is MSSDK (in the windows platform build file) supposed to point to (the Windows SDK or the Visual Studio VC directories)? I have both installed (Windows SDK 7.1 and Visual Studio 10), but neither of them have a directory "include/win32" somewhere.

And: "cl.exe" always crashes with return code:
...\branches\opengles\LWJGL\platform_build\windows_ant\build.xml:9: apply returned: -1073741515

Maybe, you could provide me a hint as to how to setup a build environment for LWJGL?

spasi

I'm on SDK 7.0 atm. It's been a while since I set it up, but I think I'm just using the CMD Shell that comes with the SDK. IIRC the only thing I did was modify the shortcut like so:

C:\Windows\System32\cmd.exe /E:ON /V:ON /T:0E /K "C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.cmd" /x86 /release


The default was /debug I think. Also changed the "Start in" folder to point to my project root for convenience. The ${env.MSSDK} is an environment variable that points to "C:\Program Files\Microsoft SDKs\Windows\v7.0". Not sure if it's created automatically when you install the SDK or I created it manually.

Hope this helps.

Kai

QuoteHope this helps.
It did! :-)

By specifying the MSSDK environment variable and starting the command shell as you said and then invoking ant, everything compiled successfully!

Thanks again.