Commit d8c94953 authored by Alfakhori's avatar Alfakhori
Browse files

Deleted public/assets/tree/textures/.gitkeep,...

Deleted public/assets/tree/textures/.gitkeep, public/assets/tree/textures/Material.003_baseColor.png, public/assets/tree/textures/Material.003_metallicRoughness.png, public/assets/tree/textures/Material.003_normal.png, public/assets/tree/textures/twig_baseColor.png, public/assets/tree/textures/twig_normal.png, public/assets/tree/.gitkeep, public/assets/tree/scene.bin, public/assets/tree/scene.gltf, public/assets/aframe-ar-nft.js, public/assets/aframe-ar.js, public/assets/ar-threex-location-only.js, public/assets/asset.jpeg, public/assets/image.png, public/assets/marker.patt, public/assets/.gitkeep, public/assets/scene.gltf, public/assets/trex.fset, public/assets/trex.fset3, public/assets/trex.iset
parent 8b64b4de
Pipeline #7423 passed with stage
in 6 seconds
Showing with 0 additions and 1247 deletions
+0 -1247
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("three")):"function"==typeof define&&define.amd?define(["three"],e):"object"==typeof exports?exports.THREEx=e(require("three")):t.THREEx=e(t.THREE)}(this,(t=>(()=>{"use strict";var e={381:e=>{e.exports=t}},i={};function o(t){var n=i[t];if(void 0!==n)return n.exports;var s=i[t]={exports:{}};return e[t](s,s.exports,o),s.exports}o.d=(t,e)=>{for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{DeviceOrientationControls:()=>l,LocationBased:()=>i,WebcamRenderer:()=>s});class t{constructor(){this.EARTH=40075016.68,this.HALF_EARTH=20037508.34}project(t,e){return[this.lonToSphMerc(t),this.latToSphMerc(e)]}unproject(t){return[this.sphMercToLon(t[0]),this.sphMercToLat(t[1])]}lonToSphMerc(t){return t/180*this.HALF_EARTH}latToSphMerc(t){return Math.log(Math.tan((90+t)*Math.PI/360))/(Math.PI/180)*this.HALF_EARTH/180}sphMercToLon(t){return t/this.HALF_EARTH*180}sphMercToLat(t){var e=t/this.HALF_EARTH*180;return 180/Math.PI*(2*Math.atan(Math.exp(e*Math.PI/180))-Math.PI/2)}getID(){return"epsg:3857"}}var e=o(381);class i{constructor(e,i,o={}){this._scene=e,this._camera=i,this._proj=new t,this._eventHandlers={},this._lastCoords=null,this._gpsMinDistance=0,this._gpsMinAccuracy=100,this._maximumAge=0,this._watchPositionId=null,this.setGpsOptions(o),this.initialPosition=null,this.initialPositionAsOrigin=o.initialPositionAsOrigin||!1}setProjection(t){this._proj=t}setGpsOptions(t={}){void 0!==t.gpsMinDistance&&(this._gpsMinDistance=t.gpsMinDistance),void 0!==t.gpsMinAccuracy&&(this._gpsMinAccuracy=t.gpsMinAccuracy),void 0!==t.maximumAge&&(this._maximumAge=t.maximumAge)}startGps(t=0){return null===this._watchPositionId&&(this._watchPositionId=navigator.geolocation.watchPosition((t=>{this._gpsReceived(t)}),(t=>{this._eventHandlers.gpserror?this._eventHandlers.gpserror(t.code):alert(`GPS error: code ${t.code}`)}),{enableHighAccuracy:!0,maximumAge:0!=t?t:this._maximumAge}),!0)}stopGps(){return null!==this._watchPositionId&&(navigator.geolocation.clearWatch(this._watchPositionId),this._watchPositionId=null,!0)}fakeGps(t,e,i=null,o=0){null!==i&&this.setElevation(i),this._gpsReceived({coords:{longitude:t,latitude:e,accuracy:o}})}lonLatToWorldCoords(t,e){const i=this._proj.project(t,e);if(this.initialPositionAsOrigin){if(!this.initialPosition)throw"Trying to use 'initial position as origin' mode with no initial position determined";i[0]-=this.initialPosition[0],i[1]-=this.initialPosition[1]}return[i[0],-i[1]]}add(t,e,i,o){this.setWorldPosition(t,e,i,o),this._scene.add(t)}setWorldPosition(t,e,i,o){const n=this.lonLatToWorldCoords(e,i);void 0!==o&&(t.position.y=o),[t.position.x,t.position.z]=n}setElevation(t){this._camera.position.y=t}on(t,e){this._eventHandlers[t]=e}setWorldOrigin(t,e){this.initialPosition=this._proj.project(t,e)}_gpsReceived(t){let e=Number.MAX_VALUE;t.coords.accuracy<=this._gpsMinAccuracy&&(null===this._lastCoords?this._lastCoords={latitude:t.coords.latitude,longitude:t.coords.longitude}:e=this._haversineDist(this._lastCoords,t.coords),e>=this._gpsMinDistance&&(this._lastCoords.longitude=t.coords.longitude,this._lastCoords.latitude=t.coords.latitude,this.initialPositionAsOrigin&&!this.initialPosition&&this.setWorldOrigin(t.coords.longitude,t.coords.latitude),this.setWorldPosition(this._camera,t.coords.longitude,t.coords.latitude),this._eventHandlers.gpsupdate&&this._eventHandlers.gpsupdate(t,e)))}_haversineDist(t,i){const o=e.MathUtils.degToRad(i.longitude-t.longitude),n=e.MathUtils.degToRad(i.latitude-t.latitude),s=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.MathUtils.degToRad(t.latitude))*Math.cos(e.MathUtils.degToRad(i.latitude))*(Math.sin(o/2)*Math.sin(o/2));return 2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))*6371e3}}class s{constructor(t,i){let o;this.renderer=t,this.renderer.autoClear=!1,this.sceneWebcam=new e.Scene,void 0===i?(o=document.createElement("video"),o.setAttribute("autoplay",!0),o.setAttribute("playsinline",!0),o.style.display="none",document.body.appendChild(o)):o=document.querySelector(i),this.geom=new e.PlaneBufferGeometry,this.texture=new e.VideoTexture(o),this.material=new e.MeshBasicMaterial({map:this.texture});const n=new e.Mesh(this.geom,this.material);if(this.sceneWebcam.add(n),this.cameraWebcam=new e.OrthographicCamera(-.5,.5,.5,-.5,0,10),navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){const t={video:{width:1280,height:720,facingMode:"environment"}};navigator.mediaDevices.getUserMedia(t).then((t=>{console.log("using the webcam successfully..."),o.srcObject=t,o.play()})).catch((t=>{setTimeout((()=>{this.createErrorPopup("Webcam Error\nName: "+t.name+"\nMessage: "+t.message)}),1e3)}))}else setTimeout((()=>{this.createErrorPopup("sorry - media devices API not supported")}),1e3)}update(){this.renderer.clear(),this.renderer.render(this.sceneWebcam,this.cameraWebcam),this.renderer.clearDepth()}dispose(){this.material.dispose(),this.texture.dispose(),this.geom.dispose()}createErrorPopup(t){if(!document.getElementById("error-popup")){var e=document.createElement("div");e.innerHTML=t,e.setAttribute("id","error-popup"),document.body.appendChild(e)}}}const r=new e.Vector3(0,0,1),a=new e.Euler,h=new e.Quaternion,c=new e.Quaternion(-Math.sqrt(.5),0,0,Math.sqrt(.5)),d={type:"change"};class l extends e.EventDispatcher{constructor(t){super(),!1===window.isSecureContext&&console.error("THREE.DeviceOrientationControls: DeviceOrientationEvent is only available in secure contexts (https)");const i=this,o=new e.Quaternion;this.object=t,this.object.rotation.reorder("YXZ"),this.enabled=!0,this.deviceOrientation={},this.screenOrientation=0,this.alphaOffset=0,this.TWO_PI=2*Math.PI,this.HALF_PI=.5*Math.PI,this.orientationChangeEventName="ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this.smoothingFactor=1;const n=function(t){i.deviceOrientation=t},s=function(){i.screenOrientation=window.orientation||0};this.connect=function(){s(),void 0!==window.DeviceOrientationEvent&&"function"==typeof window.DeviceOrientationEvent.requestPermission?window.DeviceOrientationEvent.requestPermission().then((t=>{"granted"===t&&(window.addEventListener("orientationchange",s),window.addEventListener(i.orientationChangeEventName,n))})).catch((function(t){console.error("THREE.DeviceOrientationControls: Unable to use DeviceOrientation API:",t)})):(window.addEventListener("orientationchange",s),window.addEventListener(i.orientationChangeEventName,n)),i.enabled=!0},this.disconnect=function(){window.removeEventListener("orientationchange",s),window.removeEventListener(i.orientationChangeEventName,n),i.enabled=!1},this.update=function(){if(!1===i.enabled)return;const t=i.deviceOrientation;if(t){let n=t.alpha?e.MathUtils.degToRad(t.alpha)+i.alphaOffset:0,s=t.beta?e.MathUtils.degToRad(t.beta):0,l=t.gamma?e.MathUtils.degToRad(t.gamma):0;const u=i.screenOrientation?e.MathUtils.degToRad(i.screenOrientation):0;if(this.smoothingFactor<1){if(this.lastOrientation){const t=this.smoothingFactor;n=this._getSmoothedAngle(n,this.lastOrientation.alpha,t),s=this._getSmoothedAngle(s+Math.PI,this.lastOrientation.beta,t),l=this._getSmoothedAngle(l+this.HALF_PI,this.lastOrientation.gamma,t,Math.PI)}else s+=Math.PI,l+=this.HALF_PI;this.lastOrientation={alpha:n,beta:s,gamma:l}}!function(t,e,i,o,n){a.set(i,e,-o,"YXZ"),t.setFromEuler(a),t.multiply(c),t.multiply(h.setFromAxisAngle(r,-n))}(i.object.quaternion,n,this.smoothingFactor<1?s-Math.PI:s,this.smoothingFactor<1?l-this.HALF_PI:l,u),8*(1-o.dot(i.object.quaternion))>1e-6&&(o.copy(i.object.quaternion),i.dispatchEvent(d))}},this._orderAngle=function(t,e,i=this.TWO_PI){return e>t&&Math.abs(e-t)<i/2||t>e&&Math.abs(e-t)>i/2?{left:t,right:e}:{left:e,right:t}},this._getSmoothedAngle=function(t,e,i,o=this.TWO_PI){const n=this._orderAngle(t,e,o),s=n.left,r=n.right;n.left=0,n.right-=s,n.right<0&&(n.right+=o);let a=r==e?(1-i)*n.right+i*n.left:i*n.right+(1-i)*n.left;return a+=s,a>=o&&(a-=o),a},this.dispose=function(){i.disconnect()},this.connect()}}})(),n})()));
\ No newline at end of file
public/assets/asset.jpeg

176 KB

public/assets/image.png

160 KB

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 16 64 64 64 64 64 64 64 64 64 64 16 0 0
0 0 64 255 255 255 255 255 255 255 255 255 255 64 0 0
0 0 64 255 0 191 255 255 255 64 64 255 255 64 0 0
0 0 64 255 0 48 112 255 64 159 159 64 255 64 0 0
0 0 64 255 64 64 96 191 0 143 143 0 255 64 0 0
0 0 64 255 255 255 191 0 0 0 0 0 255 64 0 0
0 0 64 255 0 191 191 0 255 64 64 255 255 64 0 0
0 0 64 255 191 96 48 0 64 159 207 255 255 64 0 0
0 0 64 255 255 112 48 0 0 143 207 255 255 64 0 0
0 0 64 255 255 255 191 0 0 0 64 255 255 64 0 0
0 0 64 255 255 255 255 255 255 255 255 255 255 64 0 0
0 0 16 64 64 64 64 64 64 64 64 64 64 16 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 16 64 64 64 64 64 64 64 64 64 64 16 0 0
0 0 64 255 255 255 255 255 255 255 255 255 255 64 0 0
0 0 64 255 0 191 255 255 255 64 64 255 255 64 0 0
0 0 64 255 0 48 112 255 64 159 159 64 255 64 0 0
0 0 64 255 64 64 96 191 0 143 143 0 255 64 0 0
0 0 64 255 255 255 191 0 0 0 0 0 255 64 0 0
0 0 64 255 0 191 191 0 255 64 64 255 255 64 0 0
0 0 64 255 191 96 48 0 64 159 207 255 255 64 0 0
0 0 64 255 255 112 48 0 0 143 207 255 255 64 0 0
0 0 64 255 255 255 191 0 0 0 64 255 255 64 0 0
0 0 64 255 255 255 255 255 255 255 255 255 255 64 0 0
0 0 16 64 64 64 64 64 64 64 64 64 64 16 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 16 64 64 64 64 64 64 64 64 64 64 16 0 0
0 0 64 255 255 255 255 255 255 255 255 255 255 64 0 0
0 0 64 255 0 191 255 255 255 64 64 255 255 64 0 0
0 0 64 255 0 48 112 255 64 159 159 64 255 64 0 0
0 0 64 255 64 64 96 191 0 143 143 0 255 64 0 0
0 0 64 255 255 255 191 0 0 0 0 0 255 64 0 0
0 0 64 255 0 191 191 0 255 64 64 255 255 64 0 0
0 0 64 255 191 96 48 0 64 159 207 255 255 64 0 0
0 0 64 255 255 112 48 0 0 143 207 255 255 64 0 0
0 0 64 255 255 255 191 0 0 0 64 255 255 64 0 0
0 0 64 255 255 255 255 255 255 255 255 255 255 64 0 0
0 0 16 64 64 64 64 64 64 64 64 64 64 16 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 16 64 64 64 64 64 64 64 64 64 64 16 0 0
0 0 64 255 255 255 255 255 255 255 255 255 255 64 0 0
0 0 64 255 255 64 0 0 255 255 255 255 255 64 0 0
0 0 64 255 64 159 143 0 64 207 207 64 255 64 0 0
0 0 64 255 64 159 143 0 64 159 143 0 255 64 0 0
0 0 64 255 255 64 0 0 255 64 0 0 255 64 0 0
0 0 64 255 255 255 191 0 0 0 0 0 255 64 0 0
0 0 64 255 255 112 96 191 191 48 48 191 255 64 0 0
0 0 64 255 191 48 64 255 191 96 112 255 255 64 0 0
0 0 64 255 0 0 64 255 0 191 255 255 255 64 0 0
0 0 64 255 255 255 255 255 255 255 255 255 255 64 0 0
0 0 16 64 64 64 64 64 64 64 64 64 64 16 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 16 64 64 64 64 64 64 64 64 64 64 16 0 0
0 0 64 255 255 255 255 255 255 255 255 255 255 64 0 0
0 0 64 255 255 64 0 0 255 255 255 255 255 64 0 0
0 0 64 255 64 159 143 0 64 207 207 64 255 64 0 0
0 0 64 255 64 159 143 0 64 159 143 0 255 64 0 0
0 0 64 255 255 64 0 0 255 64 0 0 255 64 0 0
0 0 64 255 255 255 191 0 0 0 0 0 255 64 0 0
0 0 64 255 255 112 96 191 191 48 48 191 255 64 0 0
0 0 64 255 191 48 64 255 191 96 112 255 255 64 0 0
0 0 64 255 0 0 64 255 0 191 255 255 255 64 0 0
0 0 64 255 255 255 255 255 255 255 255 255 255 64 0 0
0 0 16 64 64 64 64 64 64 64 64 64 64 16 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 16 64 64 64 64 64 64 64 64 64 64 16 0 0
0 0 64 255 255 255 255 255 255 255 255 255 255 64 0 0
0 0 64 255 255 64 0 0 255 255 255 255 255 64 0 0
0 0 64 255 64 159 143 0 64 207 207 64 255 64 0 0
0 0 64 255 64 159 143 0 64 159 143 0 255 64 0 0
0 0 64 255 255 64 0 0 255 64 0 0 255 64 0 0
0 0 64 255 255 255 191 0 0 0 0 0 255 64 0 0
0 0 64 255 255 112 96 191 191 48 48 191 255 64 0 0
0 0 64 255 191 48 64 255 191 96 112 255 255 64 0 0
0 0 64 255 0 0 64 255 0 191 255 255 255 64 0 0
0 0 64 255 255 255 255 255 255 255 255 255 255 64 0 0
0 0 16 64 64 64 64 64 64 64 64 64 64 16 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 34 94 94 94 94 94 94 94 94 94 94 30 0 0
0 0 93 255 254 243 240 240 240 250 255 255 254 83 0 0
0 0 93 255 251 70 1 0 4 183 252 254 254 83 0 0
0 0 93 255 254 204 132 2 1 49 121 253 254 83 0 0
0 0 93 255 253 199 148 69 3 52 103 179 253 83 0 0
0 0 93 253 235 66 68 216 13 183 182 23 251 83 0 0
0 0 93 241 9 5 5 8 8 183 246 239 254 83 0 0
0 0 93 241 1 135 132 12 176 97 65 68 252 83 0 0
0 0 93 245 75 149 147 86 243 121 52 4 251 83 0 0
0 0 93 254 250 71 74 249 254 253 179 9 251 83 0 0
0 0 93 254 254 252 252 254 254 254 253 252 254 83 0 0
0 0 30 83 83 83 83 83 83 83 83 83 83 26 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 34 94 94 94 94 94 94 94 94 94 94 30 0 0
0 0 93 255 254 243 240 240 240 250 255 255 254 83 0 0
0 0 93 255 251 70 1 0 4 183 252 254 254 83 0 0
0 0 93 255 254 204 132 2 1 49 121 253 254 83 0 0
0 0 93 255 253 199 148 69 3 52 103 179 253 83 0 0
0 0 93 253 235 66 68 216 13 183 182 23 251 83 0 0
0 0 93 241 9 5 5 8 8 183 246 239 254 83 0 0
0 0 93 241 1 135 132 12 176 97 65 68 252 83 0 0
0 0 93 245 75 149 147 86 243 121 52 4 251 83 0 0
0 0 93 254 250 71 74 249 254 253 179 9 251 83 0 0
0 0 93 254 254 252 252 254 254 254 253 252 254 83 0 0
0 0 30 83 83 83 83 83 83 83 83 83 83 26 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 34 94 94 94 94 94 94 94 94 94 94 30 0 0
0 0 93 255 254 243 240 240 240 250 255 255 254 83 0 0
0 0 93 255 251 70 1 0 4 183 252 254 254 83 0 0
0 0 93 255 254 204 132 2 1 49 121 253 254 83 0 0
0 0 93 255 253 199 148 69 3 52 103 179 253 83 0 0
0 0 93 253 235 66 68 216 13 183 182 23 251 83 0 0
0 0 93 241 9 5 5 8 8 183 246 239 254 83 0 0
0 0 93 241 1 135 132 12 176 97 65 68 252 83 0 0
0 0 93 245 75 149 147 86 243 121 52 4 251 83 0 0
0 0 93 254 250 71 74 249 254 253 179 9 251 83 0 0
0 0 93 254 254 252 252 254 254 254 253 252 254 83 0 0
0 0 30 83 83 83 83 83 83 83 83 83 83 26 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 31 84 84 84 84 84 84 84 84 84 84 27 0 0
0 0 94 255 255 255 253 252 254 252 252 252 254 83 0 0
0 0 95 255 255 253 180 24 239 68 4 9 253 83 0 0
0 0 95 255 253 121 103 182 247 65 53 179 254 83 0 0
0 0 95 251 183 49 53 183 183 97 122 253 255 83 0 0
0 0 95 241 4 1 3 13 8 176 244 255 255 83 0 0
0 0 95 241 0 3 69 217 8 13 86 249 255 83 0 0
0 0 95 241 2 132 148 68 5 133 148 74 253 83 0 0
0 0 95 244 70 204 199 66 5 136 150 72 253 83 0 0
0 0 95 255 252 254 254 236 9 2 75 250 255 83 0 0
0 0 95 255 255 255 255 253 242 242 245 255 255 83 0 0
0 0 35 94 94 94 94 94 94 94 94 94 94 30 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 31 84 84 84 84 84 84 84 84 84 84 27 0 0
0 0 94 255 255 255 253 252 254 252 252 252 254 83 0 0
0 0 95 255 255 253 180 24 239 68 4 9 253 83 0 0
0 0 95 255 253 121 103 182 247 65 53 179 254 83 0 0
0 0 95 251 183 49 53 183 183 97 122 253 255 83 0 0
0 0 95 241 4 1 3 13 8 176 244 255 255 83 0 0
0 0 95 241 0 3 69 217 8 13 86 249 255 83 0 0
0 0 95 241 2 132 148 68 5 133 148 74 253 83 0 0
0 0 95 244 70 204 199 66 5 136 150 72 253 83 0 0
0 0 95 255 252 254 254 236 9 2 75 250 255 83 0 0
0 0 95 255 255 255 255 253 242 242 245 255 255 83 0 0
0 0 35 94 94 94 94 94 94 94 94 94 94 30 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 31 84 84 84 84 84 84 84 84 84 84 27 0 0
0 0 94 255 255 255 253 252 254 252 252 252 254 83 0 0
0 0 95 255 255 253 180 24 239 68 4 9 253 83 0 0
0 0 95 255 253 121 103 182 247 65 53 179 254 83 0 0
0 0 95 251 183 49 53 183 183 97 122 253 255 83 0 0
0 0 95 241 4 1 3 13 8 176 244 255 255 83 0 0
0 0 95 241 0 3 69 217 8 13 86 249 255 83 0 0
0 0 95 241 2 132 148 68 5 133 148 74 253 83 0 0
0 0 95 244 70 204 199 66 5 136 150 72 253 83 0 0
0 0 95 255 252 254 254 236 9 2 75 250 255 83 0 0
0 0 95 255 255 255 255 253 242 242 245 255 255 83 0 0
0 0 35 94 94 94 94 94 94 94 94 94 94 30 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
{
"accessors": [
{
"bufferView": 2,
"componentType": 5126,
"count": 3428,
"max": [
72.838134765625,
143.69198608398438,
258.82000732421875
],
"min": [
-72.838134765625,
-395.850830078125,
-1.2295242547988892
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 41136,
"componentType": 5126,
"count": 3428,
"max": [
0.99943608045578003,
0.99604237079620361,
0.99995923042297363
],
"min": [
-0.99943608045578003,
-0.99999535083770752,
-0.99951648712158203
],
"type": "VEC3"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 3428,
"max": [
0.9997742772102356,
0.99985200166702271,
0.97316241264343262,
1
],
"min": [
-0.99977433681488037,
-0.99995803833007812,
-0.99999535083770752,
-1
],
"type": "VEC4"
},
{
"bufferView": 3,
"byteOffset": 54848,
"componentType": 5126,
"count": 3428,
"max": [
1,
1,
1,
1
],
"min": [
1,
1,
1,
1
],
"type": "VEC4"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 3428,
"max": [
0.98388671875,
0.99784630537033081
],
"min": [
0.0035965079441666603,
0.00564928213134408
],
"type": "VEC2"
},
{
"bufferView": 1,
"byteOffset": 27424,
"componentType": 5126,
"count": 3428,
"max": [
0.98388671875,
0.99784630537033081
],
"min": [
0.0035965079441666603,
0.00564928213134408
],
"type": "VEC2"
},
{
"bufferView": 1,
"byteOffset": 54848,
"componentType": 5126,
"count": 3428,
"max": [
0.98388671875,
0.99784630537033081
],
"min": [
0.0035965079441666603,
0.00564928213134408
],
"type": "VEC2"
},
{
"bufferView": 0,
"componentType": 5125,
"count": 15606,
"max": [
3427
],
"min": [
0
],
"type": "SCALAR"
},
{
"bufferView": 2,
"byteOffset": 82272,
"componentType": 5126,
"count": 3874,
"max": [
3.8580482006072998,
29.504856109619141,
26.907831192016602
],
"min": [
-3.8580431938171387,
17.73493766784668,
10.970193862915039
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 128760,
"componentType": 5126,
"count": 3874,
"max": [
0.99997752904891968,
0.99936181306838989,
0.99540138244628906
],
"min": [
-0.99997752904891968,
-0.99999278783798218,
-0.9998893141746521
],
"type": "VEC3"
},
{
"bufferView": 3,
"byteOffset": 109696,
"componentType": 5126,
"count": 3874,
"max": [
0.99983894824981689,
0.99540144205093384,
0.99992924928665161,
1
],
"min": [
-0.99983888864517212,
-0.99988925457000732,
-0.99999451637268066,
-1
],
"type": "VEC4"
},
{
"bufferView": 3,
"byteOffset": 171680,
"componentType": 5126,
"count": 3874,
"max": [
1,
1,
1,
1
],
"min": [
1,
1,
1,
1
],
"type": "VEC4"
},
{
"bufferView": 1,
"byteOffset": 82272,
"componentType": 5126,
"count": 3874,
"max": [
0.99175125360488892,
0.99390029907226562
],
"min": [
0.0076292529702186584,
0.005859375
],
"type": "VEC2"
},
{
"bufferView": 1,
"byteOffset": 113264,
"componentType": 5126,
"count": 3874,
"max": [
0.99175125360488892,
0.99390029907226562
],
"min": [
0.0076292529702186584,
0.005859375
],
"type": "VEC2"
},
{
"bufferView": 1,
"byteOffset": 144256,
"componentType": 5126,
"count": 3874,
"max": [
0.99175125360488892,
0.99390029907226562
],
"min": [
0.0076292529702186584,
0.005859375
],
"type": "VEC2"
},
{
"bufferView": 0,
"byteOffset": 62424,
"componentType": 5125,
"count": 14484,
"max": [
3873
],
"min": [
0
],
"type": "SCALAR"
}
],
"asset": {
"extras": {
"author": "Abner Wu (https://sketchfab.com/dashdu)",
"license": "CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)",
"source": "https://sketchfab.com/3d-models/tyrannosaurus-rex-8ca1f4a7ff7041b5b4aa663634934f4c",
"title": "Tyrannosaurus Rex"
},
"generator": "Sketchfab-5.68.0",
"version": "2.0"
},
"bufferViews": [
{
"buffer": 0,
"byteLength": 120360,
"byteOffset": 0,
"name": "floatBufferViews",
"target": 34963
},
{
"buffer": 0,
"byteLength": 175248,
"byteOffset": 120360,
"byteStride": 8,
"name": "floatBufferViews",
"target": 34962
},
{
"buffer": 0,
"byteLength": 175248,
"byteOffset": 295608,
"byteStride": 12,
"name": "floatBufferViews",
"target": 34962
},
{
"buffer": 0,
"byteLength": 233664,
"byteOffset": 470856,
"byteStride": 16,
"name": "floatBufferViews",
"target": 34962
}
],
"buffers": [
{
"byteLength": 704520,
"uri": "scene.bin"
}
],
"images": [
{
"uri": "textures/Material_21_baseColor.png"
},
{
"uri": "textures/Material_21_normal.png"
},
{
"uri": "textures/Material_22_baseColor.png"
},
{
"uri": "textures/Material_22_normal.png"
}
],
"materials": [
{
"doubleSided": true,
"emissiveFactor": [
0,
0,
0
],
"name": "Material_21",
"normalTexture": {
"index": 1,
"scale": 1,
"texCoord": 0
},
"pbrMetallicRoughness": {
"baseColorFactor": [
1,
1,
1,
1
],
"baseColorTexture": {
"index": 0,
"texCoord": 0
},
"metallicFactor": 0,
"roughnessFactor": 0.50085746949999999
}
},
{
"doubleSided": true,
"emissiveFactor": [
0,
0,
0
],
"name": "Material_22",
"normalTexture": {
"index": 3,
"scale": 1,
"texCoord": 0
},
"pbrMetallicRoughness": {
"baseColorFactor": [
1,
1,
1,
1
],
"baseColorTexture": {
"index": 2,
"texCoord": 0
},
"metallicFactor": 0,
"roughnessFactor": 0.37109375
}
}
],
"meshes": [
{
"name": "polySurface55_Material #21_0",
"primitives": [
{
"attributes": {
"COLOR_0": 3,
"NORMAL": 1,
"POSITION": 0,
"TANGENT": 2,
"TEXCOORD_0": 4,
"TEXCOORD_1": 5,
"TEXCOORD_2": 6
},
"indices": 7,
"material": 0,
"mode": 4
}
]
},
{
"name": "polySurface58_Material #22_0",
"primitives": [
{
"attributes": {
"COLOR_0": 11,
"NORMAL": 9,
"POSITION": 8,
"TANGENT": 10,
"TEXCOORD_0": 12,
"TEXCOORD_1": 13,
"TEXCOORD_2": 14
},
"indices": 15,
"material": 1,
"mode": 4
}
]
}
],
"nodes": [
{
"children": [
1
],
"name": "RootNode (gltf orientation matrix)",
"rotation": [
-0.70710678118654746,
-0,
-0,
0.70710678118654757
]
},
{
"children": [
2
],
"name": "RootNode (model correction matrix)"
},
{
"children": [
3
],
"matrix": [
1,
0,
0,
0,
0,
0,
1,
0,
0,
-1,
0,
0,
0,
0,
0,
1
],
"name": "trex-finish.FBX"
},
{
"children": [
4,
9
],
"name": "RootNode"
},
{
"children": [
5
],
"matrix": [
-0.10000000149011498,
-1.224647135531628e-17,
1.5099580490056353e-08,
0,
1.5099580490056353e-08,
-6.6613382470126127e-17,
0.10000000149011498,
0,
-1.2246460767404281e-17,
0.10000000149011612,
6.6613382470126127e-17,
0,
0,
0,
0,
1
],
"name": "CH_trex"
},
{
"children": [
6
],
"matrix": [
1,
0,
4.8655591971495782e-33,
0,
-2.3989058954186466e-64,
1,
4.9303806576313227e-32,
0,
-4.8655591971495782e-33,
-4.9303806576313227e-32,
1,
0,
0,
0,
0,
1
],
"name": "polySurface49"
},
{
"children": [
7
],
"matrix": [
1,
2.646977960169688e-23,
2.9517462485306193e-32,
0,
-2.646977960169688e-23,
1,
0,
0,
-2.9517462485306193e-32,
-7.8132072638741078e-55,
1,
0,
0,
0,
0,
1
],
"name": "polySurface52"
},
{
"children": [
8
],
"matrix": [
1,
0,
2.9517474240249701e-32,
0,
0,
1,
0,
0,
-2.9517474240249701e-32,
0,
1,
0,
0,
0,
0,
1
],
"name": "polySurface55"
},
{
"mesh": 0,
"name": "polySurface55_Material #21_0"
},
{
"children": [
10
],
"name": "polySurface58"
},
{
"mesh": 1,
"name": "polySurface58_Material #22_0"
}
],
"samplers": [
{
"magFilter": 9729,
"minFilter": 9987,
"wrapS": 10497,
"wrapT": 10497
}
],
"scene": 0,
"scenes": [
{
"name": "OSG_Scene",
"nodes": [
0
]
}
],
"textures": [
{
"sampler": 0,
"source": 0
},
{
"sampler": 0,
"source": 1
},
{
"sampler": 0,
"source": 2
},
{
"sampler": 0,
"source": 3
}
]
}
File deleted
{
"accessors": [
{
"bufferView": 2,
"componentType": 5126,
"count": 24000,
"max": [
5.400895595550537,
7.487784385681152,
18.686132431030273
],
"min": [
-9.135818481445313,
-5.771036148071289,
2.366610050201416
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 288000,
"componentType": 5126,
"count": 24000,
"max": [
0.9998490214347839,
0.9998508095741272,
0.9999715685844421
],
"min": [
-0.9998549222946167,
-0.999925434589386,
-0.7359607815742493
],
"type": "VEC3"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 24000,
"max": [
0.999908447265625,
0.9999664425849915,
0.9999536871910095,
1.0
],
"min": [
-0.9999274611473083,
-0.9999757409095764,
-0.9997327923774719,
1.0
],
"type": "VEC4"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 24000,
"max": [
1.0,
1.0
],
"min": [
0.08360499888658524,
0.0
],
"type": "VEC2"
},
{
"bufferView": 0,
"componentType": 5125,
"count": 66000,
"type": "SCALAR"
},
{
"bufferView": 2,
"byteOffset": 576000,
"componentType": 5126,
"count": 8183,
"max": [
3.571387767791748,
6.172538757324219,
17.16339683532715
],
"min": [
-7.341711521148682,
-4.2624993324279785,
-0.06279468536376953
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 674196,
"componentType": 5126,
"count": 8183,
"max": [
0.9991750717163086,
0.9992162585258484,
0.9997866153717041
],
"min": [
-0.9998805522918701,
-0.9994327425956726,
-0.9999834299087524
],
"type": "VEC3"
},
{
"bufferView": 3,
"byteOffset": 384000,
"componentType": 5126,
"count": 8183,
"max": [
0.9995247721672058,
0.9998559355735779,
0.9999619126319885,
1.0
],
"min": [
-0.9989302754402161,
-0.9997038841247559,
-0.9998242259025574,
-1.0
],
"type": "VEC4"
},
{
"bufferView": 1,
"byteOffset": 192000,
"componentType": 5126,
"count": 8183,
"max": [
1.0,
210.26849365234375
],
"min": [
0.0,
0.0
],
"type": "VEC2"
},
{
"bufferView": 1,
"byteOffset": 257464,
"componentType": 5126,
"count": 8183,
"max": [
1.0,
210.26849365234375
],
"min": [
0.0,
0.0
],
"type": "VEC2"
},
{
"bufferView": 0,
"byteOffset": 264000,
"componentType": 5125,
"count": 33486,
"type": "SCALAR"
}
],
"asset": {
"extras": {
"author": "Daniel Gryningstjerna (https://sketchfab.com/dangry)",
"license": "CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)",
"source": "https://sketchfab.com/3d-models/tree-for-games-f91d3c3c527d47fdb217c291e4c7df4b",
"title": "Tree For Games"
},
"generator": "Sketchfab-12.65.0",
"version": "2.0"
},
"bufferViews": [
{
"buffer": 0,
"byteLength": 397944,
"name": "floatBufferViews",
"target": 34963
},
{
"buffer": 0,
"byteLength": 322928,
"byteOffset": 397944,
"byteStride": 8,
"name": "floatBufferViews",
"target": 34962
},
{
"buffer": 0,
"byteLength": 772392,
"byteOffset": 720872,
"byteStride": 12,
"name": "floatBufferViews",
"target": 34962
},
{
"buffer": 0,
"byteLength": 514928,
"byteOffset": 1493264,
"byteStride": 16,
"name": "floatBufferViews",
"target": 34962
}
],
"buffers": [
{
"byteLength": 2008192,
"uri": "scene.bin"
}
],
"images": [
{
"uri": "textures/Material.003_baseColor.png"
},
{
"uri": "textures/Material.003_metallicRoughness.png"
},
{
"uri": "textures/Material.003_normal.png"
},
{
"uri": "textures/twig_baseColor.png"
},
{
"uri": "textures/twig_normal.png"
}
],
"materials": [
{
"alphaCutoff": 0.513910061,
"alphaMode": "MASK",
"doubleSided": true,
"name": "Material.003",
"normalTexture": {
"index": 2
},
"occlusionTexture": {
"index": 1
},
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
},
"metallicFactor": 0.0,
"metallicRoughnessTexture": {
"index": 1
}
}
},
{
"doubleSided": true,
"name": "twig",
"normalTexture": {
"index": 4
},
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 3
},
"metallicFactor": 0.0,
"roughnessFactor": 0.8614710366
}
}
],
"meshes": [
{
"name": "Plane.197_Material.003_0",
"primitives": [
{
"attributes": {
"NORMAL": 1,
"POSITION": 0,
"TANGENT": 2,
"TEXCOORD_0": 3
},
"indices": 4,
"material": 0,
"mode": 4
}
]
},
{
"name": "Plane.197_twig_0",
"primitives": [
{
"attributes": {
"NORMAL": 6,
"POSITION": 5,
"TANGENT": 7,
"TEXCOORD_0": 8,
"TEXCOORD_1": 9
},
"indices": 10,
"material": 1,
"mode": 4
}
]
}
],
"nodes": [
{
"children": [
1
],
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
2.220446049250313e-16,
-1.0,
0.0,
0.0,
1.0,
2.220446049250313e-16,
0.0,
0.0,
0.0,
0.0,
1.0
],
"name": "Sketchfab_model"
},
{
"children": [
2
],
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0
],
"name": "306efb0fa3a749b9949c2d453c8b1996.fbx"
},
{
"children": [
3
],
"name": "RootNode"
},
{
"children": [
4,
5
],
"matrix": [
107.69481487779977,
-13.92748808083238,
24.568147443357724,
0.0,
26.623339536963893,
17.75615160642657,
-106.63795628231195,
0.0,
9.421586570876043,
109.02516209968464,
20.50584502596355,
0.0,
0.0,
0.0,
5.9604644775390625e-06,
1.0
],
"name": "Plane.197"
},
{
"mesh": 0,
"name": "Plane.197_Material.003_0"
},
{
"mesh": 1,
"name": "Plane.197_twig_0"
}
],
"samplers": [
{
"magFilter": 9729,
"minFilter": 9987,
"wrapS": 10497,
"wrapT": 10497
}
],
"scene": 0,
"scenes": [
{
"name": "Sketchfab_Scene",
"nodes": [
0
]
}
],
"textures": [
{
"sampler": 0,
"source": 0
},
{
"sampler": 0,
"source": 1
},
{
"sampler": 0,
"source": 2
},
{
"sampler": 0,
"source": 3
},
{
"sampler": 0,
"source": 4
}
]
}
public/assets/tree/textures/Material.003_baseColor.png

1.86 MB

public/assets/tree/textures/Material.003_metallicRoughness.png

4.79 MB

public/assets/tree/textures/Material.003_normal.png

3.97 MB

public/assets/tree/textures/twig_baseColor.png

7.62 MB

public/assets/tree/textures/twig_normal.png

7.54 MB

File deleted
File deleted
File deleted
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment