JSARToolKit icon indicating copy to clipboard operation
JSARToolKit copied to clipboard

Overflow the image on the market

Open kevinbheda opened this issue 13 years ago • 2 comments

Hello I was playing around with ur demo Ar_mediaStream.html and wanted to do something like this https://www.youtube.com/watch?v=0J0fwQqCIuE only the tshirt superimposed on the marker part But i saw the magi,js cube part code was to complex to understand can u suggest me what to do with magi js to draw this way Like overflowing image on the marker

kevinbheda avatar Feb 08 '13 15:02 kevinbheda

You could use Three.js for a more popular 3d lib (see http://www.html5rocks.com/en/tutorials/webgl/jsartoolkit_webrtc/ the example & code at the bottom)

If you want to just change the magi example to show a custom image, search the page source for image.setImage(photos.rotate()) and replace photos.rotate() with the url to your image.

HTH, Ilmari

2013/2/8 kevinbheda [email protected]

Hello I was playing around with ur demo Ar_mediaStream.html and wanted to do something like this https://www.youtube.com/watch?v=0J0fwQqCIuE only the tshirt superimposed on the marker part But i saw the magi,js cube part code was to complex to understand can u suggest me what to do with magi js to draw this way Like overflowing image on the marker

— Reply to this email directly or view it on GitHubhttps://github.com/kig/JSARToolKit/issues/7.

kig avatar Feb 08 '13 15:02 kig

setimage hey i did try to replace photos.rotate with my custom image url but it didnt work out u can check out the attached image.

kevinbheda avatar Feb 09 '13 21:02 kevinbheda