![]() ![]() ![]() ![]()
여어, 안녕!
SETUP 1. Download Mapbox-unity-sdk_v1.4.5.unitypackage 2. Open UNITY, Right Click On Asset, Import Package > Custom Package Open-> Mapbox-unity-sdk_v1.4.5.unitypackage yang download tadi. 3. Tab > Mapbox > Setup OR sometime Setup window just pop up after package is imported. 4. Go to https://www.mapbox.com/account/ 5. Copy Access token 6. Paste in The Mapbox Setup Window tadi. 7. Asset > Delete Folder yang ade AR pada file (3 files perlu di delete) 8. Hanya tinggal 5 Folders START 1. Create New Scene, Name as MyMapbox, click SAVE. 2. Create EmptyObject, Name as Map. 3. On Map Object, Add script called Abstract Map. 4. Go to Google Map, Search your wanted place, Right Click on any spot you want, Click What's Here. Copy the langitude and longitude (xx.xxxx , xx.xxxx). 5. Paste on Max Object > General > Langitude and longitude AS BELOW. 6. Adjust West, North East and South. For map area you wanted, being seeing better. 7. Adjust Camera To focus on map, so when you click 'PLAY' you can see the map. 8. Adjust Directed Sun by rotate it, only if the map is too bright or dull. MAPBOX STYLE 1. On MapBox > General > Images> Data Source -> Mapbox Satellite Street STYLE. 2. On MapBox > General > Map Layers > Feature > Add Feature > Building Under Building> Modelling > Scale Factor > 1> 6. 3. Click PLAY and it must look like below. 5. On MapBox > General > Map Layers > Feature > Add Feature > Road Under Road > Modelling > Extrusion Type > dari None To Absolute Height. + Geometry Type : Roof Only + Height : 2 + scale factor :1 Under Road > Texturing > Top Material + Tukar to Material Warna Hitam xpe.. 6. Click Play jadi mcm bawah ni. LOCATION GPS PROVIDER 1. On Map > General > Initial On Start (uncheck kan) 2. Add script 'Initial Map With Location..' 3. Create GameObject , name as 'Location Provider', and put script 'Location Provide Factory'. Skip to no.4 before isi script dalam tu. 4. Under LocationProvider, Create child 'Device', and put script 'Device Location Provider'. 5. Under LocationProvider, Create child 'Editor Location Provider', and put script 'Editor Location Provider Location Log'. 6. Under LocationProvider, Create child 'Editor Location Array Provider', and put script 'Location Array Editor Location Provider'.
7. Under LocationProvider,
Create child 'Transform', and put script 'Transform Location Provider'. PLAYER 1. Create gameobject, name as Player. 2. Add script "Immediate position with location provider" and "rotate with location provider". 3. At Asset, cari "Player target", amik orang kuning tarik letak ke bawak play game object kita buat tadi, dan delete "PlayerTaget", hanya ambil cube and shepere dia sahaja. Aim: jgn biarkan dia jadi kaler biru (prebafs), biar jadi hitam. 4. Set XYZ: 0. 5. Click Play, Player akan duduk depends pada LocationProvider Langitude and longitude, even tho kita x letak dia kat tempat tu. LOCATION BASED MAPBOX COMBINE WITH ARCORE 1. At Hierarchy, Right Click MyMapbox, Save As, name it MyMapboxARCORE. 2. Open MyMapboxARCORE. 3. Go to https://developers.google.com/ar/. Click Unity. Download ARCore SDK below. https://github.com/google-ar/arcore-unity-sdk/releases/download/v1.4.1/arcore-unity-sdk-v1.4.1.unitypackage 4. AT UNITY, Imported Package > Imported Custom > arcore-unity-sdk-v1.4.1.unitypackage yang download tadi. 5. Delete ApiTrackingExtention script. 6. AT ASSET, find "Hello Ar", drag that scene to hierarchy 7. Drag ARCore Device, Point Cloud, Enviroment Light, Canvas, Example Controller. 8. Remove Hello Ar scene on hierachy 9. Click Example COntroller, click it's script. 10. cari ni dan delete // Use hit pose and camera pose to check if hittest is from the 10. Click Play ASK ME QUESTION : HYEYUN123@YAHOO.COM OR COMMENT DOWN BELOW. |
Sugar Bunny
![]() ![]() ![]() ![]() ADD ME: INSTAGRAM @SARARIIN ![]() Follow
Click Below Image TO Follow Me ![]() ![]() Messange Here Archive Recent Entries ![]() ![]() ![]() ![]() ![]() ![]()
Wishlist ![]() ![]() ![]() ![]() ![]() ![]() CANT BELIEVE ABOVE WISHLIST IS DONE, BELOW IS NEW WISHLIST ![]() ![]() ![]() ![]() ![]() ![]() Background
|
0 Comments:
Post a Comment
1.Your Comment surely will be approve.
2. I'll check it first. Don't worry. :D
3. Don't forget to come back to this Blog if you want to know the answer.