T2ShinSekai / Oculus-FPV-with-VR

Oculus First Private View with Virtual Reality based on Oculus Tiny, using VC++, Xbee, Arduino Tech Set.
Other
3 stars 0 forks source link

Questions about video stream #1

Open yoqim opened 8 years ago

yoqim commented 8 years ago

I want to know how did you put the video stream to Direct X?

T2ShinSekai commented 8 years ago

In this sample I used openCV compornents to capture the video image through USB. This captured video image is 2 dimention. But Direct X can handle only 3 dimention. So 2 dimentional image should be transfered to 3 dimentional data using liner transformation. This will be done by shader pre-program. Check "VIDEO_CAPTURE" tag in the source code Win32_OculusRoomTiny.cpp which does video capture handling.