Author Topic: Augmented Reality for Desktop  (Read 777 times)

Offline MSL

  • byte
  • *
  • Posts: 12
    • View Profile
Augmented Reality for Desktop
« on: February 07, 2015, 08:30:18 am »
Hi,

Can anyone point me to best AR solution(preferably free) which can be used with JPCT? (for desktop)

or Can anyone point me how can I replace the JPCT canvas with Live camera feed so that when I render 3D objects the objects will be rendered inside Camera feed?

Thanks in advance
MSL

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Augmented Reality for Desktop
« Reply #1 on: February 07, 2015, 10:17:30 pm »
It would rather work the other way round...i.e. you somehow have to obtain the camera image and render or copy it into the GL window. But i personally don't know oft any solution for this let alone one for Java. That doesn't mean that there is none though.

Offline MSL

  • byte
  • *
  • Posts: 12
    • View Profile
Re: Augmented Reality for Desktop
« Reply #2 on: February 09, 2015, 02:04:42 pm »
Hi,
Thanks again. One of the best part of JPCT (apart from the Engine itself  :) ) is the Reply to the Forum posts. Truly amazing.

I can get the camera image or feed that won't be a much problem.

I think this is silly but can you give any heads up regarding "render or copy it into the GL window"?. Can you point to any example?

Update:

Were you referring to this?
Background Images
http://www.jpct.net/forum2/index.php?topic=110.0

Thanks in advance
MSL
« Last Edit: February 09, 2015, 02:24:37 pm by MSL »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Augmented Reality for Desktop
« Reply #3 on: February 09, 2015, 07:30:57 pm »
I'm not sure what i was referring to, because i've no idea what the camera image actually is. On Android, you can obtain is as a texture and you can hook it directly into the engine by using this method: http://www.jpct.net/doc/com/threed/jpct/Texture.html#setExternalId(int, int). But i doubt that this will be possible on the desktop with the means available. The second best thing would a rgb-arrays of pixels. The worst thing would be compressed image in jpg or png format.
« Last Edit: February 11, 2015, 10:10:34 am by EgonOlsen »