de-Roo.Lukas Posted September 8, 2017 Share Posted September 8, 2017 Hi all, I am currently working on a tech demo for Augmented reality using a stereo camera and the HTC VIVE. I'm just wondering if there is a way to take a camera feed from a webcam or similar and overlay it in the world. an ideal setup would be the camera vision, using a green-screen/chroma key for alpha, and the Unigine rendering layered underneath. i would like to render each camera to a different eye on the HTC VIVE, so as to keep 3D perspective. a few solutions that i think would work are 1. An animated texture (using the live video feed) on a plane rendered in front of the individual eyes. 2. Directly layering the rendering in Unigine in order to achieve this goal. Ideally we would like a solution that runs natively within Unigine. Thanks in advance, Lukas Link to comment
silent Posted September 8, 2017 Share Posted September 8, 2017 Hi Lukas, I think a basic plane with mesh_base material will enough. You just need to get a handle to DX / OpenGL texture that assigned to this mesh (into albedo slot for example) and within a plugin send correct data into it. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
rohit.gonsalves_ Posted March 31, 2018 Share Posted March 31, 2018 Hello de-Roo.Likas, Did you find any solution to this particular requirement. As I understand, Writing plugin to have required texture mapped onto any material is easy using DirectX or opengl. We have done it. But you are asking for rendering a full screen quad aligned to the screen. We do this by taking unigine rendering out and then overlay such thing in our directx based engine. Do you have any success to achieve it directly in Unigine rendering? Rohit Link to comment
Recommended Posts