No Video output with C sample projects

SOLVED
DaKenpachi
Pioneer

No Video output with C sample projects

Hi again,

 

I am trying out the SRWorks C API samples. They seem to work, except for one thing: I dont see anything.

I´m mainly using the CameraControl sample (because i want to try some settings) and i do get the response that every command is ok. I just dont see anything from the cameras video stream. The HMD Displays shows the standart white room from SteamVR like no Application is active.

 

Before I start the example, I can successfully test the camera stream in the SteamVR settings.

After I stop the example, the camera test does not work any more, and I have to restart the link box to get it working again...

 

Note: I ported the projects to VS2017 because I could not get the 2015 version anywhere.

 

I´m thankful to any idea!

 

DaKenpachi
Pioneer

Re: No Video output with C sample projects

So, I tried to rebuild the project, but I ran into compilation errors for some reason (see screenshot). I did not change any project settings - maybe the port to Visual Studio 2017 did?

thehellbean
Settler

Re: No Video output with C sample projects

Are you on the beta version of SteamVR?

Is your HMD firmware on the latest version?

Do you have the latest Nvidia drivers?

Do any of the other examples (Unity/Unreal) work?

DaKenpachi
Pioneer

Re: No Video output with C sample projects

No,  I dont think I use the beta (how do I find out?)

HMD, controllers and base stations firmware are up-to-date, as well as the nvidia driver.

Unreal example works fine.

thehellbean
Settler
Solution

Re: No Video output with C sample projects

Right click on SteamVR in the steam library and go to Properties->Betas and select the beta in the drop down. 

 

Note that (as far as I know) the C examples don't render anything to the HMD, they only output via the OpenCV windows which open when you run certain commands

Highlighted
DaKenpachi
Pioneer

Re: No Video output with C sample projects

@thehellbeanthanks, that solved the issue. Yes, it opens some openCV windows now (first it did just nothing).

 

I noticed that I must have accidently deleted one line of code, so thats the other issue about not compiling in Visual Studio. So now it works perfectly!