fakkoweb / OKAR-Demo

1 stars 0 forks source link

Info about Ogre Oculus and OpenCV #1

Open Nesh108 opened 9 years ago

Nesh108 commented 9 years ago

Hey fakkoweb,

This is not an issue but this was the only way I found I could contact you. I have contacted Germanunkol (the creator of https://github.com/Germanunkol/OgreOculusSample/) and he told me that you are also working on integrating OpenCV with Ogre and the Oculus Rift.

I am trying to send image data to the Oculus from a webcam. Have you managed to do something like that already?

Let me know!

Cheers,

/N.

fakkoweb commented 9 years ago

Hello Nesh,

i did not know it was possible to send messages through GitHub.

Yes, basically I am working on that, and I have solved the problem (but still trying to implement it). Basically I will use two webcams (one per eye) and want to use those images as a texture on two different planes in front of the virtual cameras. Now, image does not show up yet on the planes but I could compile and work with opencv and ogre successfully.

Next steps would be: optimize multithreading between camera frame grabber and ogre rendering thread and switching from plane to a more complex shape so that camera distortion is corrected (doing it this way is wayyy faster then using open cv 2d image correction)

I will do a pull request to make OgreOculusSample work with no rift connected.

As of my project, yes it uses OgreOculusSample as base but is a completely different project, so maybe it should not be pushed into that. I would like to make a fork of it with a different name but i don't know if it is possible, so maybe the only way is simply cloning it and make a completely new project

Cheers,

/F

2015-05-23 17:46 GMT+02:00 Nesh108 notifications@github.com:

Hey fakkoweb,

This is not an issue but this was the only way I found I could contact you. I have contacted Germanunkol (the creator of https://github.com/Germanunkol/OgreOculusSample/) and he told me that you are also working on integrating OpenCV with Ogre and the Oculus Rift.

I am trying to send image data to the Oculus from a webcam. Have you managed to do something like that already?

Let me know!

Cheers,

/N.

— Reply to this email directly or view it on GitHub https://github.com/fakkoweb/OgreMyTests/issues/1.

Nesh108 commented 9 years ago

Hey,

My project is exactly the same (connecting 2 cameras simulating the eyes), so we are good there. I just (literally) managed to show the image data from the camera into the oculus rift. The problem is that I am creating everything in the "RoomNode" and not as overlays for the 2 cameras. This means that I probably won't be able to add a second camera.

Do you have any idea?

I'm not too expert with Ogre, so I am just tinkering about. Probably we can write directly onto the 2 cameras (mCamLeft and mCamRight) for a better result.

Btw, if you want I am sitting on IRC at the moment (#ogre3d), ping me there if needed.

fakkoweb commented 9 years ago

It has been a while since last time I used IRC

Anyway it is not clear to me when you say "I am creating everything in the "RoomNode" and not as overlays for the 2 cameras". You mean camera images are fixed to an object in the room like a frame or a window? What is the problem with the second camera? Right now I am still experimenting.. I am slow because I am no expert in Ogre either.

Let you know as soon as something works :)

2015-05-23 19:04 GMT+02:00 Nesh108 notifications@github.com:

Hey,

My project is exactly the same (connecting 2 cameras simulating the eyes), so we are good there. I just (literally) managed to show the image data from the camera into the oculus rift. The problem is that I am creating everything in the "RoomNode" and not as overlays for the 2 cameras. This means that I probably won't be able to add a second camera.

Do you have any idea?

I'm not too expert with Ogre, so I am just tinkering about. Probably we can write directly onto the 2 cameras (mCamLeft and mCamRight) for a better result.

Btw, if you want I am sitting on IRC at the moment (#ogre3d), ping me there if needed.

— Reply to this email directly or view it on GitHub https://github.com/fakkoweb/OgreMyTests/issues/1#issuecomment-104925197.

Nesh108 commented 9 years ago

Go here: https://webchat.freenode.net/ and put 'ogre3d' as channel name. :)

fakkoweb commented 9 years ago

Ok. I will be online until evening today so you can message me. (I am in sweden so my timezone is probably different than yours)

2015-05-23 21:32 GMT+02:00 Nesh108 notifications@github.com:

Go here: https://webchat.freenode.net/ and put 'ogre3d' as channel name. :)

— Reply to this email directly or view it on GitHub https://github.com/fakkoweb/OgreMyTests/issues/1#issuecomment-104937859.

fakkoweb commented 9 years ago

Hello nesh! I have got some news on my project but I can't remember where did I saved your email! Can you please give it to me again?

fakkoweb

2015-05-23 21:32 GMT+02:00 Nesh108 notifications@github.com:

Go here: https://webchat.freenode.net/ and put 'ogre3d' as channel name. :)

— Reply to this email directly or view it on GitHub https://github.com/fakkoweb/OgreMyTests/issues/1#issuecomment-104937859.

Nesh108 commented 9 years ago

Hey fakko,

I am on IRC (#ogre3d) at the moment, wanna come over there?

On Wed, Jun 3, 2015 at 12:53 AM, Dario notifications@github.com wrote:

Hello nesh! I have got some news on my project but I can't remember where did I saved your email! Can you please give it to me again?

fakkoweb

2015-05-23 21:32 GMT+02:00 Nesh108 notifications@github.com:

Go here: https://webchat.freenode.net/ and put 'ogre3d' as channel name. :)

— Reply to this email directly or view it on GitHub <https://github.com/fakkoweb/OgreMyTests/issues/1#issuecomment-104937859 .

— Reply to this email directly or view it on GitHub https://github.com/fakkoweb/OgreMyTests/issues/1#issuecomment-108122468.

fakkoweb commented 9 years ago

I was sleeping :) today i am on IRC