openvr: Can`t choose proper display (extended mode) for SteamVR
Hello!
I have built driver_sample for windows and hard code there settings for my custom display, like this:
` if ( pSettings ) { DriverLog( “Using settings values\n” ); m_flIPD = pSettings->GetFloat( k_pch_SteamVR_Section, k_pch_SteamVR_IPD_Float, 0.063f );
char buf[1024];
pSettings->GetString( k_pch_Sample_Section, k_pch_Sample_SerialNumber_String, buf, sizeof(buf), "244047" );
m_sSerialNumber = buf;
pSettings->GetString( k_pch_Sample_Section, k_pch_Sample_ModelNumber_String, buf, sizeof(buf), "W2243" );
m_sModelNumber = buf;
m_nWindowX = pSettings->GetInt32( k_pch_Sample_Section, k_pch_Sample_WindowX_Int32, 1920 );
m_nWindowY = pSettings->GetInt32( k_pch_Sample_Section, k_pch_Sample_WindowY_Int32, 0 );
m_nWindowWidth = pSettings->GetInt32( k_pch_Sample_Section, k_pch_Sample_WindowWidth_Int32, 1920 );
m_nWindowHeight = pSettings->GetInt32( k_pch_Sample_Section, k_pch_Sample_WindowHeight_Int32, 1080 );
m_nRenderWidth = pSettings->GetInt32( k_pch_Sample_Section, k_pch_Sample_RenderWidth_Int32, 1920 );
m_nRenderHeight = pSettings->GetInt32( k_pch_Sample_Section, k_pch_Sample_RenderHeight_Int32, 1080 );
m_flSecondsFromVsyncToPhotons = pSettings->GetFloat( k_pch_Sample_Section, k_pch_Sample_SecondsFromVsyncToPhotons_Float, 0.0 );
m_flDisplayFrequency = pSettings->GetFloat( k_pch_Sample_Section, k_pch_Sample_DisplayFrequency_Float, 60.0 );
}
` I have two displays, each is 1920x1080. Second is on the right of first(primary one). Everything start well. HMD icon is green, And even I can go through room setup calibration. I expect to see SteamVR demo on second monitor, but it is on first/primary monitor. Looks like as I set position to 0,0.
I also added answers to queries for EDID VID and PID to driver_sample.
What am I doing wrong? Is driver_sample is up to date? Or did I miss something?
P.S. Serial and Model numbers strings I fill with some sample values.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 34 (1 by maintainers)
@dashingstag Yes, that is correct. It should be set to ‘true’ for a HDMI connected display.
Debug mode activate Windowed Mode (borderless fullscreen) on “Headset Window” and you can move window to second screen with buttons (Shift + Win + Right or Left)
hi,@cjlong1213 It took me some time today to be able to output the display image to the second monitor I have 2 monitors, the primary display is: 1920*1080, another display is: 1366*768. Windows is set to expand mode, modify the part of the code to allow the image to second monitors.
The steamVR home will be able to show up to second monitors (on the right of the Dell monitor):
@cjlong1213 About extend Mode: Displayed on the primary display (in the middle way of primary monitor,resolution is m_nWindowWidth *m_nWindowHeight), but did not try to be displayed on the second monitor, my custom HMD is work in direct mode(direct rendering mode can play better on VR graphics support, such as ATW, TW, VR-SLI and so on). Today I tried to make the extended display to the second monitor, and did not succeed for this I made a SCREEN class of the small program to implement an application to display second display function, it can work after debugging, but openVR I haven’t found the answer, based on that, I think it should be with “m_nWindowX”, but I try to modify later, did not play a role, because openVR does not completely open source: - (, I did not continue. @TheDeveloperGuy Can you give us some help for extern mode display in second monitor? About direct Mode(I am using):