Skip to main content
New Participant
October 15, 2014

cv::IplImage or cv::mat imagetype to the rift

Hey, I want to render a IplImage or Mat image to the oculus dk2 by modifying the oculusRoomTiny example. I feel I have most parts right, but the picture just wont show up in the rift. Can anyone provide a quick example? (I though and still think that this is going to be fairly easy)

Regards
Philip

    1 reply

    Inspiring
    October 15, 2014
    It's not completely clear what you're asking. What rendering system are you using, Direct3D or OpenGL? Or are you simply trying to take an image loaded in OpenCV and use OpenCV to display it on the Rift somehow? The latter approach isn't likely to go well.

    If you're just interested in how to take a cv::Mat and turn it into an OpenGL or Direct3D texture, there's plenty of resources on that out there, it's not really Rift specific.
    Brad Davis - Developer for High Fidelity Co-author of Oculus Rift in Action