microsoft / MRLightingTools-Unity

A Unity library and MRTK extension for estimating and replicating the current environment's lighting on Mixed Reality devices.
MIT License
188 stars 25 forks source link

Question: How would I use this whilst the camera is already in use? ie. Vuforia #4

Open jonathan-bryant opened 4 years ago

jonathan-bryant commented 4 years ago

Hi, I'm interested in using this in combination with Vuforia's AR and positional tracking to create a more realistic lighting environment. Has anyone had any luck using the camera image from another source and using it here. From CameraCaptureWebcam.cs i can see where the camera is initialized and then attempts to request an image. My knowledge is pretty limited in using Webcams and Images in Unity but I would appreciate any assistance.

maluoi commented 4 years ago

If you're using this tool in combination with another one that uses the camera, probably the best way is to write a new CameraCapture that will pull image data from the other camera stream, Vuforia in this case!

This is essentially what the tool is doing already for ARFoundation!