File tree Expand file tree Collapse file tree 4 files changed +65
-0
lines changed
Expand file tree Collapse file tree 4 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ <html >
3+ <script src =" https://aframe.io/releases/1.6.0/aframe.min.js" ></script >
4+ <!-- we import arjs version without NFT but with marker + location based support -->
5+ <script src =" https://raw.githack.com/AR-js-org/AR.js/3.4.7/aframe/build/aframe-ar.js" ></script >
6+ <body style =" margin : 0px ; overflow : hidden ;" >
7+ <a-scene embedded arjs >
8+ <a-assets >
9+ <video id =" gif-video" src =" http://localhost:9000/jandig-cdn/media/public/objects/temaki.webm" autoplay loop =" true" crossorigin =" anonymous" ></video >
10+ </a-assets >
11+ <a-marker type =' pattern' url =' http://localhost:9000/jandig-cdn/media/public/patts/IMG_20250209_173553.jpg.patt' >
12+ <a-plane
13+ position =" 0 0 0"
14+ rotation =" -90 0 0"
15+ width =" 1"
16+ height =" 1"
17+ material =" src: #gif-video; transparent: true;"
18+ ></a-plane >
19+ <a-entity
20+ position =" 0 0 0"
21+ scale =" 0.05 0.05 0.05"
22+ gltf-model =" https://raw.githack.com/AR-js-org/AR.js/master/aframe/examples/image-tracking/nft/trex/scene.gltf"
23+ ></a-entity >
24+ </a-marker >
25+ <a-entity camera ></a-entity >
26+ </a-scene >
27+ </body >
28+ </html >
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ <html >
3+ <head >
4+ <meta name =" viewport" content =" width=device-width, initial-scale=1" />
5+ {# <script src="https://cdn.jsdelivr.net/npm/mind-ar@1.2.5/dist/mindar-image.prod.js"></script> #}
6+ <script src =" https://aframe.io/releases/1.6.0/aframe.min.js" ></script >
7+ <script src =" https://cdn.jsdelivr.net/npm/mind-ar@1.2.5/dist/mindar-image-aframe.prod.js" ></script >
8+ </head >
9+ <body >
10+ <a-scene mindar-image =" imageTargetSrc: http://localhost:9000/jandig-cdn/media/public/patts/glenda2-scale5.mind;" vr-mode-ui =" enabled: true" device-orientation-permission-ui =" enabled: false" >
11+ <a-assets >
12+ <video id =" gif-video" src =" http://localhost:9000/jandig-cdn/media/public/objects/temaki.webm" autoplay loop =" true" crossorigin =" anonymous" ></video >
13+ </a-assets >
14+ <a-camera position =" 0 0 0" look-controls =" enabled: false" ></a-camera >
15+ <a-entity mindar-image =" warmupTolerance: 1; filterMinCF:0.1; filterBeta: 10" mindar-image-target =" targetIndex: 0" >
16+ <a-plane
17+ position =" 0 0 0"
18+ rotation =" -90 0 0"
19+ width =" 1"
20+ height =" 1"
21+ material =" src: #gif-video; transparent: true;"
22+ ></a-plane >
23+ </a-entity >
24+ </a-scene >
25+ </body >
26+ </html >
Original file line number Diff line number Diff line change 1010 home ,
1111 marker_generator ,
1212 robots_txt ,
13+ ar_js ,
14+ mind_ar ,
1315)
1416from core .views .views import (
1517 artwork_preview ,
4749 path ("sw.js" , service_worker , name = "sw" ),
4850 path ("manifest.json" , manifest , name = "manifest" ),
4951 path ("i18n/" , include ("django.conf.urls.i18n" )),
52+ path ("ar-js/" , ar_js , name = "ar-js" ),
53+ path ("mind-ar/" , mind_ar , name = "mind-ar" ),
5054 re_path (
5155 r"^see_all(?:/(?P<which>[a-zA-Z]+))?(?:/(?P<page>\d+))?/$" ,
5256 see_all ,
Original file line number Diff line number Diff line change @@ -37,3 +37,10 @@ def robots_txt(request):
3737 "Disallow: " ,
3838 ]
3939 return HttpResponse ("\n " .join (lines ), content_type = "text/plain" )
40+
41+ def ar_js (request ):
42+ return render (request , "core/ar-js.jinja2" )
43+
44+
45+ def mind_ar (request ):
46+ return render (request , "core/mind-ar-js.jinja2" )
You can’t perform that action at this time.
0 commit comments