www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: MSL on February 07, 2015, 08:30:18 am

Title: Augmented Reality for Desktop
Post by: MSL 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
Title: Re: Augmented Reality for Desktop
Post by: EgonOlsen 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.
Title: Re: Augmented Reality for Desktop
Post by: MSL 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
Title: Re: Augmented Reality for Desktop
Post by: EgonOlsen 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) (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.